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

Side by Side Diff: ios/web/public/web_state/ui/crw_web_delegate.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
« no previous file with comments | « ios/web/public/web_state/crw_web_user_interface_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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>
11 11
12 #include "base/ios/block_types.h" 12 #include "base/ios/block_types.h"
13 #include "ios/web/public/favicon_url.h" 13 #include "ios/web/public/favicon_url.h"
14 #import "ios/web/public/navigation_manager.h" 14 #import "ios/web/public/navigation_manager.h"
15 #include "ios/web/public/ssl_status.h" 15 #include "ios/web/public/ssl_status.h"
16 #import "ios/web/public/web_state/ui/crw_native_content.h" 16 #import "ios/web/public/web_state/ui/crw_native_content.h"
17 #include "ios/web/public/web_state/web_state.h" 17 #include "ios/web/public/web_state/web_state.h"
18 #include "ui/base/page_transition_types.h" 18 #include "ui/base/page_transition_types.h"
19 19
20 class GURL; 20 class GURL;
21 @class CRWSessionEntry; 21 @class CRWSessionEntry;
22 @class CRWWebController; 22 @class CRWWebController;
23 23
24 namespace web { 24 namespace web {
25 class BlockedPopupInfo; 25 class BlockedPopupInfo;
26 struct Referrer; 26 struct Referrer;
27 } 27 }
28 28
29 // Methods implemented by the delegate of the CRWWebController. 29 // Methods implemented by the delegate of the CRWWebController.
30 // DEPRECATED, do not conform to this protocol and do not add any methods to it.
31 // Use web::WebStateDelegate instead.
32 // TODO(crbug.com/674991): Remove this protocol.
30 @protocol CRWWebDelegate<NSObject> 33 @protocol CRWWebDelegate<NSObject>
31 34
32 // Called when the page wants to open a new window by DOM (e.g. with 35 // Called when the page wants to open a new window by DOM (e.g. with
33 // |window.open| JavaScript call or by clicking a link with |_blank| target) or 36 // |window.open| JavaScript call or by clicking a link with |_blank| target) or
34 // wants to open a window with a new tab. |inBackground| allows a page to force 37 // wants to open a window with a new tab. |inBackground| allows a page to force
35 // a new window to open in the background. CRWSessionController's openedByDOM 38 // a new window to open in the background. CRWSessionController's openedByDOM
36 // property of the returned CRWWebController must be YES. 39 // property of the returned CRWWebController must be YES.
37 - (CRWWebController*)webPageOrderedOpen:(const GURL&)url 40 - (CRWWebController*)webPageOrderedOpen:(const GURL&)url
38 referrer:(const web::Referrer&)referrer 41 referrer:(const web::Referrer&)referrer
39 windowName:(NSString*)windowName 42 windowName:(NSString*)windowName
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Called when a PassKit file is downloaded. |data| should be the data from a 201 // Called when a PassKit file is downloaded. |data| should be the data from a
199 // PassKit file, but this is not guaranteed, and the delegate is responsible for 202 // PassKit file, but this is not guaranteed, and the delegate is responsible for
200 // error handling non PassKit data using -[PKPass initWithData:error:]. If the 203 // error handling non PassKit data using -[PKPass initWithData:error:]. If the
201 // download does not successfully complete, |data| will be nil. 204 // download does not successfully complete, |data| will be nil.
202 - (void)webController:(CRWWebController*)webController 205 - (void)webController:(CRWWebController*)webController
203 didLoadPassKitObject:(NSData*)data; 206 didLoadPassKitObject:(NSData*)data;
204 207
205 @end 208 @end
206 209
207 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 210 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/web/public/web_state/crw_web_user_interface_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698