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

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: Wired gesture events into RootView and commandline switch enable-gesture 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 e4ffbe893d291461725a40e81b88e1120a7ae320..8b28993ffaa58da0b3df032099e3e1766dc3bb06 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;
}
+ui::GestureStatus View::OnGestureEvent(const GestureEvent& event) {
+ DVLOG(1) << "visited the OnGestureEvent";
+ return ui::GESTURE_STATUS_UNKNOWN;
+}
+
void View::SetMouseHandler(View *new_mouse_handler) {
// It is valid for new_mouse_handler to be NULL
if (parent_)
@@ -1937,6 +1942,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