Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: ios/web/public/web_state/crw_web_controller_observer.h

Issue 2582843002: [ios] Added deprecation comments and TODOs for ios/web classes/protocols (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « ios/web/navigation/crw_session_entry.h ('k') | ios/web/public/web_state/crw_web_user_interface_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698