OLD | NEW |
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 ContentSuggestionsArticleItem; |
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 first page of the Reading List. | |
17 - (void)openFirstPageOfReadingList; | |
18 // Opens the favicon associated with the cell with the |index|. | |
19 - (void)openFaviconAtIndex:(NSInteger)index; | |
20 // Opens the |URL|. | 16 // Opens the |URL|. |
21 - (void)openURL:(const GURL&)URL; | 17 - (void)openURL:(const GURL&)URL; |
22 // Displays a context menu for opening the |articleItem|. | 18 // Displays a context menu for opening the |articleItem|. |
23 - (void)displayContextMenuForArticle:(ContentSuggestionsArticleItem*)articleItem | 19 - (void)displayContextMenuForArticle:(ContentSuggestionsArticleItem*)articleItem |
24 atPoint:(CGPoint)touchLocation | 20 atPoint:(CGPoint)touchLocation |
25 atIndexPath:(NSIndexPath*)indexPath; | 21 atIndexPath:(NSIndexPath*)indexPath; |
26 // Dismisses the context menu if it is displayed. | 22 // Dismisses the context menu if it is displayed. |
27 - (void)dismissContextMenu; | 23 - (void)dismissContextMenu; |
28 | 24 |
29 @end | 25 @end |
30 | 26 |
31 #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_ |
OLD | NEW |