| 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 ContentSuggestionsItem; | 8 @class CollectionViewItem; |
| 9 class GURL; | |
| 10 | 9 |
| 11 // Commands protocol for the ContentSuggestionsViewController. | 10 // Commands protocol for the ContentSuggestionsViewController. |
| 12 @protocol ContentSuggestionsCommands | 11 @protocol ContentSuggestionsCommands |
| 13 | 12 |
| 14 // Opens the Reading List. | 13 // Opens the Reading List. |
| 15 - (void)openReadingList; | 14 - (void)openReadingList; |
| 16 // Opens the |URL|. | 15 // Opens the page associated with this |item|. |
| 17 - (void)openURL:(const GURL&)URL; | 16 - (void)openPageForItem:(nonnull CollectionViewItem*)item; |
| 18 // Displays a context menu for opening the |articleItem|. | 17 // Displays a context menu for opening the |articleItem|. |
| 19 - (void)displayContextMenuForArticle:(ContentSuggestionsItem*)articleItem | 18 - (void)displayContextMenuForArticle:(nonnull CollectionViewItem*)item |
| 20 atPoint:(CGPoint)touchLocation | 19 atPoint:(CGPoint)touchLocation |
| 21 atIndexPath:(NSIndexPath*)indexPath; | 20 atIndexPath:(nonnull NSIndexPath*)indexPath; |
| 22 // Dismisses the context menu if it is displayed. | 21 // Dismisses the context menu if it is displayed. |
| 23 - (void)dismissContextMenu; | 22 - (void)dismissContextMenu; |
| 24 | 23 |
| 25 @end | 24 @end |
| 26 | 25 |
| 27 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND
S_H_ | 26 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COMMAND
S_H_ |
| OLD | NEW |