| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
| 6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
| 7 // ============================================================================ | 7 // ============================================================================ |
| 8 | 8 |
| 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_ACTIONS_TOOLS_MENU_ACTIONS_H_ | 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_ACTIONS_TOOLS_MENU_ACTIONS_H_ |
| 10 #define IOS_CLEAN_CHROME_BROWSER_UI_ACTIONS_TOOLS_MENU_ACTIONS_H_ | 10 #define IOS_CLEAN_CHROME_BROWSER_UI_ACTIONS_TOOLS_MENU_ACTIONS_H_ |
| 11 | 11 |
| 12 #import <Foundation/Foundation.h> | 12 #import <Foundation/Foundation.h> |
| 13 | 13 |
| 14 // Target/Action methods relating to the Tools menu UI. | 14 // Target/Action methods relating to the Tools menu UI. |
| 15 // (Actions should only be used to communicate into or between the View | 15 // (Actions should only be used to communicate into or between the View |
| 16 // Controller layer). | 16 // Controller layer). |
| 17 @protocol ToolsMenuActions | 17 @protocol ToolsMenuActions |
| 18 | 18 |
| 19 @optional | 19 @optional |
| 20 | 20 |
| 21 // Closes the Tools menu. Most menu items should send this message | 21 // Closes the Tools menu. Most menu items should send this message |
| 22 // in addition to other messages they send. | 22 // in addition to other messages they send. |
| 23 - (void)closeToolsMenu:(id)sender; | 23 - (void)closeToolsMenu:(id)sender; |
| 24 | 24 |
| 25 // Starts find in page and shows the find bar. |
| 26 - (void)showFindInPage; |
| 27 |
| 28 // Displays the Share menu. |
| 29 - (void)showShareMenu:(id)sender; |
| 30 |
| 25 // Displays the Tools menu. | 31 // Displays the Tools menu. |
| 26 - (void)showToolsMenu:(id)sender; | 32 - (void)showToolsMenu:(id)sender; |
| 27 | 33 |
| 28 // Displays the Share menu. | |
| 29 - (void)showShareMenu:(id)sender; | |
| 30 | |
| 31 @end | 34 @end |
| 32 | 35 |
| 33 #endif // IOS_CLEAN_CHROME_BROWSER_UI_ACTIONS_TOOLS_MENU_ACTIONS_H_ | 36 #endif // IOS_CLEAN_CHROME_BROWSER_UI_ACTIONS_TOOLS_MENU_ACTIONS_H_ |
| OLD | NEW |