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

Side by Side Diff: ios/chrome/browser/ui/context_menu/context_menu_holder.h

Issue 1891863004: Copy contents of ui/base/ios into ios/chrome/browser/ui/context_menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix HardwardKeyboard test Created 4 years, 8 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
OLDNEW
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_CONTEXT_MENU_HOLDER_H_
6 #define UI_BASE_IOS_CRU_CONTEXT_MENU_HOLDER_H_ 6 #define IOS_CHROME_BROWSER_UI_CONTEXT_MENU_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
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
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_CONTEXT_MENU_HOLDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698