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

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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5ee14747abd85fa2e77afcd5a1bc94aba1af82aa..3515d89a67d45bb6a9362136fd00fb7eafc403d8 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -55,6 +55,7 @@ class Size;
}
namespace blink {
+class WebGestureEvent;
class WebLayer;
struct WebWindowFeatures;
}
@@ -258,6 +259,15 @@ 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 and thus shouldn't be processed
+ // by the renderer's event handler. Note that the touch events that create
+ // the gesture are always passed to the renderer since the gesture is created
+ // and dispatched after the touches return without being "preventDefault()"ed.
+ virtual bool PreHandleGestureEvent(
+ WebContents* source,
+ const blink::WebGestureEvent& event);
+
virtual void HandleGestureBegin() {}
virtual void HandleGestureEnd() {}
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698