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_CLEAN_CHROME_BROWSER_UI_COMMANDS_TAB_GRID_COMMANDS_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_TAB_GRID_COMMANDS_H_ |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_TAB_GRID_COMMANDS_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_TAB_GRID_COMMANDS_H_ |
7 | 7 |
8 // Command protocol for commands relating to the tab grid UI. | 8 // Command protocol for commands relating to the tab grid UI. |
9 // (Commands are for communicating into or within the coordinator layer). | 9 // (Commands are for communicating into or within the coordinator layer). |
10 @protocol TabGridCommands | 10 @protocol TabGridCommands |
| 11 |
11 // Display the tab grid. | 12 // Display the tab grid. |
12 - (void)showTabGrid; | 13 - (void)showTabGrid; |
| 14 |
| 15 // Display the tab corresponding to |index|. |
| 16 - (void)showTabGridTabAtIndex:(int)index; |
| 17 |
| 18 // Remove tab corresponding to |index|. |
| 19 - (void)closeTabGridTabAtIndex:(int)index; |
| 20 |
| 21 // Create new tab and display it. |
| 22 - (void)createAndShowNewTabInTabGrid; |
| 23 |
13 @end | 24 @end |
14 | 25 |
15 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_TAB_GRID_COMMANDS_H_ | 26 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_TAB_GRID_COMMANDS_H_ |
OLD | NEW |