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

Unified Diff: chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.mm

Issue 248383002: Revert of mac: History swiping doesn't work right with iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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: chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.mm
diff --git a/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.mm b/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.mm
index b64550810c3cc00df7917ca812c244fb8ec72349..a6b260fbd4a75905f18e445f9faf1c151f3e5931 100644
--- a/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.mm
+++ b/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.mm
@@ -106,8 +106,19 @@
return [historySwiper_ handleEvent:event];
}
-- (void)gotWheelEventConsumed:(BOOL)consumed {
- [historySwiper_ gotWheelEventConsumed:consumed];
+// Notification that a wheel event was unhandled.
+- (void)gotUnhandledWheelEvent {
+ [historySwiper_ gotUnhandledWheelEvent];
+}
+
+// Notification of scroll offset pinning.
+- (void)scrollOffsetPinnedToLeft:(BOOL)left toRight:(BOOL)right {
+ [historySwiper_ scrollOffsetPinnedToLeft:left toRight:right];
+}
+
+// Notification of whether the view has a horizontal scrollbar.
+- (void)setHasHorizontalScrollbar:(BOOL)has_horizontal_scrollbar {
+ [historySwiper_ setHasHorizontalScrollbar:has_horizontal_scrollbar];
}
// NSWindow events.

Powered by Google App Engine
This is Rietveld 408576698