OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_COMMANDS_BROWSER_COMMANDS_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_COMMANDS_BROWSER_COMMANDS_H_ |
6 #define IOS_CHROME_BROWSER_UI_COMMANDS_BROWSER_COMMANDS_H_ | 6 #define IOS_CHROME_BROWSER_UI_COMMANDS_BROWSER_COMMANDS_H_ |
7 | 7 |
8 // Protocol for commands that will generally be handled by the "current tab", | 8 // Protocol for commands that will generally be handled by the "current tab", |
9 // which in practice is the BrowserViewController instance displaying the tab. | 9 // which in practice is the BrowserViewController instance displaying the tab. |
10 @protocol BrowserCommands | 10 @protocol BrowserCommands |
11 | 11 |
12 // Close the current tab. | 12 // Close the current tab. |
13 - (void)closeCurrentTab; | 13 - (void)closeCurrentTab; |
14 | 14 |
| 15 // Navigate backwards in the current tab's history. |
| 16 - (void)goBack; |
| 17 |
| 18 // Navigate forwards in the current tab's history. |
| 19 - (void)goForward; |
| 20 |
15 @end | 21 @end |
16 | 22 |
17 #endif // IOS_CHROME_BROWSER_UI_COMMANDS_BROWSER_COMMANDS_H_ | 23 #endif // IOS_CHROME_BROWSER_UI_COMMANDS_BROWSER_COMMANDS_H_ |
OLD | NEW |