OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_GENERIC_CONTENT_VIEW_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_GENERIC_CONTENT_VIEW_H_ |
6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_GENERIC_CONTENT_VIEW_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_GENERIC_CONTENT_VIEW_H_ |
7 | 7 |
8 #include "ios/web/public/web_state/ui/crw_content_view.h" | 8 #include "ios/web/public/web_state/ui/crw_content_view.h" |
9 | 9 |
10 // Wraps an arbitrary native UIView in a CRWContentView. | 10 // Wraps an arbitrary native UIView in a CRWContentView. |
11 @interface CRWGenericContentView : CRWContentView | 11 @interface CRWGenericContentView : CRWContentView |
12 | 12 |
13 // The view that was passed to |-initWithContentView:|. This is the view that | 13 // The view that was passed to |-initWithContentView:|. This is the view that |
14 // is displayed in |self.scrollView|. | 14 // is displayed in |self.scrollView|. |
15 @property(nonatomic, retain, readonly) UIView* view; | 15 @property(nonatomic, strong, readonly) UIView* view; |
16 | 16 |
17 // Initializes the CRWNativeContentContainerView to display |view|, which | 17 // Initializes the CRWNativeContentContainerView to display |view|, which |
18 // will be added to the scroll view. | 18 // will be added to the scroll view. |
19 - (instancetype)initWithView:(UIView*)view NS_DESIGNATED_INITIALIZER; | 19 - (instancetype)initWithView:(UIView*)view NS_DESIGNATED_INITIALIZER; |
20 | 20 |
21 // CRWGenericContentViews should be initialized via |-initWithView:|. | 21 // CRWGenericContentViews should be initialized via |-initWithView:|. |
22 - (instancetype)initWithCoder:(NSCoder*)decoder NS_UNAVAILABLE; | 22 - (instancetype)initWithCoder:(NSCoder*)decoder NS_UNAVAILABLE; |
23 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; | 23 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; |
24 | 24 |
25 @end | 25 @end |
26 | 26 |
27 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_GENERIC_CONTENT_VIEW_H_ | 27 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_GENERIC_CONTENT_VIEW_H_ |
OLD | NEW |