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

Side by Side Diff: content/public/browser/render_widget_host_view_mac_delegate.h

Issue 2227803003: Plumb phase/momentum for WheelEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Non-Mac compile. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 namespace blink { 10 namespace blink {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 - (void)endGestureWithEvent:(NSEvent*)event; 44 - (void)endGestureWithEvent:(NSEvent*)event;
45 45
46 // This is a low level API which provides touches associated with an event. 46 // This is a low level API which provides touches associated with an event.
47 // It is used in conjunction with gestures to determine finger placement 47 // It is used in conjunction with gestures to determine finger placement
48 // on the trackpad. 48 // on the trackpad.
49 - (void)touchesMovedWithEvent:(NSEvent*)event; 49 - (void)touchesMovedWithEvent:(NSEvent*)event;
50 - (void)touchesBeganWithEvent:(NSEvent*)event; 50 - (void)touchesBeganWithEvent:(NSEvent*)event;
51 - (void)touchesCancelledWithEvent:(NSEvent*)event; 51 - (void)touchesCancelledWithEvent:(NSEvent*)event;
52 - (void)touchesEndedWithEvent:(NSEvent*)event; 52 - (void)touchesEndedWithEvent:(NSEvent*)event;
53 53
54 // These methods control whether a given view is allowed to rubberband in the
55 // given direction. This is inversely related to whether the view is allowed to
56 // 2-finger history swipe in the given direction.
57 - (BOOL)canRubberbandLeft:(NSView*)view;
58 - (BOOL)canRubberbandRight:(NSView*)view;
59
60 // The browser process received an ACK from the renderer after it processed 54 // The browser process received an ACK from the renderer after it processed
61 // |event|. 55 // |event|.
62 - (void)rendererHandledWheelEvent:(const blink::WebMouseWheelEvent&)event 56 - (void)rendererHandledWheelEvent:(const blink::WebMouseWheelEvent&)event
63 consumed:(BOOL)consumed; 57 consumed:(BOOL)consumed;
64 - (void)rendererHandledGestureScrollEvent:(const blink::WebGestureEvent&)event 58 - (void)rendererHandledGestureScrollEvent:(const blink::WebGestureEvent&)event
65 consumed:(BOOL)consumed; 59 consumed:(BOOL)consumed;
66 @end 60 @end
67 61
68 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_ 62 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/common/input/web_input_event_traits.cc ('k') | third_party/WebKit/Source/core/events/WheelEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698