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

Side by Side Diff: ios/chrome/browser/ui/context_menu/context_menu_provider.h

Issue 2005323002: Remove ContextMenuController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@contextMenuWrangler
Patch Set: Created 4 years, 7 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
« no previous file with comments | « ios/chrome/browser/ui/context_menu/context_menu_holder.mm ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_PROVIDER_H_
6 #define IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_PROVIDER_H_
7
8 // A protocol implemented by a provider of labels and actions for a context
9 // menu.
10 @protocol ContextMenuProvider<NSObject>
11
12 // Returns a ContextMenuHolder with the titles and actions associated with
13 // each menu item. The "Cancel" item is automatically added when constructing
14 // the menu for presentation, therefore it should not be added to the list.
15 // Each ContextMenuProvider might have different requirements for the
16 // |contextDictionary|. On a web page |kContextLinkURLString| and
17 // |kContextImageURLString| might both be set whereas on a recently visited
18 // entry some other identifier will be passed on.
19 - (ContextMenuHolder*)contextMenuForDictionary:(NSDictionary*)context;
20
21 @end
22
23 #endif // IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/context_menu/context_menu_holder.mm ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698