Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 UI_BASE_IOS_CRU_CONTEXT_MENU_HOLDER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CRU_CONTEXT_MENU_HOLDER_H_ |
| 6 #define UI_BASE_IOS_CRU_CONTEXT_MENU_HOLDER_H_ | 6 #define IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CRU_CONTEXT_MENU_HOLDER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include "base/ios/block_types.h" | 10 #include "base/ios/block_types.h" |
| 11 | 11 |
| 12 // This class simply stores the information necessary to build a menu: | 12 // This class simply stores the information necessary to build a menu: |
| 13 // a menu title, a list of item titles and associated actions (blocks). | 13 // a menu title, a list of item titles and associated actions (blocks). |
| 14 @interface CRUContextMenuHolder : NSObject | 14 @interface ContextMenuHolder : NSObject |
|
Eugene But (OOO till 7-30)
2016/04/15 19:57:18
This header in included in crw_web_controller.mm i
Jackie Quinn
2016/04/15 20:38:07
Yes. Removing it.
| |
| 15 | 15 |
| 16 // Designated initializer. | 16 // Designated initializer. |
| 17 - (instancetype)init; | 17 - (instancetype)init; |
| 18 | 18 |
| 19 // Menu title; can be nil. | 19 // Menu title; can be nil. |
| 20 @property(nonatomic, copy) NSString* menuTitle; | 20 @property(nonatomic, copy) NSString* menuTitle; |
| 21 | 21 |
| 22 // A list of menu item titles in the order they will appear in the menu. | 22 // A list of menu item titles in the order they will appear in the menu. |
| 23 @property(nonatomic, readonly, copy) NSArray* itemTitles; | 23 @property(nonatomic, readonly, copy) NSArray* itemTitles; |
| 24 | 24 |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 37 | 37 |
| 38 // Performs the action for the item at the given index. | 38 // Performs the action for the item at the given index. |
| 39 - (void)performActionAtIndex:(NSUInteger)index; | 39 - (void)performActionAtIndex:(NSUInteger)index; |
| 40 | 40 |
| 41 // Returns YES if the action at |index| should cause the context menu to | 41 // Returns YES if the action at |index| should cause the context menu to |
| 42 // dismiss without any animation. | 42 // dismiss without any animation. |
| 43 - (BOOL)shouldDismissImmediatelyOnClickedAtIndex:(NSUInteger)index; | 43 - (BOOL)shouldDismissImmediatelyOnClickedAtIndex:(NSUInteger)index; |
| 44 | 44 |
| 45 @end | 45 @end |
| 46 | 46 |
| 47 #endif // UI_BASE_IOS_CRU_CONTEXT_MENU_HOLDER_H_ | 47 #endif // IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CRU_CONTEXT_MENU_HOLDER_H_ |
| OLD | NEW |