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_NAVIGATION_COMMANDS_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_NAVIGATION_COMMANDS_H_ |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_NAVIGATION_COMMANDS_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_NAVIGATION_COMMANDS_H_ |
7 | 7 |
8 // Target/Action methods relating to web page navigation. | 8 // Commands relating to web page navigation. |
9 // (Actions should only be used to communicate into or between the View | |
10 // Controller layer). | |
11 @protocol NavigationCommands | 9 @protocol NavigationCommands |
12 @optional | 10 @optional |
13 // Goes back to the previous visited page. | 11 // Goes back to the previous visited page. |
14 - (void)goBack; | 12 - (void)goBack; |
15 // Goes forward to the next page. | 13 // Goes forward to the next page. |
16 - (void)goForward; | 14 - (void)goForward; |
17 // Reloads the current page. | 15 // Reloads the current page. |
18 - (void)reloadPage; | 16 - (void)reloadPage; |
19 // Stops loading the page. | 17 // Stops loading the page. |
20 - (void)stopLoadingPage; | 18 - (void)stopLoadingPage; |
21 @end | 19 @end |
22 | 20 |
23 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_NAVIGATION_COMMANDS_H_ | 21 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_NAVIGATION_COMMANDS_H_ |
OLD | NEW |