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

Unified Diff: sky/shell/ui/input_event_converter.cc

Issue 997073003: Wire up gesturetap in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « sky/shell/org/domokit/sky/shell/GestureProvider.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/ui/input_event_converter.cc
diff --git a/sky/shell/ui/input_event_converter.cc b/sky/shell/ui/input_event_converter.cc
index 4ed99ffff28ee91f26cba0c36ed2921c8da7b9e5..bd577fd8243f6d491cb2be63f82093d62af43c40 100644
--- a/sky/shell/ui/input_event_converter.cc
+++ b/sky/shell/ui/input_event_converter.cc
@@ -79,6 +79,18 @@ scoped_ptr<blink::WebInputEvent> BuildWebGestureEvent(
case EVENT_TYPE_GESTURE_FLING_CANCEL:
web_event->type = blink::WebInputEvent::GestureFlingCancel;
break;
+ case EVENT_TYPE_GESTURE_LONG_PRESS:
+ web_event->type = blink::WebInputEvent::GestureLongPress;
+ break;
+ case EVENT_TYPE_GESTURE_SHOW_PRESS:
+ web_event->type = blink::WebInputEvent::GestureShowPress;
+ break;
+ case EVENT_TYPE_GESTURE_TAP:
+ web_event->type = blink::WebInputEvent::GestureTap;
+ break;
+ case EVENT_TYPE_GESTURE_TAP_DOWN:
+ web_event->type = blink::WebInputEvent::GestureTapDown;
+ break;
default:
break;
}
@@ -101,11 +113,15 @@ scoped_ptr<blink::WebInputEvent> ConvertEvent(const InputEventPtr& event,
case EVENT_TYPE_POINTER_MOVE:
case EVENT_TYPE_POINTER_CANCEL:
return BuildWebPointerEvent(event, device_pixel_ratio);
+ case EVENT_TYPE_GESTURE_FLING_CANCEL:
+ case EVENT_TYPE_GESTURE_FLING_START:
+ case EVENT_TYPE_GESTURE_LONG_PRESS:
case EVENT_TYPE_GESTURE_SCROLL_BEGIN:
- case EVENT_TYPE_GESTURE_SCROLL_UPDATE:
case EVENT_TYPE_GESTURE_SCROLL_END:
- case EVENT_TYPE_GESTURE_FLING_START:
- case EVENT_TYPE_GESTURE_FLING_CANCEL:
+ case EVENT_TYPE_GESTURE_SCROLL_UPDATE:
+ case EVENT_TYPE_GESTURE_SHOW_PRESS:
+ case EVENT_TYPE_GESTURE_TAP:
+ case EVENT_TYPE_GESTURE_TAP_DOWN:
return BuildWebGestureEvent(event, device_pixel_ratio);
case EVENT_TYPE_UNKNOWN:
NOTIMPLEMENTED() << "ConvertEvent received unexpected EVENT_TYPE_UNKNOWN";
« no previous file with comments | « sky/shell/org/domokit/sky/shell/GestureProvider.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698