Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: ios/clean/chrome/browser/ui/commands/context_menu_commands.h

Issue 2862783002: [iOS Clean] Wired up ContextMenuCommands. (Closed)
Patch Set: fix deps Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 |context|'s script.
14 - (void)executeContextMenuScript:(ContextMenuContext*)context;
15 // Opens |context|'s link in a new tab.
16 - (void)openContextMenuLinkInNewTab:(ContextMenuContext*)context;
17 // Opens |context|'s link in a new Incognito tab.
18 - (void)openContextMenuLinkInNewIncognitoTab:(ContextMenuContext*)context;
19 // Copies |context|'s link to the paste board.
20 - (void)copyContextMenuLink:(ContextMenuContext*)context;
21 // Saves's the image at |context|'s image URL to the camera roll.
22 - (void)saveContextMenuImage:(ContextMenuContext*)context;
23 // Opens the image at |context|'s image URL .
24 - (void)openContextMenuImage:(ContextMenuContext*)context;
25 // Opens the image at |context|'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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698