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

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: Added switch support in place of map::find() Created 9 years, 1 month 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 9d5e303804a2df80ce1060ceaf5595dab89d9cec..201813b0b37a108b2bc7210ae3ae1d66df745ede 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -775,6 +775,10 @@ ui::TouchStatus View::OnTouchEvent(const TouchEvent& event) {
return ui::TOUCH_STATUS_UNKNOWN;
}
+ui::GestureStatus View::OnGestureEvent(const GestureEvent& event) {
+ return ui::GESTURE_STATUS_UNKNOWN;
+}
+
void View::SetMouseHandler(View *new_mouse_handler) {
// It is valid for new_mouse_handler to be NULL
if (parent_)
@@ -1929,6 +1933,12 @@ ui::TouchStatus View::ProcessTouchEvent(const TouchEvent& event) {
return OnTouchEvent(event);
}
+ui::GestureStatus View::ProcessGestureEvent(const GestureEvent& event) {
+ // TODO(Gajen): Implement a grab scheme similar to as as is found in
+ // MousePressed.
+ return OnGestureEvent(event);
+}
+
// Accelerators ----------------------------------------------------------------
void View::RegisterPendingAccelerators() {

Powered by Google App Engine
This is Rietveld 408576698