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

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

Issue 2890193003: Open Most Visited items (Closed)
Patch Set: Fix showcase 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
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 CollectionViewItem; 8 @class CollectionViewItem;
9 9
10 // Commands protocol for the ContentSuggestionsViewController. 10 // Commands protocol for the ContentSuggestionsViewController.
11 @protocol ContentSuggestionsCommands 11 @protocol ContentSuggestionsCommands
12 12
13 // Opens the Reading List. 13 // Opens the Reading List.
14 - (void)openReadingList; 14 - (void)openReadingList;
15 // Opens the page associated with this |item|. 15 // Opens the page associated with this |item|.
16 - (void)openPageForItem:(nonnull CollectionViewItem*)item; 16 - (void)openPageForItem:(nonnull CollectionViewItem*)item;
17 // Opens the Most Visited associated with this |item| at the |mostVisitedItem|.
18 - (void)openMostVisitedItem:(nonnull CollectionViewItem*)item
19 atIndex:(NSInteger)mostVisitedIndex;
17 // Displays a context menu for opening the |articleItem|. 20 // Displays a context menu for opening the |articleItem|.
18 - (void)displayContextMenuForArticle:(nonnull CollectionViewItem*)item 21 - (void)displayContextMenuForArticle:(nonnull CollectionViewItem*)item
19 atPoint:(CGPoint)touchLocation 22 atPoint:(CGPoint)touchLocation
20 atIndexPath:(nonnull NSIndexPath*)indexPath; 23 atIndexPath:(nonnull NSIndexPath*)indexPath;
21 // Dismisses the context menu if it is displayed. 24 // Dismisses the context menu if it is displayed.
22 - (void)dismissContextMenu; 25 - (void)dismissContextMenu;
23 26
24 @end 27 @end
25 28
26 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND S_H_ 29 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698