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 GURL; | |
| 9 | |
| 10 // Command protocol for commands relating to the context menu. | |
| 11 @protocol ContextMenuCommands | |
| 12 // Executes the JavaScript in |URL|'s content. | |
| 13 - (void)openJavaScriptURL:(const GURL*)URL; | |
| 14 // Opens |URL| in a new tab. | |
| 15 - (void)openURLInNewTab:(const GURL*)URL; | |
|
kkhorimoto
2017/05/04 05:38:01
Do we currently have any mechanism besides DCHECKs
marq (ping after 24h)
2017/05/04 09:41:28
My thinking was that commands would be grouped by
kkhorimoto
2017/05/05 05:17:54
Makes sense. There's still the issue of commands
| |
| 16 // Opens |URL| in a new Incognito tab. | |
| 17 - (void)openURLInNewIncognitoTab:(const GURL*)URL; | |
| 18 // Adds |URL| to the Reading List. | |
| 19 - (void)copyURL:(const GURL*)URL; | |
| 20 // Saves's the image at |imageURL| to the camera roll. | |
| 21 - (void)saveImageAtURL:(const GURL*)imageURL; | |
| 22 // Opens the image at |imageURL|. | |
| 23 - (void)openImageAtURL:(const GURL*)imageURL; | |
| 24 // Opens the image at |imageURL| in a new tab. | |
| 25 - (void)openImageAtURLInNewTab:(const GURL*)imageURL; | |
| 26 // Stops the context menu UI with no navigation action. | |
| 27 - (void)cancelContextMenu; | |
| 28 @end | |
| 29 | |
| 30 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_CONTEXT_MENU_COMMANDS_H_ | |
| OLD | NEW |