| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |