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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.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_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/web/net/crw_request_tracker_delegate.h" 10 #import "ios/web/net/crw_request_tracker_delegate.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 @property(nonatomic, readonly) double loadingProgress; 91 @property(nonatomic, readonly) double loadingProgress;
92 92
93 // Returns the x, y offset the content has been scrolled. 93 // Returns the x, y offset the content has been scrolled.
94 @property(nonatomic, readonly) CGPoint scrollPosition; 94 @property(nonatomic, readonly) CGPoint scrollPosition;
95 95
96 // Returns whether the top of the content is visible. 96 // Returns whether the top of the content is visible.
97 @property(nonatomic, readonly) BOOL atTop; 97 @property(nonatomic, readonly) BOOL atTop;
98 98
99 // YES if JavaScript dialogs, HTTP authentication dialogs and window.open 99 // YES if JavaScript dialogs, HTTP authentication dialogs and window.open
100 // calls should be suppressed. Default is NO. When dialog is suppressed 100 // calls should be suppressed. Default is NO. When dialog is suppressed
101 // |CRWWebDelegate webControllerDidSuppressDialog:| will be called. 101 // |WebStateObserver::DidSuppressDialog| will be called.
102 @property(nonatomic, assign) BOOL shouldSuppressDialogs; 102 @property(nonatomic, assign) BOOL shouldSuppressDialogs;
103 103
104 // Designated initializer. Initializes web controller with |webState|. The 104 // Designated initializer. Initializes web controller with |webState|. The
105 // calling code must retain the ownership of |webState|. 105 // calling code must retain the ownership of |webState|.
106 - (instancetype)initWithWebState:(web::WebStateImpl*)webState; 106 - (instancetype)initWithWebState:(web::WebStateImpl*)webState;
107 107
108 // Return an image to use as replacement of a missing snapshot. 108 // Return an image to use as replacement of a missing snapshot.
109 + (UIImage*)defaultSnapshotImage; 109 + (UIImage*)defaultSnapshotImage;
110 110
111 // Replaces the currently displayed content with |contentView|. The content 111 // Replaces the currently displayed content with |contentView|. The content
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 // Acts on a single message from the JS object, parsed from JSON into a 301 // Acts on a single message from the JS object, parsed from JSON into a
302 // DictionaryValue. Returns NO if the format for the message was invalid. 302 // DictionaryValue. Returns NO if the format for the message was invalid.
303 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage 303 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage
304 userIsInteracting:(BOOL)userIsInteracting 304 userIsInteracting:(BOOL)userIsInteracting
305 originURL:(const GURL&)originURL; 305 originURL:(const GURL&)originURL;
306 306
307 @end 307 @end
308 308
309 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 309 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/web/public/web_state/web_state_observer_bridge.h ('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