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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac_unittest.mm

Issue 300863002: mac: History swiping doesn't work right with iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase against top of tree. Created 6 years, 7 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_mac_unittest.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
index 1d12f90bec27543b7a1477e3dc2f1633d9532197..975e625a103d6e8bd6b8f88f9ef93a11a7836681 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
@@ -73,22 +73,23 @@ typedef NSUInteger NSEventPhase;
@property(nonatomic) BOOL unhandledWheelEventReceived;
-- (void)gotUnhandledWheelEvent;
@end
@implementation MockRenderWidgetHostViewMacDelegate
@synthesize unhandledWheelEventReceived = unhandledWheelEventReceived_;
-- (void)gotUnhandledWheelEvent {
- unhandledWheelEventReceived_ = true;
+- (void)rendererHandledWheelEvent:(const blink::WebMouseWheelEvent&)event
+ consumed:(BOOL)consumed {
+ if (!consumed)
+ unhandledWheelEventReceived_ = true;
}
-- (void)touchesBeganWithEvent:(NSEvent*)event{}
-- (void)touchesMovedWithEvent:(NSEvent*)event{}
-- (void)touchesCancelledWithEvent:(NSEvent*)event{}
-- (void)touchesEndedWithEvent:(NSEvent*)event{}
-- (void)beginGestureWithEvent:(NSEvent*)event{}
-- (void)endGestureWithEvent:(NSEvent*)event{}
+- (void)touchesBeganWithEvent:(NSEvent*)event {}
+- (void)touchesMovedWithEvent:(NSEvent*)event {}
+- (void)touchesCancelledWithEvent:(NSEvent*)event {}
+- (void)touchesEndedWithEvent:(NSEvent*)event {}
+- (void)beginGestureWithEvent:(NSEvent*)event {}
+- (void)endGestureWithEvent:(NSEvent*)event {}
- (BOOL)canRubberbandLeft:(NSView*)view {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698