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

Unified Diff: content/public/browser/web_contents_delegate.h

Issue 134683004: Disabled pinch zooming in non-browser Aura windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 3f9e71d5b1f9a41ccd5dbeebaa2dc16f1d66b1c4..69980af03c1586f4056f9e3e4589c676f1ff8fa0 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -57,6 +57,7 @@ class Size;
namespace blink {
class WebLayer;
struct WebWindowFeatures;
+class WebGestureEvent;
jam 2014/01/23 01:34:47 nit: class then struct
}
namespace content {
@@ -266,6 +267,12 @@ class CONTENT_EXPORT WebContentsDelegate {
// pressed, or a touch-gesture begins).
virtual void HandlePointerActivate() {}
+ // Allows delegates to handle gesture events before sending to the renderer.
+ // Returns true if the |event| was handled.
+ virtual bool PreHandleGestureEvent(
+ WebContents* source,
+ const blink::WebGestureEvent& event);
+
virtual void HandleGestureBegin() {}
virtual void HandleGestureEnd() {}

Powered by Google App Engine
This is Rietveld 408576698