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

Side by Side Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_commands.h

Issue 2865183003: Use the same design for all suggestions (Closed)
Patch Set: Address comments Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMANDS_H _ 5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMANDS_H _
6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMANDS_H _ 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMANDS_H _
7 7
8 @class ContentSuggestionsArticleItem; 8 @class ContentSuggestionsItem;
9 class GURL; 9 class GURL;
10 10
11 // Commands protocol for the ContentSuggestionsViewController. 11 // Commands protocol for the ContentSuggestionsViewController.
12 @protocol ContentSuggestionsCommands 12 @protocol ContentSuggestionsCommands
13 13
14 // Opens the Reading List. 14 // Opens the Reading List.
15 - (void)openReadingList; 15 - (void)openReadingList;
16 // Opens the |URL|. 16 // Opens the |URL|.
17 - (void)openURL:(const GURL&)URL; 17 - (void)openURL:(const GURL&)URL;
18 // Displays a context menu for opening the |articleItem|. 18 // Displays a context menu for opening the |articleItem|.
19 - (void)displayContextMenuForArticle:(ContentSuggestionsArticleItem*)articleItem 19 - (void)displayContextMenuForArticle:(ContentSuggestionsItem*)articleItem
20 atPoint:(CGPoint)touchLocation 20 atPoint:(CGPoint)touchLocation
21 atIndexPath:(NSIndexPath*)indexPath; 21 atIndexPath:(NSIndexPath*)indexPath;
22 // Dismisses the context menu if it is displayed. 22 // Dismisses the context menu if it is displayed.
23 - (void)dismissContextMenu; 23 - (void)dismissContextMenu;
24 24
25 @end 25 @end
26 26
27 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND S_H_ 27 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698