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

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

Issue 2755013002: Removed webControllerDidSuppressDialog: callback. (Closed)
Patch Set: Self review 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>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 - (BOOL)urlTriggersNativeAppLaunch:(const GURL&)URL 88 - (BOOL)urlTriggersNativeAppLaunch:(const GURL&)URL
89 sourceURL:(const GURL&)sourceURL 89 sourceURL:(const GURL&)sourceURL
90 linkClicked:(BOOL)linkClicked; 90 linkClicked:(BOOL)linkClicked;
91 91
92 // Called to ask the delegate for a controller to display the given url, 92 // Called to ask the delegate for a controller to display the given url,
93 // which contained content that the UIWebView couldn't display. Returns 93 // which contained content that the UIWebView couldn't display. Returns
94 // the native controller to display if the delegate can handle the url, 94 // the native controller to display if the delegate can handle the url,
95 // or nil otherwise. 95 // or nil otherwise.
96 - (id<CRWNativeContent>)controllerForUnhandledContentAtURL:(const GURL&)url; 96 - (id<CRWNativeContent>)controllerForUnhandledContentAtURL:(const GURL&)url;
97 97
98 // Called when CRWWebController did suppress a dialog (JavaScript, HTTP
99 // authentication or window.open).
100 // NOTE: Called only if CRWWebController.shouldSuppressDialogs is set to YES.
101 - (void)webControllerDidSuppressDialog:(CRWWebController*)webController;
102
103 // Called to retrieve the height of any header that is overlaying on top of the 98 // Called to retrieve the height of any header that is overlaying on top of the
104 // web view. This can be used to implement, for e.g. a toolbar that changes 99 // web view. This can be used to implement, for e.g. a toolbar that changes
105 // height dynamically. Returning a non-zero height affects the visible frame 100 // height dynamically. Returning a non-zero height affects the visible frame
106 // shown by the CRWWebController. 0.0 is assumed if not implemented. 101 // shown by the CRWWebController. 0.0 is assumed if not implemented.
107 - (CGFloat)headerHeightForWebController:(CRWWebController*)webController; 102 - (CGFloat)headerHeightForWebController:(CRWWebController*)webController;
108 103
109 // Called when CRWWebController updated the SSL status for the current 104 // Called when CRWWebController updated the SSL status for the current
110 // NagivationItem. 105 // NagivationItem.
111 - (void)webControllerDidUpdateSSLStatusForCurrentNavigationItem: 106 - (void)webControllerDidUpdateSSLStatusForCurrentNavigationItem:
112 (CRWWebController*)webController; 107 (CRWWebController*)webController;
113 108
114 // Called when a PassKit file is downloaded. |data| should be the data from a 109 // Called when a PassKit file is downloaded. |data| should be the data from a
115 // PassKit file, but this is not guaranteed, and the delegate is responsible for 110 // PassKit file, but this is not guaranteed, and the delegate is responsible for
116 // error handling non PassKit data using -[PKPass initWithData:error:]. If the 111 // error handling non PassKit data using -[PKPass initWithData:error:]. If the
117 // download does not successfully complete, |data| will be nil. 112 // download does not successfully complete, |data| will be nil.
118 - (void)webController:(CRWWebController*)webController 113 - (void)webController:(CRWWebController*)webController
119 didLoadPassKitObject:(NSData*)data; 114 didLoadPassKitObject:(NSData*)data;
120 115
121 @end 116 @end
122 117
123 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 118 #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_observer_util.h ('k') | ios/web/public/web_state/web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698