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

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

Issue 9307063: Split TabContentsViewMac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deps fix Created 8 years, 10 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 // This protocol is used as a delegate for the NSView class used in the 11 // This protocol is used as a delegate for the NSView class used in the
12 // hierarchy. There are two ways to extend the view: 12 // hierarchy. There are two ways to extend the view:
13 // - Implement the methods listed in the protocol below. 13 // - Implement the methods listed in the protocol below.
14 // - Implement any method, and if the view is requested to perform that method 14 // - Implement any method, and if the view is requested to perform that method
15 // and cannot, the delegate's implementation will be used. 15 // and cannot, the delegate's implementation will be used.
16 // 16 //
17 // Like any delegate, it is not retained by the delegator object. The delegator 17 // Like any Objective-C delegate, it is not retained by the delegator object.
18 // object will call the -viewGone: method when it is going away. 18 // The delegator object will call the -viewGone: method when it is going away.
19 19
jam 2012/02/03 00:29:15 nit: everything in content/public is in the conten
Avi (use Gerrit) 2012/02/03 01:18:53 Namespaces are a C++ feature. :( That's one area w
20 @protocol RenderWidgetHostViewMacDelegate 20 @protocol RenderWidgetHostViewMacDelegate
21 @optional 21 @optional
22 // Notification that the view is gone. 22 // Notification that the view is gone.
23 - (void)viewGone:(NSView*)view; 23 - (void)viewGone:(NSView*)view;
24 24
25 // Handle an event. All incoming key and mouse events flow through this delegate 25 // Handle an event. All incoming key and mouse events flow through this delegate
26 // method if implemented. Return YES if the event is fully handled, or NO if 26 // method if implemented. Return YES if the event is fully handled, or NO if
27 // normal processing should take place. 27 // normal processing should take place.
28 - (BOOL)handleEvent:(NSEvent*)event; 28 - (BOOL)handleEvent:(NSEvent*)event;
29 29
30 // Notification that a wheel event was unhandled. 30 // Notification that a wheel event was unhandled.
31 - (void)gotUnhandledWheelEvent; 31 - (void)gotUnhandledWheelEvent;
32 32
33 // Notification of scroll offset pinning. 33 // Notification of scroll offset pinning.
34 - (void)scrollOffsetPinnedToLeft:(BOOL)left toRight:(BOOL)right; 34 - (void)scrollOffsetPinnedToLeft:(BOOL)left toRight:(BOOL)right;
35 35
36 // Notification of whether the view has a horizontal scrollbar. 36 // Notification of whether the view has a horizontal scrollbar.
37 - (void)setHasHorizontalScrollbar:(BOOL)has_horizontal_scrollbar; 37 - (void)setHasHorizontalScrollbar:(BOOL)has_horizontal_scrollbar;
38 38
39 // Provides validation of user interface items. If the return value is NO, then 39 // Provides validation of user interface items. If the return value is NO, then
40 // the delegate is unaware of that item and |valid| is undefined. Otherwise, 40 // the delegate is unaware of that item and |valid| is undefined. Otherwise,
41 // |valid| contains the validity of the specified item. 41 // |valid| contains the validity of the specified item.
42 - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item 42 - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item
43 isValidItem:(BOOL*)valid; 43 isValidItem:(BOOL*)valid;
44 44
45 @end 45 @end
46 46
47 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_ 47 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698