| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 inBackground:(BOOL)inBackground; | 43 inBackground:(BOOL)inBackground; |
| 44 | 44 |
| 45 // Called when the page wants to open a new window by DOM. | 45 // Called when the page wants to open a new window by DOM. |
| 46 // CRWSessionController's openedByDOM property of the returned CRWWebController | 46 // CRWSessionController's openedByDOM property of the returned CRWWebController |
| 47 // must be YES. | 47 // must be YES. |
| 48 - (CRWWebController*)webPageOrderedOpen; | 48 - (CRWWebController*)webPageOrderedOpen; |
| 49 | 49 |
| 50 // Called when the page calls window.close() on itself. Begin the shut-down | 50 // Called when the page calls window.close() on itself. Begin the shut-down |
| 51 // sequence for this controller. | 51 // sequence for this controller. |
| 52 - (void)webPageOrderedClose; | 52 - (void)webPageOrderedClose; |
| 53 // Opens a URL with the given parameters. | |
| 54 - (void)openURLWithParams:(const web::WebState::OpenURLParams&)params; | |
| 55 // Called when an external app needs to be opened, it also passes |linkClicked| | 53 // Called when an external app needs to be opened, it also passes |linkClicked| |
| 56 // to track if this call was a result of user action or not. Returns YES iff | 54 // to track if this call was a result of user action or not. Returns YES iff |
| 57 // |URL| is launched in an external app. | 55 // |URL| is launched in an external app. |
| 58 - (BOOL)openExternalURL:(const GURL&)URL linkClicked:(BOOL)linkClicked; | 56 - (BOOL)openExternalURL:(const GURL&)URL linkClicked:(BOOL)linkClicked; |
| 59 | 57 |
| 60 // This method is invoked whenever the system believes the URL is about to | 58 // This method is invoked whenever the system believes the URL is about to |
| 61 // change, or immediately after any unexpected change of the URL, prior to | 59 // change, or immediately after any unexpected change of the URL, prior to |
| 62 // updating the navigation manager's pending entry. | 60 // updating the navigation manager's pending entry. |
| 63 // Phase will be LOAD_REQUESTED. | 61 // Phase will be LOAD_REQUESTED. |
| 64 - (void)webWillAddPendingURL:(const GURL&)url | 62 - (void)webWillAddPendingURL:(const GURL&)url |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // Called when a PassKit file is downloaded. |data| should be the data from a | 199 // Called when a PassKit file is downloaded. |data| should be the data from a |
| 202 // PassKit file, but this is not guaranteed, and the delegate is responsible for | 200 // PassKit file, but this is not guaranteed, and the delegate is responsible for |
| 203 // error handling non PassKit data using -[PKPass initWithData:error:]. If the | 201 // error handling non PassKit data using -[PKPass initWithData:error:]. If the |
| 204 // download does not successfully complete, |data| will be nil. | 202 // download does not successfully complete, |data| will be nil. |
| 205 - (void)webController:(CRWWebController*)webController | 203 - (void)webController:(CRWWebController*)webController |
| 206 didLoadPassKitObject:(NSData*)data; | 204 didLoadPassKitObject:(NSData*)data; |
| 207 | 205 |
| 208 @end | 206 @end |
| 209 | 207 |
| 210 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 208 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| OLD | NEW |