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 namespace web { |
| 9 class WebState; |
| 10 } |
| 11 |
8 // Commands relating to tab grid UI. | 12 // Commands relating to tab grid UI. |
9 @protocol TabGridCommands | 13 @protocol TabGridCommands |
10 // Display the tab grid. | 14 // Display the tab grid. |
11 - (void)showTabGrid; | 15 - (void)showTabGrid; |
12 // Display the tab corresponding to |index|. | 16 // Display the tab corresponding to |index|. |
13 - (void)showTabGridTabAtIndex:(int)index; | 17 - (void)showTabGridTabAtIndex:(int)index; |
14 // Remove tab corresponding to |index|. | 18 // Remove tab corresponding to |index|. |
15 - (void)closeTabGridTabAtIndex:(int)index; | 19 - (void)closeTabGridTabAtIndex:(int)index; |
16 // Create new tab and display it. | 20 // Create new tab and display it. |
17 - (void)createAndShowNewTabInTabGrid; | 21 - (void)createAndShowNewTabInTabGrid; |
| 22 // Shows the tab that is displaying |webState|'s content. |
| 23 - (void)showTabGridTabWithWebState:(const web::WebState*)webState; |
18 @end | 24 @end |
19 | 25 |
20 #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 |