| 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 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #import <UIKit/UIKit.h> | 9 #import <UIKit/UIKit.h> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Called when a page is loaded using loadWithParams. In | 93 // Called when a page is loaded using loadWithParams. In |
| 94 // |webWillInitiateLoadWithParams|, the |params| argument is non-const so that | 94 // |webWillInitiateLoadWithParams|, the |params| argument is non-const so that |
| 95 // the delegate can make changes if necessary. | 95 // the delegate can make changes if necessary. |
| 96 // TODO(rohitrao): This is not a great API. Clean it up. | 96 // TODO(rohitrao): This is not a great API. Clean it up. |
| 97 - (void)webWillInitiateLoadWithParams: | 97 - (void)webWillInitiateLoadWithParams: |
| 98 (web::NavigationManager::WebLoadParams&)params; | 98 (web::NavigationManager::WebLoadParams&)params; |
| 99 - (void)webDidUpdateSessionForLoadWithParams: | 99 - (void)webDidUpdateSessionForLoadWithParams: |
| 100 (const web::NavigationManager::WebLoadParams&)params | 100 (const web::NavigationManager::WebLoadParams&)params |
| 101 wasInitialNavigation:(BOOL)initialNavigation; | 101 wasInitialNavigation:(BOOL)initialNavigation; |
| 102 // Called from finishHistoryNavigationFromEntry. | 102 // Called from finishHistoryNavigationFromEntry. |
| 103 - (void)webWillFinishHistoryNavigationFromEntry:(CRWSessionEntry*)fromEntry; | 103 - (void)webWillFinishHistoryNavigation; |
| 104 // --------------------------------------------------------------------- | 104 // --------------------------------------------------------------------- |
| 105 | 105 |
| 106 @optional | 106 @optional |
| 107 | 107 |
| 108 // Called to ask CRWWebDelegate if |CRWWebController| should open the given URL. | 108 // Called to ask CRWWebDelegate if |CRWWebController| should open the given URL. |
| 109 // CRWWebDelegate can intercept the request by returning NO and processing URL | 109 // CRWWebDelegate can intercept the request by returning NO and processing URL |
| 110 // in own way. | 110 // in own way. |
| 111 - (BOOL)webController:(CRWWebController*)webController | 111 - (BOOL)webController:(CRWWebController*)webController |
| 112 shouldOpenURL:(const GURL&)url | 112 shouldOpenURL:(const GURL&)url |
| 113 mainDocumentURL:(const GURL&)mainDocumentURL | 113 mainDocumentURL:(const GURL&)mainDocumentURL |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Called when a PassKit file is downloaded. |data| should be the data from a | 173 // Called when a PassKit file is downloaded. |data| should be the data from a |
| 174 // PassKit file, but this is not guaranteed, and the delegate is responsible for | 174 // PassKit file, but this is not guaranteed, and the delegate is responsible for |
| 175 // error handling non PassKit data using -[PKPass initWithData:error:]. If the | 175 // error handling non PassKit data using -[PKPass initWithData:error:]. If the |
| 176 // download does not successfully complete, |data| will be nil. | 176 // download does not successfully complete, |data| will be nil. |
| 177 - (void)webController:(CRWWebController*)webController | 177 - (void)webController:(CRWWebController*)webController |
| 178 didLoadPassKitObject:(NSData*)data; | 178 didLoadPassKitObject:(NSData*)data; |
| 179 | 179 |
| 180 @end | 180 @end |
| 181 | 181 |
| 182 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 182 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| OLD | NEW |