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

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

Issue 1806043004: [ios] Refactored dialogs suppression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments Created 4 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
« no previous file with comments | « no previous file | ios/web/web_state/js/resources/dialog_overrides.js » ('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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 - (BOOL)webController:(CRWWebController*)webController 192 - (BOOL)webController:(CRWWebController*)webController
193 shouldBlockPopupWithURL:(const GURL&)popupURL 193 shouldBlockPopupWithURL:(const GURL&)popupURL
194 sourceURL:(const GURL&)sourceURL; 194 sourceURL:(const GURL&)sourceURL;
195 195
196 // Called when CRWWebController has detected and blocked a popup. In order to 196 // Called when CRWWebController has detected and blocked a popup. In order to
197 // allow the blocked pop up CRWWebDelegate must call 197 // allow the blocked pop up CRWWebDelegate must call
198 // |blockedPopupInfo.ShowPopup()| instead of attempting to open a new window. 198 // |blockedPopupInfo.ShowPopup()| instead of attempting to open a new window.
199 - (void)webController:(CRWWebController*)webController 199 - (void)webController:(CRWWebController*)webController
200 didBlockPopup:(const web::BlockedPopupInfo&)blockedPopupInfo; 200 didBlockPopup:(const web::BlockedPopupInfo&)blockedPopupInfo;
201 201
202 // Called when CRWWebController did suppress a dialog (only if kSuppressDialogs 202 // Called when CRWWebController did suppress a dialog (JavaScript, HTTP
203 // policy is set via -[CRWWebController setPageDialogsOpenPolicy:] method). 203 // authentication or window.open).
204 // NOTE: Called only if CRWWebController.suppressDialogs is set to YES.
204 - (void)webControllerDidSuppressDialog:(CRWWebController*)webController; 205 - (void)webControllerDidSuppressDialog:(CRWWebController*)webController;
205 206
206 // Called to retrieve the height of any header that is overlaying on top of the 207 // Called to retrieve the height of any header that is overlaying on top of the
207 // web view. This can be used to implement, for e.g. a toolbar that changes 208 // web view. This can be used to implement, for e.g. a toolbar that changes
208 // height dynamically. Returning a non-zero height affects the visible frame 209 // height dynamically. Returning a non-zero height affects the visible frame
209 // shown by the CRWWebController. 0.0 is assumed if not implemented. 210 // shown by the CRWWebController. 0.0 is assumed if not implemented.
210 - (CGFloat)headerHeightForWebController:(CRWWebController*)webController; 211 - (CGFloat)headerHeightForWebController:(CRWWebController*)webController;
211 212
212 // Called when CRWWebController updated the SSL status for the current 213 // Called when CRWWebController updated the SSL status for the current
213 // NagivationItem. 214 // NagivationItem.
(...skipping 10 matching lines...) Expand all
224 // Called when a PassKit file is downloaded. |data| should be the data from a 225 // Called when a PassKit file is downloaded. |data| should be the data from a
225 // PassKit file, but this is not guaranteed, and the delegate is responsible for 226 // PassKit file, but this is not guaranteed, and the delegate is responsible for
226 // error handling non PassKit data using -[PKPass initWithData:error:]. If the 227 // error handling non PassKit data using -[PKPass initWithData:error:]. If the
227 // download does not successfully complete, |data| will be nil. 228 // download does not successfully complete, |data| will be nil.
228 - (void)webController:(CRWWebController*)webController 229 - (void)webController:(CRWWebController*)webController
229 didLoadPassKitObject:(NSData*)data; 230 didLoadPassKitObject:(NSData*)data;
230 231
231 @end 232 @end
232 233
233 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 234 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/web_state/js/resources/dialog_overrides.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698