| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // web view. This can be used to implement, for e.g. a toolbar that changes | 173 // web view. This can be used to implement, for e.g. a toolbar that changes |
| 174 // height dynamically. Returning a non-zero height affects the visible frame | 174 // height dynamically. Returning a non-zero height affects the visible frame |
| 175 // shown by the CRWWebController. 0.0 is assumed if not implemented. | 175 // shown by the CRWWebController. 0.0 is assumed if not implemented. |
| 176 - (CGFloat)headerHeightForWebController:(CRWWebController*)webController; | 176 - (CGFloat)headerHeightForWebController:(CRWWebController*)webController; |
| 177 | 177 |
| 178 // Called when CRWWebController updated the SSL status for the current | 178 // Called when CRWWebController updated the SSL status for the current |
| 179 // NagivationItem. | 179 // NagivationItem. |
| 180 - (void)webControllerDidUpdateSSLStatusForCurrentNavigationItem: | 180 - (void)webControllerDidUpdateSSLStatusForCurrentNavigationItem: |
| 181 (CRWWebController*)webController; | 181 (CRWWebController*)webController; |
| 182 | 182 |
| 183 // Called when web view process has been terminated. | |
| 184 - (void)webControllerWebProcessDidCrash:(CRWWebController*)webController; | |
| 185 | |
| 186 // Called when a PassKit file is downloaded. |data| should be the data from a | 183 // Called when a PassKit file is downloaded. |data| should be the data from a |
| 187 // PassKit file, but this is not guaranteed, and the delegate is responsible for | 184 // PassKit file, but this is not guaranteed, and the delegate is responsible for |
| 188 // error handling non PassKit data using -[PKPass initWithData:error:]. If the | 185 // error handling non PassKit data using -[PKPass initWithData:error:]. If the |
| 189 // download does not successfully complete, |data| will be nil. | 186 // download does not successfully complete, |data| will be nil. |
| 190 - (void)webController:(CRWWebController*)webController | 187 - (void)webController:(CRWWebController*)webController |
| 191 didLoadPassKitObject:(NSData*)data; | 188 didLoadPassKitObject:(NSData*)data; |
| 192 | 189 |
| 193 @end | 190 @end |
| 194 | 191 |
| 195 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 192 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| OLD | NEW |