| 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 @class ToolsMenuContext; | 10 @class ToolsMenuContext; |
| 11 | 11 |
| 12 // TODO(crbug.com/228521): Remove this once the new command/metric handling is | 12 // TODO(crbug.com/228521): Remove this once the new command/metric handling is |
| 13 // implemented. This is a temporary workaround to allow metrics recording to | 13 // implemented. This is a temporary workaround to allow metrics recording to |
| 14 // distinguish the action. The value used is in the dynamic range (< | 14 // distinguish the action. The value used is in the dynamic range (< |
| 15 // IDC_MinimumLabelValue) to avoid collisions. | 15 // IDC_MinimumLabelValue) to avoid collisions. |
| 16 #define IDC_TEMP_EDIT_BOOKMARK 3900 | 16 #define IDC_TEMP_EDIT_BOOKMARK 3900 |
| 17 | 17 |
| 18 // The a11y ID of the tools menu items (used by integration tests). | |
| 19 extern NSString* const kToolsMenuNewTabId; | |
| 20 extern NSString* const kToolsMenuNewIncognitoTabId; | |
| 21 extern NSString* const kToolsMenuCloseAllTabsId; | |
| 22 extern NSString* const kToolsMenuCloseAllIncognitoTabsId; | |
| 23 extern NSString* const kToolsMenuBookmarksId; | |
| 24 extern NSString* const kToolsMenuOtherDevicesId; | |
| 25 extern NSString* const kToolsMenuHistoryId; | |
| 26 extern NSString* const kToolsMenuReportAnIssueId; | |
| 27 extern NSString* const kToolsMenuShareId; | |
| 28 extern NSString* const kToolsMenuDataSavingsId; | |
| 29 extern NSString* const kToolsMenuFindInPageId; | |
| 30 extern NSString* const kToolsMenuReaderMode; | |
| 31 extern NSString* const kToolsMenuRequestDesktopId; | |
| 32 extern NSString* const kToolsMenuSettingsId; | |
| 33 extern NSString* const kToolsMenuHelpId; | |
| 34 extern NSString* const kToolsMenuSuggestionsId; | |
| 35 | |
| 36 // Tools Popup Table Delegate Protocol | 18 // Tools Popup Table Delegate Protocol |
| 37 @protocol ToolsPopupTableDelegate<NSObject> | 19 @protocol ToolsPopupTableDelegate<NSObject> |
| 38 // Called when a menu item for command |commandID| is selected. | 20 // Called when a menu item for command |commandID| is selected. |
| 39 // TODO(stuartmorgan): This is a temporary shim. Remove it once: | 21 // TODO(stuartmorgan): This is a temporary shim. Remove it once: |
| 40 // - the automatic command-based metrics system is in place, and | 22 // - the automatic command-based metrics system is in place, and |
| 41 // - we figure out a better way to dismiss the menu (maybe a provided block?) | 23 // - we figure out a better way to dismiss the menu (maybe a provided block?) |
| 42 - (void)commandWasSelected:(int)commandID; | 24 - (void)commandWasSelected:(int)commandID; |
| 43 @end | 25 @end |
| 44 | 26 |
| 45 // A table view with two icons in the first row and regular text cells in | 27 // A table view with two icons in the first row and regular text cells in |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Informs tools popup menu whether "Request Desktop Site" can be enabled. | 70 // Informs tools popup menu whether "Request Desktop Site" can be enabled. |
| 89 - (void)setCanUseDesktopUserAgent:(BOOL)value; | 71 - (void)setCanUseDesktopUserAgent:(BOOL)value; |
| 90 | 72 |
| 91 - (void)animateContentIn; | 73 - (void)animateContentIn; |
| 92 | 74 |
| 93 - (void)hideContent; | 75 - (void)hideContent; |
| 94 | 76 |
| 95 @end | 77 @end |
| 96 | 78 |
| 97 #endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_CONTROLLER_H_ | 79 #endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_CONTROLLER_H_ |
| OLD | NEW |