Index: ios/clean/chrome/browser/ui/commands/context_menu_commands.h |
diff --git a/ios/clean/chrome/browser/ui/commands/context_menu_commands.h b/ios/clean/chrome/browser/ui/commands/context_menu_commands.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a977d3d7bdbe807e8f9e1c4ac3c45085cccced8f |
--- /dev/null |
+++ b/ios/clean/chrome/browser/ui/commands/context_menu_commands.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_CONTEXT_MENU_COMMANDS_H_ |
+#define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_CONTEXT_MENU_COMMANDS_H_ |
+ |
+class GURL; |
+ |
+// Command protocol for commands relating to the context menu. |
+@protocol ContextMenuCommands |
+// Executes the JavaScript in |URL|'s content. |
+- (void)openJavaScriptURL:(const GURL*)URL; |
+// Opens |URL| in a new tab. |
+- (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
|
+// Opens |URL| in a new Incognito tab. |
+- (void)openURLInNewIncognitoTab:(const GURL*)URL; |
+// Adds |URL| to the Reading List. |
+- (void)copyURL:(const GURL*)URL; |
+// Saves's the image at |imageURL| to the camera roll. |
+- (void)saveImageAtURL:(const GURL*)imageURL; |
+// Opens the image at |imageURL|. |
+- (void)openImageAtURL:(const GURL*)imageURL; |
+// Opens the image at |imageURL| in a new tab. |
+- (void)openImageAtURLInNewTab:(const GURL*)imageURL; |
+// Stops the context menu UI with no navigation action. |
+- (void)cancelContextMenu; |
+@end |
+ |
+#endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_CONTEXT_MENU_COMMANDS_H_ |