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

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: feedback 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>
(...skipping 11 matching lines...) Expand all
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 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|
30 // 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
31 // |URL| is launched in an external app. 31 // |URL| is launched in an external app.
32 - (BOOL)openExternalURL:(const GURL&)URL linkClicked:(BOOL)linkClicked; 32 // |sourceURL| is the original URL that triggered the navigation to |URL|.
33 - (BOOL)openExternalURL:(const GURL&)URL
34 sourceURL:(const GURL&)sourceURL
35 linkClicked:(BOOL)linkClicked;
33 36
34 // This method is invoked whenever the system believes the URL is about to 37 // 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 38 // change, or immediately after any unexpected change of the URL, prior to
36 // updating the navigation manager's pending entry. 39 // updating the navigation manager's pending entry.
37 // Phase will be LOAD_REQUESTED. 40 // Phase will be LOAD_REQUESTED.
38 - (void)webWillAddPendingURL:(const GURL&)url 41 - (void)webWillAddPendingURL:(const GURL&)url
39 transition:(ui::PageTransition)transition; 42 transition:(ui::PageTransition)transition;
40 // Called when a placeholder image should be displayed instead of the WebView. 43 // Called when a placeholder image should be displayed instead of the WebView.
41 - (void)webController:(CRWWebController*)webController 44 - (void)webController:(CRWWebController*)webController
42 retrievePlaceholderOverlayImage:(void (^)(UIImage*))block; 45 retrievePlaceholderOverlayImage:(void (^)(UIImage*))block;
(...skipping 58 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 104 // 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 105 // 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 106 // error handling non PassKit data using -[PKPass initWithData:error:]. If the
104 // download does not successfully complete, |data| will be nil. 107 // download does not successfully complete, |data| will be nil.
105 - (void)webController:(CRWWebController*)webController 108 - (void)webController:(CRWWebController*)webController
106 didLoadPassKitObject:(NSData*)data; 109 didLoadPassKitObject:(NSData*)data;
107 110
108 @end 111 @end
109 112
110 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 113 #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