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

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

Issue 325933003: Scroll offset pinning and content size notifications were only used for the Mac overlay navigation … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 13 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698