| 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_CRW_WEB_CONTROLLER_OBSERVER_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_CONTROLLER_OBSERVER_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_CONTROLLER_OBSERVER_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_CONTROLLER_OBSERVER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 @class CRWWebController; | 10 @class CRWWebController; |
| 11 @protocol CRWWebViewProxy; | 11 @protocol CRWWebViewProxy; |
| 12 | 12 |
| 13 // NOTE: When adding new methods to CRWWebControllerObserver, consider adding | 13 // DEPRECATED, do not conform to this protocol and do not add any methods to it. |
| 14 // them to WebStateObserver instead if they need to be surfaced to the public | 14 // Use web::WebStateObserver instead. |
| 15 // API. | 15 // TODO(crbug.com/675005): Remove this protocol. |
| 16 @protocol CRWWebControllerObserver<NSObject> | 16 @protocol CRWWebControllerObserver<NSObject> |
| 17 | 17 |
| 18 @optional | 18 @optional |
| 19 | 19 |
| 20 // Called when the current page is loaded. | 20 // Called when the current page is loaded. |
| 21 // DEPRECATED: Use WebStateObserver instead. | 21 // DEPRECATED: Use WebStateObserver instead. |
| 22 - (void)pageLoaded:(CRWWebController*)webController; | 22 - (void)pageLoaded:(CRWWebController*)webController; |
| 23 | 23 |
| 24 // Called when the web controller is about to close. | 24 // Called when the web controller is about to close. |
| 25 - (void)webControllerWillClose:(CRWWebController*)webController; | 25 - (void)webControllerWillClose:(CRWWebController*)webController; |
| 26 | 26 |
| 27 // Gives CRWWebControllerObservers access to the CRWWebViewProxy. | 27 // Gives CRWWebControllerObservers access to the CRWWebViewProxy. |
| 28 - (void)setWebViewProxy:(id<CRWWebViewProxy>)webView | 28 - (void)setWebViewProxy:(id<CRWWebViewProxy>)webView |
| 29 controller:(CRWWebController*)webController; | 29 controller:(CRWWebController*)webController; |
| 30 | 30 |
| 31 @end | 31 @end |
| 32 | 32 |
| 33 #endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_CONTROLLER_OBSERVER_H_ | 33 #endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_CONTROLLER_OBSERVER_H_ |
| OLD | NEW |