OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
7 // ============================================================================ | 7 // ============================================================================ |
8 | 8 |
9 #ifndef IOS_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_CONTENTS_VIEW_CONTROLLER_H_ | 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_CONTENTS_VIEW_CONTROLLER_H_ |
10 #define IOS_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_CONTENTS_VIEW_CONTROLLER_H_ | 10 #define IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_CONTENTS_VIEW_CONTROLLER_H_ |
11 | 11 |
12 #import <UIKit/UIKit.h> | 12 #import <UIKit/UIKit.h> |
13 | 13 |
14 namespace web { | 14 namespace web { |
15 class WebState; | 15 class WebState; |
16 } | 16 } |
17 | 17 |
18 // A view controller for displaying a web view with no other controls or | 18 // A view controller for displaying a web view with no other controls or |
19 // decoration. | 19 // decoration. |
20 @interface WebContentsViewController : UIViewController | 20 @interface WebContentsViewController : UIViewController |
21 | 21 |
22 // Designated initializer. |webState| must not be null. | 22 // Designated initializer. |webState| must not be null. |
23 - (instancetype)initWithWebState:(web::WebState*)webState | 23 - (instancetype)initWithWebState:(web::WebState*)webState |
24 NS_DESIGNATED_INITIALIZER; | 24 NS_DESIGNATED_INITIALIZER; |
25 | 25 |
26 - (instancetype)init NS_UNAVAILABLE; | 26 - (instancetype)init NS_UNAVAILABLE; |
27 | 27 |
28 - (instancetype)initWithCoder:(NSCoder*)aCoder NS_UNAVAILABLE; | 28 - (instancetype)initWithCoder:(NSCoder*)aCoder NS_UNAVAILABLE; |
29 | 29 |
30 - (instancetype)initWithNibName:(NSString*)nibNameOrNil | 30 - (instancetype)initWithNibName:(NSString*)nibNameOrNil |
31 bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE; | 31 bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE; |
32 | 32 |
33 // The webState the receiver was initialized with. | 33 // The webState the receiver was initialized with. |
34 @property(nonatomic, readonly) web::WebState* webState; | 34 @property(nonatomic, readonly) web::WebState* webState; |
35 | 35 |
36 @end | 36 @end |
37 | 37 |
38 #endif // IOS_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_CONTENTS_VIEW_CONTROLLER_H_ | 38 #endif // IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_CONTENTS_VIEW_CONTROLLER
_H_ |
OLD | NEW |