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

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

Issue 1891863004: Copy contents of ui/base/ios into ios/chrome/browser/ui/context_menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix HardwardKeyboard test Created 4 years, 8 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 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

Powered by Google App Engine
This is Rietveld 408576698