Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_CONTEXT_MENU_COMMANDS_H_ | |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_CONTEXT_MENU_COMMANDS_H_ | |
| 7 | |
| 8 @class ContextMenuContext; | |
| 9 | |
| 10 // Commands relating to the context menu. | |
| 11 @protocol ContextMenuCommands<NSObject> | |
| 12 @optional | |
| 13 // Executes |menuContext|'s script. | |
|
edchin
2017/05/25 21:41:53
nit: s/menuContext/context. In all comments below.
kkhorimoto
2017/05/26 23:20:09
Done.
| |
| 14 - (void)executeContextMenuScript:(ContextMenuContext*)context; | |
| 15 // Opens |menuContext|'s link in a new tab. | |
| 16 - (void)openContextMenuLinkInNewTab:(ContextMenuContext*)context; | |
| 17 // Opens |menuContext|'s link in a new Incognito tab. | |
| 18 - (void)openContextMenuLinkInNewIncognitoTab:(ContextMenuContext*)context; | |
| 19 // Copies |menuContext|'s link to the paste board. | |
| 20 - (void)copyContextMenuLink:(ContextMenuContext*)context; | |
| 21 // Saves's the image at |menuContext|'s image URL to the camera roll. | |
| 22 - (void)saveContextMenuImage:(ContextMenuContext*)context; | |
| 23 // Opens the image at |menuContext|'s image URL . | |
| 24 - (void)openContextMenuImage:(ContextMenuContext*)context; | |
| 25 // Opens the image at |menuContext|'s image URL in a new tab. | |
| 26 - (void)openContextMenuImageInNewTab:(ContextMenuContext*)context; | |
| 27 // Hides the context menu UI. | |
| 28 - (void)hideContextMenu:(ContextMenuContext*)context; | |
| 29 @end | |
| 30 | |
| 31 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_CONTEXT_MENU_COMMANDS_H_ | |
| OLD | NEW |