| 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 13 matching lines...) Expand all Loading... |
| 24 @protocol RenderWidgetHostViewMacDelegate | 24 @protocol RenderWidgetHostViewMacDelegate |
| 25 @optional | 25 @optional |
| 26 // Notification that the view is gone. | 26 // Notification that the view is gone. |
| 27 - (void)viewGone:(NSView*)view; | 27 - (void)viewGone:(NSView*)view; |
| 28 | 28 |
| 29 // Handle an event. All incoming key and mouse events flow through this delegate | 29 // Handle an event. All incoming key and mouse events flow through this delegate |
| 30 // method if implemented. Return YES if the event is fully handled, or NO if | 30 // method if implemented. Return YES if the event is fully handled, or NO if |
| 31 // normal processing should take place. | 31 // normal processing should take place. |
| 32 - (BOOL)handleEvent:(NSEvent*)event; | 32 - (BOOL)handleEvent:(NSEvent*)event; |
| 33 | 33 |
| 34 // Notification of scroll offset pinning. | |
| 35 - (void)scrollOffsetPinnedToLeft:(BOOL)left toRight:(BOOL)right; | |
| 36 | |
| 37 // Notification of whether the view has a horizontal scrollbar. | |
| 38 - (void)setHasHorizontalScrollbar:(BOOL)has_horizontal_scrollbar; | |
| 39 | |
| 40 // Provides validation of user interface items. If the return value is NO, then | 34 // Provides validation of user interface items. If the return value is NO, then |
| 41 // the delegate is unaware of that item and |valid| is undefined. Otherwise, | 35 // the delegate is unaware of that item and |valid| is undefined. Otherwise, |
| 42 // |valid| contains the validity of the specified item. | 36 // |valid| contains the validity of the specified item. |
| 43 - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item | 37 - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item |
| 44 isValidItem:(BOOL*)valid; | 38 isValidItem:(BOOL*)valid; |
| 45 | 39 |
| 46 @required | 40 @required |
| 47 // Notification of when a gesture begins/ends. | 41 // Notification of when a gesture begins/ends. |
| 48 - (void)beginGestureWithEvent:(NSEvent*)event; | 42 - (void)beginGestureWithEvent:(NSEvent*)event; |
| 49 - (void)endGestureWithEvent:(NSEvent*)event; | 43 - (void)endGestureWithEvent:(NSEvent*)event; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 62 - (BOOL)canRubberbandLeft:(NSView*)view; | 56 - (BOOL)canRubberbandLeft:(NSView*)view; |
| 63 - (BOOL)canRubberbandRight:(NSView*)view; | 57 - (BOOL)canRubberbandRight:(NSView*)view; |
| 64 | 58 |
| 65 // The browser process received an ACK from the renderer after it processed | 59 // The browser process received an ACK from the renderer after it processed |
| 66 // |event|. | 60 // |event|. |
| 67 - (void)rendererHandledWheelEvent:(const blink::WebMouseWheelEvent&)event | 61 - (void)rendererHandledWheelEvent:(const blink::WebMouseWheelEvent&)event |
| 68 consumed:(BOOL)consumed; | 62 consumed:(BOOL)consumed; |
| 69 @end | 63 @end |
| 70 | 64 |
| 71 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_ | 65 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_ |
| OLD | NEW |