| 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_WEB_VIEW_CONTENT_VIEW_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_VIEW_CONTENT_VIEW_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_VIEW_CONTENT_VIEW_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_VIEW_CONTENT_VIEW_H_ |
| 7 | 7 |
| 8 #import "ios/web/public/web_state/ui/crw_content_view.h" | 8 #import "ios/web/public/web_state/ui/crw_content_view.h" |
| 9 | 9 |
| 10 // Wraps a web vew in a CRWContentView. | 10 // Wraps a web vew in a CRWContentView. |
| 11 @interface CRWWebViewContentView : CRWContentView | 11 @interface CRWWebViewContentView : CRWContentView |
| 12 | 12 |
| 13 // The webView passed to |-initWithWebView|. | 13 // The webView passed to |-initWithWebView|. |
| 14 @property(nonatomic, retain, readonly) UIView* webView; | 14 @property(nonatomic, strong, readonly) UIView* webView; |
| 15 | 15 |
| 16 // Initializes the CRWWebViewContentView to display |webView|. | 16 // Initializes the CRWWebViewContentView to display |webView|. |
| 17 - (instancetype)initWithWebView:(UIView*)webView | 17 - (instancetype)initWithWebView:(UIView*)webView |
| 18 scrollView:(UIScrollView*)scrollView | 18 scrollView:(UIScrollView*)scrollView |
| 19 NS_DESIGNATED_INITIALIZER; | 19 NS_DESIGNATED_INITIALIZER; |
| 20 | 20 |
| 21 // Available only for testing. | 21 // Available only for testing. |
| 22 - (instancetype)initForTesting NS_DESIGNATED_INITIALIZER; | 22 - (instancetype)initForTesting NS_DESIGNATED_INITIALIZER; |
| 23 | 23 |
| 24 // CRWWebViewContentViews should be initialized via |-initWithWebView: | 24 // CRWWebViewContentViews should be initialized via |-initWithWebView: |
| 25 // scrollView:|. | 25 // scrollView:|. |
| 26 - (instancetype)initWithCoder:(NSCoder*)decoder NS_UNAVAILABLE; | 26 - (instancetype)initWithCoder:(NSCoder*)decoder NS_UNAVAILABLE; |
| 27 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; | 27 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; |
| 28 | 28 |
| 29 @end | 29 @end |
| 30 | 30 |
| 31 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_VIEW_CONTENT_VIEW_H_ | 31 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_VIEW_CONTENT_VIEW_H_ |
| OLD | NEW |