| 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 // Adds a new empty SuggestionItem. | |
| 15 - (void)addEmptyItem; | |
| 16 // Opens the Reading List. | 14 // Opens the Reading List. |
| 17 - (void)openReadingList; | 15 - (void)openReadingList; |
| 18 // Opens the first page of the Reading List. | 16 // Opens the first page of the Reading List. |
| 19 - (void)openFirstPageOfReadingList; | 17 - (void)openFirstPageOfReadingList; |
| 20 // Opens the favicon associated with the cell with the |index|. | 18 // Opens the favicon associated with the cell with the |index|. |
| 21 - (void)openFaviconAtIndex:(NSInteger)index; | 19 - (void)openFaviconAtIndex:(NSInteger)index; |
| 22 // Opens the |URL|. | 20 // Opens the |URL|. |
| 23 - (void)openURL:(const GURL&)URL; | 21 - (void)openURL:(const GURL&)URL; |
| 24 // Displays a context menu for opening the |articleItem|. | 22 // Displays a context menu for opening the |articleItem|. |
| 25 - (void)displayContextMenuForArticle:(ContentSuggestionsArticleItem*)articleItem | 23 - (void)displayContextMenuForArticle:(ContentSuggestionsArticleItem*)articleItem |
| 26 atPoint:(CGPoint)touchLocation; | 24 atPoint:(CGPoint)touchLocation; |
| 27 | 25 |
| 28 @end | 26 @end |
| 29 | 27 |
| 30 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND
S_H_ | 28 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND
S_H_ |
| OLD | NEW |