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