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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 886893002: Add GesturePinchBegin/End events on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update OWNERS file Created 5 years, 11 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: content/browser/renderer_host/render_widget_host_view_mac.h
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
index 57c9369d774138e36daf5b6cc96dd1b6b237f84f..d1be2b8435b458312ca579e2ae5ad836cefcd74e 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
@@ -148,6 +148,18 @@ class Layer;
// Event monitor for scroll wheel end event.
id endWheelMonitor_;
+ // When a gesture starts, the system does not inform the view of which type
+ // of gesture is happening (magnify, rotate, etc), rather, it just informs
+ // the view that some as-yet-undefined gesture is starting. Capture the
+ // information about the gesture's beginning event here. It will be used to
+ // create a specific gesture begin event later.
+ scoped_ptr<blink::WebGestureEvent> gestureBeginEvent_;
+
+ // This is set if a GesturePinchBegin event has been sent in the lifetime of
+ // |gestureBeginEvent_|. If set, a GesturePinchEnd will be sent when the
+ // gesture ends.
+ BOOL gestureBeginPinchSent_;
+
// If true then escape key down events are suppressed until the first escape
// key up event. (The up event is suppressed as well). This is used by the
// flash fullscreen code to avoid sending a key up event without a matching

Powered by Google App Engine
This is Rietveld 408576698