Chromium Code Reviews| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 67 - (void)webWillReload; | 67 - (void)webWillReload; |
| 68 // Called when a page is loaded using loadWithParams. In | 68 // Called when a page is loaded using loadWithParams. In |
| 69 // |webWillInitiateLoadWithParams|, the |params| argument is non-const so that | 69 // |webWillInitiateLoadWithParams|, the |params| argument is non-const so that |
| 70 // the delegate can make changes if necessary. | 70 // the delegate can make changes if necessary. |
| 71 // TODO(rohitrao): This is not a great API. Clean it up. | 71 // TODO(rohitrao): This is not a great API. Clean it up. |
| 72 - (void)webWillInitiateLoadWithParams: | 72 - (void)webWillInitiateLoadWithParams: |
| 73 (web::NavigationManager::WebLoadParams&)params; | 73 (web::NavigationManager::WebLoadParams&)params; |
| 74 - (void)webDidUpdateSessionForLoadWithParams: | 74 - (void)webDidUpdateSessionForLoadWithParams: |
| 75 (const web::NavigationManager::WebLoadParams&)params | 75 (const web::NavigationManager::WebLoadParams&)params |
| 76 wasInitialNavigation:(BOOL)initialNavigation; | 76 wasInitialNavigation:(BOOL)initialNavigation; |
| 77 // Called from finishHistoryNavigationFromEntry. | 77 |
| 78 // TODO(crbug.com/692331): Remove this method and use |DidFinishNavigation|. | |
| 79 - (void)webWillFinishHistoryNavigationFromEntry:(CRWSessionEntry*)fromEntry; | |
|
Eugene But (OOO till 7-30)
2017/03/02 22:49:41
I think we still need this code for old back forwa
kkhorimoto
2017/03/03 00:27:55
Tab's implementation of this function only calls |
Eugene But (OOO till 7-30)
2017/03/03 01:53:36
|notifyTabChanged:| is definitely called for same-
kkhorimoto
2017/03/08 21:31:33
My main motivation for removing this was that A) i
kkhorimoto
2017/03/08 22:18:38
I've added this back in so that chrome is notified
| |
| 80 // --------------------------------------------------------------------- | 78 // --------------------------------------------------------------------- |
| 81 | |
| 82 // Called when |webController| wants to open a new window. |URL| is the URL of | 79 // Called when |webController| wants to open a new window. |URL| is the URL of |
| 83 // the new window; |openerURL| is the URL of the page which requested a window | 80 // the new window; |openerURL| is the URL of the page which requested a window |
| 84 // to be open; |initiatedByUser| is YES if action was caused by the user. | 81 // to be open; |initiatedByUser| is YES if action was caused by the user. |
| 85 // |webController| will not open a window if this method returns nil. This | 82 // |webController| will not open a window if this method returns nil. This |
| 86 // method can not return |webController|. | 83 // method can not return |webController|. |
| 87 - (CRWWebController*)webController:(CRWWebController*)webController | 84 - (CRWWebController*)webController:(CRWWebController*)webController |
| 88 createWebControllerForURL:(const GURL&)URL | 85 createWebControllerForURL:(const GURL&)URL |
| 89 openerURL:(const GURL&)openerURL | 86 openerURL:(const GURL&)openerURL |
| 90 initiatedByUser:(BOOL)initiatedByUser; | 87 initiatedByUser:(BOOL)initiatedByUser; |
| 91 | 88 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 141 // Called when a PassKit file is downloaded. |data| should be the data from a | 138 // Called when a PassKit file is downloaded. |data| should be the data from a |
| 142 // PassKit file, but this is not guaranteed, and the delegate is responsible for | 139 // PassKit file, but this is not guaranteed, and the delegate is responsible for |
| 143 // error handling non PassKit data using -[PKPass initWithData:error:]. If the | 140 // error handling non PassKit data using -[PKPass initWithData:error:]. If the |
| 144 // download does not successfully complete, |data| will be nil. | 141 // download does not successfully complete, |data| will be nil. |
| 145 - (void)webController:(CRWWebController*)webController | 142 - (void)webController:(CRWWebController*)webController |
| 146 didLoadPassKitObject:(NSData*)data; | 143 didLoadPassKitObject:(NSData*)data; |
| 147 | 144 |
| 148 @end | 145 @end |
| 149 | 146 |
| 150 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 147 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| OLD | NEW |