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

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

Issue 2691303002: Add context menu for ContentSuggestions (Closed)
Patch Set: Created 3 years, 10 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 GURL; 9 class GURL;
9 10
10 // Commands protocol for the ContentSuggestionsViewController. 11 // Commands protocol for the ContentSuggestionsViewController.
11 @protocol ContentSuggestionsCommands 12 @protocol ContentSuggestionsCommands
12 13
13 // Adds a new empty SuggestionItem. 14 // Adds a new empty SuggestionItem.
14 - (void)addEmptyItem; 15 - (void)addEmptyItem;
15 // Opens the Reading List. 16 // Opens the Reading List.
16 - (void)openReadingList; 17 - (void)openReadingList;
17 // Opens the first page of the Reading List. 18 // Opens the first page of the Reading List.
18 - (void)openFirstPageOfReadingList; 19 - (void)openFirstPageOfReadingList;
19 // Opens the favicon associated with the cell with the |index|. 20 // Opens the favicon associated with the cell with the |index|.
20 - (void)openFaviconAtIndex:(NSInteger)index; 21 - (void)openFaviconAtIndex:(NSInteger)index;
21 // Opens the |URL|. 22 // Opens the |URL|.
22 - (void)openURL:(const GURL&)url; 23 - (void)openURL:(const GURL&)url;
lpromero 2017/02/14 16:18:17 Optional: s/url/URL
gambard 2017/02/15 10:37:56 Done.
24 // Displays a context menu for opening the |url|.
lpromero 2017/02/14 16:18:17 There is no "url" here.
gambard 2017/02/15 10:37:56 Done.
25 - (void)displayContextMenuForArticle:(ContentSuggestionsArticleItem*)articleItem
26 atPoint:(CGPoint)touchLocation;
23 27
24 @end 28 @end
25 29
26 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND S_H_ 30 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698