Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / web / public / web_state / ui / crw_web_view_content_view.h
blob28334c96222b0bfdc31840cd61ab559a1c6a34dd
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:
25 // scrollView:|.
26 - (instancetype)initWithCoder:(NSCoder*)decoder NS_UNAVAILABLE;
27 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
29 @end
31 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_VIEW_CONTENT_VIEW_H_