OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 @protocol BrowserCommands; | 10 @protocol BrowserCommands; |
(...skipping 21 matching lines...) Expand all Loading... |
32 extern NSString* const kToolsMenuRequestDesktopId; | 32 extern NSString* const kToolsMenuRequestDesktopId; |
33 extern NSString* const kToolsMenuSettingsId; | 33 extern NSString* const kToolsMenuSettingsId; |
34 extern NSString* const kToolsMenuHelpId; | 34 extern NSString* const kToolsMenuHelpId; |
35 extern NSString* const kToolsMenuReadingListId; | 35 extern NSString* const kToolsMenuReadingListId; |
36 extern NSString* const kToolsMenuRequestMobileId; | 36 extern NSString* const kToolsMenuRequestMobileId; |
37 | 37 |
38 typedef NS_ENUM(int, ToolsMenuItemID) { | 38 typedef NS_ENUM(int, ToolsMenuItemID) { |
39 // All of these items should be < 0. | 39 // All of these items should be < 0. |
40 TOOLS_STOP_ITEM = -1, | 40 TOOLS_STOP_ITEM = -1, |
41 TOOLS_RELAOD_ITEM = -2, | 41 TOOLS_RELAOD_ITEM = -2, |
| 42 TOOLS_BOOKMARK_ITEM = -3, |
| 43 TOOLS_BOOKMARK_EDIT = -4, |
| 44 TOOLS_SHARE_ITEM = -5, |
42 }; | 45 }; |
43 | 46 |
44 // Tools Popup Table Delegate Protocol | 47 // Tools Popup Table Delegate Protocol |
45 @protocol ToolsPopupTableDelegate<NSObject> | 48 @protocol ToolsPopupTableDelegate<NSObject> |
46 // Called when a menu item for command |commandID| is selected. | 49 // Called when a menu item for command |commandID| is selected. |
47 // TODO(stuartmorgan): This is a temporary shim. Remove it once: | 50 // TODO(stuartmorgan): This is a temporary shim. Remove it once: |
48 // - the automatic command-based metrics system is in place, and | 51 // - the automatic command-based metrics system is in place, and |
49 // - we figure out a better way to dismiss the menu (maybe a provided block?) | 52 // - we figure out a better way to dismiss the menu (maybe a provided block?) |
50 - (void)commandWasSelected:(int)commandID; | 53 - (void)commandWasSelected:(int)commandID; |
51 @end | 54 @end |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // Informs tools popup menu whether the switch to reader mode is possible. | 102 // Informs tools popup menu whether the switch to reader mode is possible. |
100 - (void)setCanUseReaderMode:(BOOL)enabled; | 103 - (void)setCanUseReaderMode:(BOOL)enabled; |
101 | 104 |
102 - (void)animateContentIn; | 105 - (void)animateContentIn; |
103 | 106 |
104 - (void)hideContent; | 107 - (void)hideContent; |
105 | 108 |
106 @end | 109 @end |
107 | 110 |
108 #endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_CONTROLLER_H_ | 111 #endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_CONTROLLER_H_ |
OLD | NEW |