Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: views/view.cc

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Event injection as per Robert comments Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index fc1f9386c12ea88a7102b5abb9ac2c36ab928d8c..029047a376b8f365d949bdf115cb375b0f8da7de 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -790,6 +790,11 @@ ui::TouchStatus View::OnTouchEvent(const TouchEvent& event) {
return ui::TOUCH_STATUS_UNKNOWN;
}
+bool View::OnGestureEvent(const GestureEvent& event) {
+ DVLOG(1) << "visited the OnGestureEvent";
+ return false;
+}
+
void View::SetMouseHandler(View *new_mouse_handler) {
// It is valid for new_mouse_handler to be NULL
if (parent_)
@@ -1934,6 +1939,12 @@ ui::TouchStatus View::ProcessTouchEvent(const TouchEvent& event) {
return OnTouchEvent(event);
}
+bool View::ProcessTouchEvent(const TouchEvent& event) {
+ // TODO(Gajen): Implement a grab scheme similar to as as is found in
+ // MousePressed.
rjkroege 2011/10/24 17:41:09 bad indent
Gajen 2011/10/25 14:32:29 Done.
+ return OnGestureEvent(event);
+}
+
// Accelerators ----------------------------------------------------------------
void View::RegisterPendingAccelerators() {

Powered by Google App Engine
This is Rietveld 408576698