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

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

Issue 2891363002: Add long press actions for Most Visited tiles (Closed)
Patch Set: Address comments 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|. 17 // Opens the Most Visited associated with this |item| at the |mostVisitedItem|.
18 - (void)openMostVisitedItem:(nonnull CollectionViewItem*)item 18 - (void)openMostVisitedItem:(nonnull CollectionViewItem*)item
19 atIndex:(NSInteger)mostVisitedIndex; 19 atIndex:(NSInteger)mostVisitedIndex;
20 // Displays a context menu for opening the |articleItem|. 20 // Displays a context menu for the |articleItem|.
21 - (void)displayContextMenuForArticle:(nonnull CollectionViewItem*)item 21 - (void)displayContextMenuForArticle:(nonnull CollectionViewItem*)articleItem
22 atPoint:(CGPoint)touchLocation 22 atPoint:(CGPoint)touchLocation
23 atIndexPath:(nonnull NSIndexPath*)indexPath; 23 atIndexPath:(nonnull NSIndexPath*)indexPath;
24 // Displays a context menu for the |mostVisitedItem|.
25 - (void)displayContextMenuForMostVisitedItem:
26 (nonnull CollectionViewItem*)mostVisitedItem
27 atPoint:(CGPoint)touchLocation
28 atIndexPath:(nonnull NSIndexPath*)indexPath;
24 // Dismisses the context menu if it is displayed. 29 // Dismisses the context menu if it is displayed.
25 - (void)dismissContextMenu; 30 - (void)dismissContextMenu;
26 31
27 @end 32 @end
28 33
29 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND S_H_ 34 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698