summaryrefslogtreecommitdiffstats
path: root/views/view.cc
diff options
context:
space:
mode:
authorrjkroege@google.com <rjkroege@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-08 14:06:10 +0000
committerrjkroege@google.com <rjkroege@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-08 14:06:10 +0000
commitad84c8f53a2973e4d752de9fe8c52e3268a867e1 (patch)
treecb330cc04d3b0dd3a93eca847e367d794310653c /views/view.cc
parent2229e8264e786f5265bf5c0a6265d5aa3dfaf713 (diff)
downloadchromium_src-ad84c8f53a2973e4d752de9fe8c52e3268a867e1.zip
chromium_src-ad84c8f53a2973e4d752de9fe8c52e3268a867e1.tar.gz
chromium_src-ad84c8f53a2973e4d752de9fe8c52e3268a867e1.tar.bz2
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
Diffstat (limited to 'views/view.cc')
-rw-r--r--views/view.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/views/view.cc b/views/view.cc
index 04dbc40..a4e7aa0 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -536,6 +536,15 @@ void View::ProcessMouseReleased(const MouseEvent& e, bool canceled) {
// 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::OnMouseEntered(const MouseEvent& e) {
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_)