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

Side by Side Diff: ios/web/public/web_state/ui/crw_web_delegate.h

Issue 2737353006: Replaced webPageOrderedClose with WebStateDelegate API. (Closed)
Patch Set: Addressed review comments Created 3 years, 9 months 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_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 #import "base/ios/block_types.h" 12 #import "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 #import "ios/web/public/web_state/web_state.h" 17 #import "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 CRWWebController; 21 @class CRWWebController;
22 22
23 // Methods implemented by the delegate of the CRWWebController. 23 // Methods implemented by the delegate of the CRWWebController.
24 // DEPRECATED, do not conform to this protocol and do not add any methods to it. 24 // DEPRECATED, do not conform to this protocol and do not add any methods to it.
25 // Use web::WebStateDelegate instead. 25 // Use web::WebStateDelegate instead.
26 // TODO(crbug.com/674991): Remove this protocol. 26 // TODO(crbug.com/674991): Remove this protocol.
27 @protocol CRWWebDelegate<NSObject> 27 @protocol CRWWebDelegate<NSObject>
28 28
29 // Called when the page calls window.close() on itself. Begin the shut-down
30 // sequence for this controller.
31 - (void)webPageOrderedClose;
32 // Called when an external app needs to be opened, it also passes |linkClicked| 29 // Called when an external app needs to be opened, it also passes |linkClicked|
33 // to track if this call was a result of user action or not. Returns YES iff 30 // to track if this call was a result of user action or not. Returns YES iff
34 // |URL| is launched in an external app. 31 // |URL| is launched in an external app.
35 - (BOOL)openExternalURL:(const GURL&)URL linkClicked:(BOOL)linkClicked; 32 - (BOOL)openExternalURL:(const GURL&)URL linkClicked:(BOOL)linkClicked;
36 33
37 // This method is invoked whenever the system believes the URL is about to 34 // This method is invoked whenever the system believes the URL is about to
38 // change, or immediately after any unexpected change of the URL, prior to 35 // change, or immediately after any unexpected change of the URL, prior to
39 // updating the navigation manager's pending entry. 36 // updating the navigation manager's pending entry.
40 // Phase will be LOAD_REQUESTED. 37 // Phase will be LOAD_REQUESTED.
41 - (void)webWillAddPendingURL:(const GURL&)url 38 - (void)webWillAddPendingURL:(const GURL&)url
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Called when a PassKit file is downloaded. |data| should be the data from a 119 // Called when a PassKit file is downloaded. |data| should be the data from a
123 // PassKit file, but this is not guaranteed, and the delegate is responsible for 120 // PassKit file, but this is not guaranteed, and the delegate is responsible for
124 // error handling non PassKit data using -[PKPass initWithData:error:]. If the 121 // error handling non PassKit data using -[PKPass initWithData:error:]. If the
125 // download does not successfully complete, |data| will be nil. 122 // download does not successfully complete, |data| will be nil.
126 - (void)webController:(CRWWebController*)webController 123 - (void)webController:(CRWWebController*)webController
127 didLoadPassKitObject:(NSData*)data; 124 didLoadPassKitObject:(NSData*)data;
128 125
129 @end 126 @end
130 127
131 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 128 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_delegate.mm ('k') | ios/web/public/web_state/web_state_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698