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

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

Issue 7618036: mac: Only let two-finger-scrolling trigger history if web doesn't swallow gesture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TestRenderViewHost Created 9 years, 4 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.h
diff --git a/content/browser/renderer_host/render_widget_host.h b/content/browser/renderer_host/render_widget_host.h
index 841ba512b2664242fbab986c396783e3c225a563..fe03a3ec4b04cd6a3296f1feadf3d6758632aaed 100644
--- a/content/browser/renderer_host/render_widget_host.h
+++ b/content/browser/renderer_host/render_widget_host.h
@@ -404,6 +404,10 @@ class RenderWidgetHost : public IPC::Channel::Listener,
// overridden by RenderView to send upwards to its delegate.
virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {}
+ // Called when a mousewheel event was not processed by the renderer. This is
+ // overridden by RenderView to send upwards to its delegate.
+ virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) {}
+
// Notification that the user has made some kind of input that could
// perform an action. The render view host overrides this to forward the
// information to its delegate (see corresponding function in
@@ -510,7 +514,7 @@ class RenderWidgetHost : public IPC::Channel::Listener,
// Called by OnMsgInputEventAck() to process a wheel event ack message.
// This could result in a task being posted to allow additional wheel
// input messages to be coalesced.
- void ProcessWheelAck();
+ void ProcessWheelAck(bool processed);
// True if renderer accessibility is enabled. This should only be set when a
// screenreader is detected as it can potentially slow down Chrome.
@@ -586,6 +590,7 @@ class RenderWidgetHost : public IPC::Channel::Listener,
// (Similar to |mouse_move_pending_|.) True if a mouse wheel event was sent
// and we are waiting for a corresponding ack.
bool mouse_wheel_pending_;
+ WebKit::WebMouseWheelEvent current_wheel_event_;
typedef std::deque<WebKit::WebMouseWheelEvent> WheelEventQueue;
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698