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_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ | 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ |
6 #define IOS_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ | 6 #define IOS_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 #import <WebKit/WebKit.h> | 9 #import <WebKit/WebKit.h> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // WKNavigationState::COMMITTED state. Passed |navigation| will be help as weak | 47 // WKNavigationState::COMMITTED state. Passed |navigation| will be help as weak |
48 // reference and will not be retained. No-op if |navigation| is null. | 48 // reference and will not be retained. No-op if |navigation| is null. |
49 - (void)setState:(web::WKNavigationState)state | 49 - (void)setState:(web::WKNavigationState)state |
50 forNavigation:(WKNavigation*)navigation; | 50 forNavigation:(WKNavigation*)navigation; |
51 | 51 |
52 // WKNavigation which was added the most recently via |setState:forNavigation:|. | 52 // WKNavigation which was added the most recently via |setState:forNavigation:|. |
53 // Updating navigation state via |setState:forNavigation:| does not change the | 53 // Updating navigation state via |setState:forNavigation:| does not change the |
54 // last added navigation. Returns nil if there are no stored navigations. | 54 // last added navigation. Returns nil if there are no stored navigations. |
55 - (WKNavigation*)lastAddedNavigation; | 55 - (WKNavigation*)lastAddedNavigation; |
56 | 56 |
| 57 // State of WKNavigation which was added the most recently via |
| 58 // |setState:forNavigation:|. |
| 59 - (web::WKNavigationState)lastAddedNavigationState; |
| 60 |
57 @end | 61 @end |
58 | 62 |
59 #endif // IOS_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ | 63 #endif // IOS_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ |
OLD | NEW |