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 #pragma once | |
8 | 7 |
9 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
10 | 9 |
11 // This protocol is used as a delegate for the NSView class used in the | 10 // This protocol is used as a delegate for the NSView class used in the |
12 // hierarchy. There are two ways to extend the view: | 11 // hierarchy. There are two ways to extend the view: |
13 // - Implement the methods listed in the protocol below. | 12 // - Implement the methods listed in the protocol below. |
14 // - Implement any method, and if the view is requested to perform that method | 13 // - Implement any method, and if the view is requested to perform that method |
15 // and cannot, the delegate's implementation will be used. | 14 // and cannot, the delegate's implementation will be used. |
16 // | 15 // |
17 // Like any Objective-C delegate, it is not retained by the delegator object. | 16 // Like any Objective-C delegate, it is not retained by the delegator object. |
(...skipping 20 matching lines...) Expand all Loading... |
38 | 37 |
39 // Provides validation of user interface items. If the return value is NO, then | 38 // 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, | 39 // the delegate is unaware of that item and |valid| is undefined. Otherwise, |
41 // |valid| contains the validity of the specified item. | 40 // |valid| contains the validity of the specified item. |
42 - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item | 41 - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item |
43 isValidItem:(BOOL*)valid; | 42 isValidItem:(BOOL*)valid; |
44 | 43 |
45 @end | 44 @end |
46 | 45 |
47 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_ | 46 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_MAC_DELEGATE_H_ |
OLD | NEW |