| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 - (void)webWillInitiateLoadWithParams:(web::WebLoadParams&)params; | 167 - (void)webWillInitiateLoadWithParams:(web::WebLoadParams&)params; |
| 168 - (void)webDidUpdateSessionForLoadWithParams:(const web::WebLoadParams&)params | 168 - (void)webDidUpdateSessionForLoadWithParams:(const web::WebLoadParams&)params |
| 169 wasInitialNavigation:(BOOL)initialNavigation; | 169 wasInitialNavigation:(BOOL)initialNavigation; |
| 170 // Called from finishHistoryNavigationFromEntry. | 170 // Called from finishHistoryNavigationFromEntry. |
| 171 - (void)webWillFinishHistoryNavigationFromEntry:(CRWSessionEntry*)fromEntry; | 171 - (void)webWillFinishHistoryNavigationFromEntry:(CRWSessionEntry*)fromEntry; |
| 172 // Called when a page navigates backwards or forwards. | 172 // Called when a page navigates backwards or forwards. |
| 173 - (void)webWillGoDelta:(int)delta; | 173 - (void)webWillGoDelta:(int)delta; |
| 174 - (void)webDidPrepareForGoBack; | 174 - (void)webDidPrepareForGoBack; |
| 175 // --------------------------------------------------------------------- | 175 // --------------------------------------------------------------------- |
| 176 | 176 |
| 177 | |
| 178 @optional | 177 @optional |
| 179 | 178 |
| 180 // Called to ask CRWWebDelegate if |CRWWebController| should open the given URL. | 179 // Called to ask CRWWebDelegate if |CRWWebController| should open the given URL. |
| 181 // CRWWebDelegate can intercept the request by returning NO and processing URL | 180 // CRWWebDelegate can intercept the request by returning NO and processing URL |
| 182 // in own way. | 181 // in own way. |
| 183 - (BOOL)webController:(CRWWebController*)webController | 182 - (BOOL)webController:(CRWWebController*)webController |
| 184 shouldOpenURL:(const GURL&)url | 183 shouldOpenURL:(const GURL&)url |
| 185 mainDocumentURL:(const GURL&)mainDocumentURL | 184 mainDocumentURL:(const GURL&)mainDocumentURL |
| 186 linkClicked:(BOOL)linkClicked; | 185 linkClicked:(BOOL)linkClicked; |
| 187 | 186 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // Called when a PassKit file is downloaded. |data| should be the data from a | 260 // Called when a PassKit file is downloaded. |data| should be the data from a |
| 262 // PassKit file, but this is not guaranteed, and the delegate is responsible for | 261 // PassKit file, but this is not guaranteed, and the delegate is responsible for |
| 263 // error handling non PassKit data using -[PKPass initWithData:error:]. If the | 262 // error handling non PassKit data using -[PKPass initWithData:error:]. If the |
| 264 // download does not successfully complete, |data| will be nil. | 263 // download does not successfully complete, |data| will be nil. |
| 265 - (void)webController:(CRWWebController*)webController | 264 - (void)webController:(CRWWebController*)webController |
| 266 didLoadPassKitObject:(NSData*)data; | 265 didLoadPassKitObject:(NSData*)data; |
| 267 | 266 |
| 268 @end | 267 @end |
| 269 | 268 |
| 270 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 269 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| OLD | NEW |