OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_TAB_COMMANDS_H_ | |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_TAB_COMMANDS_H_ | |
7 | |
8 // Command protocol for commands relating to tabs. | |
9 // (Commands are for communicating into or within the coordinator layer). | |
10 @protocol TabCommands | |
11 // Display the tab corresponding to |index|. | |
12 - (void)showTabAtIndex:(int)index; | |
13 | |
14 // Remove tab corresponding to |index|. | |
15 - (void)closeTabAtIndex:(int)index; | |
16 | |
17 // Create new tab and display it. | |
18 - (void)createAndShowNewTab; | |
19 @end | |
20 | |
21 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_TAB_COMMANDS_H_ | |
OLD | NEW |