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

Unified Diff: content/browser/renderer_host/render_widget_host_view.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: . 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_view.h
diff --git a/content/browser/renderer_host/render_widget_host_view.h b/content/browser/renderer_host/render_widget_host_view.h
index cd1bc2f95490d91957d9c4ea293cdda165ef0be7..d97bbac0eb059009416b6e2b861ac6b4de5677d4 100644
--- a/content/browser/renderer_host/render_widget_host_view.h
+++ b/content/browser/renderer_host/render_widget_host_view.h
@@ -16,6 +16,7 @@
#include "base/process_util.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/base/range/range.h"
@@ -296,6 +297,12 @@ class RenderWidgetHostView {
// ignored.
virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) = 0;
+ virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) {}
+
+ virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) {}
+ virtual void SetScrollOffsetPinning(
+ bool is_pinned_to_left, bool is_pinned_to_right) {}
+
void set_popup_type(WebKit::WebPopupType popup_type) {
popup_type_ = popup_type;
}

Powered by Google App Engine
This is Rietveld 408576698