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

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

Issue 2784843002: Reading List: Mark entry read when opening external app. (Closed)
Patch Set: comments Created 3 years, 8 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
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | 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 #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 // Current navigation triggered an external app so the loading will be
30 // cancelled.
31 - (void)currentNavigationWillContinueInExternalApp;
Eugene But (OOO till 7-30) 2017/03/29 15:44:15 We should really avoid adding new methods to CRWWe
Olivier 2017/03/29 15:49:45 |openExternalURL:linkClicked:| is called after [se
32
29 // Called when an external app needs to be opened, it also passes |linkClicked| 33 // Called when an external app needs to be opened, it also passes |linkClicked|
30 // to track if this call was a result of user action or not. Returns YES iff 34 // to track if this call was a result of user action or not. Returns YES iff
31 // |URL| is launched in an external app. 35 // |URL| is launched in an external app.
32 - (BOOL)openExternalURL:(const GURL&)URL linkClicked:(BOOL)linkClicked; 36 - (BOOL)openExternalURL:(const GURL&)URL linkClicked:(BOOL)linkClicked;
33 37
34 // This method is invoked whenever the system believes the URL is about to 38 // This method is invoked whenever the system believes the URL is about to
35 // change, or immediately after any unexpected change of the URL, prior to 39 // change, or immediately after any unexpected change of the URL, prior to
36 // updating the navigation manager's pending entry. 40 // updating the navigation manager's pending entry.
37 // Phase will be LOAD_REQUESTED. 41 // Phase will be LOAD_REQUESTED.
38 - (void)webWillAddPendingURL:(const GURL&)url 42 - (void)webWillAddPendingURL:(const GURL&)url
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Called when a PassKit file is downloaded. |data| should be the data from a 105 // Called when a PassKit file is downloaded. |data| should be the data from a
102 // PassKit file, but this is not guaranteed, and the delegate is responsible for 106 // PassKit file, but this is not guaranteed, and the delegate is responsible for
103 // error handling non PassKit data using -[PKPass initWithData:error:]. If the 107 // error handling non PassKit data using -[PKPass initWithData:error:]. If the
104 // download does not successfully complete, |data| will be nil. 108 // download does not successfully complete, |data| will be nil.
105 - (void)webController:(CRWWebController*)webController 109 - (void)webController:(CRWWebController*)webController
106 didLoadPassKitObject:(NSData*)data; 110 didLoadPassKitObject:(NSData*)data;
107 111
108 @end 112 @end
109 113
110 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 114 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698