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
3 // found in the LICENSE file.
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_
8 #import "ios/web/public/web_state/ui/crw_content_view.h"
10 // Wraps a web vew in a CRWContentView.
11 @interface CRWWebViewContentView
: CRWContentView
13 // The webView passed to |-initWithWebView|.
14 @
property(nonatomic
, retain
, readonly
) UIView
* webView
;
16 // Initializes the CRWWebViewContentView to display |webView|.
17 - (instancetype
)initWithWebView
:(UIView
*)webView
18 scrollView
:(UIScrollView
*)scrollView
19 NS_DESIGNATED_INITIALIZER
;
21 // Available only for testing.
22 - (instancetype
)initForTesting NS_DESIGNATED_INITIALIZER
;
24 // CRWWebViewContentViews should be initialized via |-initWithWebView:
26 - (instancetype
)initWithCoder
:(NSCoder
*)decoder NS_UNAVAILABLE
;
27 - (instancetype
)initWithFrame
:(CGRect
)frame NS_UNAVAILABLE
;
31 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_VIEW_CONTENT_VIEW_H_