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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.h

Issue 2027733003: [ios Mojo] Enabled Mojo WebUI by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/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_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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 @property(nonatomic, readonly) CGPoint scrollPosition; 110 @property(nonatomic, readonly) CGPoint scrollPosition;
111 111
112 // Returns whether the top of the content is visible. 112 // Returns whether the top of the content is visible.
113 @property(nonatomic, readonly) BOOL atTop; 113 @property(nonatomic, readonly) BOOL atTop;
114 114
115 // YES if JavaScript dialogs, HTTP authentication dialogs and window.open 115 // YES if JavaScript dialogs, HTTP authentication dialogs and window.open
116 // calls should be suppressed. Default is NO. When dialog is suppressed 116 // calls should be suppressed. Default is NO. When dialog is suppressed
117 // |CRWWebDelegate webControllerDidSuppressDialog:| will be called. 117 // |CRWWebDelegate webControllerDidSuppressDialog:| will be called.
118 @property(nonatomic, assign) BOOL shouldSuppressDialogs; 118 @property(nonatomic, assign) BOOL shouldSuppressDialogs;
119 119
120 // YES if Mojo should be used for WebUI, defaults to NO.
121 @property(nonatomic, assign) BOOL useMojoForWebUI;
122
123 // Designated initializer. Initializes web controller with |webState|. The 120 // Designated initializer. Initializes web controller with |webState|. The
124 // calling code must retain the ownership of |webState|. 121 // calling code must retain the ownership of |webState|.
125 - (instancetype)initWithWebState:(web::WebStateImpl*)webState; 122 - (instancetype)initWithWebState:(web::WebStateImpl*)webState;
126 123
127 // Return an image to use as replacement of a missing snapshot. 124 // Return an image to use as replacement of a missing snapshot.
128 + (UIImage*)defaultSnapshotImage; 125 + (UIImage*)defaultSnapshotImage;
129 126
130 // Replaces the currently displayed content with |contentView|. The content 127 // Replaces the currently displayed content with |contentView|. The content
131 // view will be dismissed for the next navigation. 128 // view will be dismissed for the next navigation.
132 - (void)showTransientContentView:(CRWContentView*)contentView; 129 - (void)showTransientContentView:(CRWContentView*)contentView;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 332
336 // Acts on a single message from the JS object, parsed from JSON into a 333 // Acts on a single message from the JS object, parsed from JSON into a
337 // DictionaryValue. Returns NO if the format for the message was invalid. 334 // DictionaryValue. Returns NO if the format for the message was invalid.
338 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage 335 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage
339 userIsInteracting:(BOOL)userIsInteracting 336 userIsInteracting:(BOOL)userIsInteracting
340 originURL:(const GURL&)originURL; 337 originURL:(const GURL&)originURL;
341 338
342 @end 339 @end
343 340
344 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 341 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698