| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // authentication or window.open). | 99 // authentication or window.open). |
| 100 // NOTE: Called only if CRWWebController.shouldSuppressDialogs is set to YES. | 100 // NOTE: Called only if CRWWebController.shouldSuppressDialogs is set to YES. |
| 101 - (void)webControllerDidSuppressDialog:(CRWWebController*)webController; | 101 - (void)webControllerDidSuppressDialog:(CRWWebController*)webController; |
| 102 | 102 |
| 103 // Called to retrieve the height of any header that is overlaying on top of the | 103 // Called to retrieve the height of any header that is overlaying on top of the |
| 104 // web view. This can be used to implement, for e.g. a toolbar that changes | 104 // web view. This can be used to implement, for e.g. a toolbar that changes |
| 105 // height dynamically. Returning a non-zero height affects the visible frame | 105 // height dynamically. Returning a non-zero height affects the visible frame |
| 106 // shown by the CRWWebController. 0.0 is assumed if not implemented. | 106 // shown by the CRWWebController. 0.0 is assumed if not implemented. |
| 107 - (CGFloat)headerHeightForWebController:(CRWWebController*)webController; | 107 - (CGFloat)headerHeightForWebController:(CRWWebController*)webController; |
| 108 | 108 |
| 109 // Called when CRWWebController updated the SSL status for the current | |
| 110 // NagivationItem. | |
| 111 - (void)webControllerDidUpdateSSLStatusForCurrentNavigationItem: | |
| 112 (CRWWebController*)webController; | |
| 113 | |
| 114 // Called when a PassKit file is downloaded. |data| should be the data from a | 109 // Called when a PassKit file is downloaded. |data| should be the data from a |
| 115 // PassKit file, but this is not guaranteed, and the delegate is responsible for | 110 // PassKit file, but this is not guaranteed, and the delegate is responsible for |
| 116 // error handling non PassKit data using -[PKPass initWithData:error:]. If the | 111 // error handling non PassKit data using -[PKPass initWithData:error:]. If the |
| 117 // download does not successfully complete, |data| will be nil. | 112 // download does not successfully complete, |data| will be nil. |
| 118 - (void)webController:(CRWWebController*)webController | 113 - (void)webController:(CRWWebController*)webController |
| 119 didLoadPassKitObject:(NSData*)data; | 114 didLoadPassKitObject:(NSData*)data; |
| 120 | 115 |
| 121 @end | 116 @end |
| 122 | 117 |
| 123 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 118 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| OLD | NEW |