Added entry points to view/View to dispatch and process TouchEvents.

This change is part of a series of changes to bring TouchEvent
processing to views.

BUG=na
TESTED=compiled with and without touchui

Review URL: http://codereview.chromium.org/3192002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58823 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/views/view.cc b/views/view.cc
index 04dbc40e0..a4e7aa0fc 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -536,6 +536,15 @@
   // WARNING: we may have been deleted.
 }
 
+#if defined(TOUCH_UI)
+bool View::ProcessTouchEvent(const TouchEvent& e) {
+  // TODO(rjkroege): Implement a grab scheme similar to as
+  // as is found in MousePressed.
+  const bool result = OnTouchEvent(e);
+  return result;
+}
+#endif
+
 void View::AddChildView(View* v) {
   AddChildView(static_cast<int>(child_views_.size()), v);
 }
@@ -1289,6 +1298,13 @@
 void View::OnMouseExited(const MouseEvent& e) {
 }
 
+#if defined(TOUCH_UI)
+bool View::OnTouchEvent(const TouchEvent& event) {
+  DLOG(INFO) << "visited the OnTouchEvent";
+  return false;
+}
+#endif
+
 void View::SetMouseHandler(View *new_mouse_handler) {
   // It is valid for new_mouse_handler to be NULL
   if (parent_)