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_TEST_TEST_WEB_VIEW_CONTENT_VIEW_H_
6 #define IOS_WEB_PUBLIC_TEST_TEST_WEB_VIEW_CONTENT_VIEW_H_
8 #import "ios/web/public/web_state/ui/crw_web_view_content_view.h"
10 // A test version of CRWWebViewContentView.
11 @interface TestWebViewContentView
: CRWWebViewContentView
13 // Initializes the CRWTestWebContentView. Since |webView| and |scrollView| may
14 // be mock objects, they will not be added as subviews.
15 - (instancetype
)initWithMockWebView
:(id
)webView scrollView
:(id
)scrollView
;
17 // CRWTestWebViewContentViews should be initialized via |-initWithMockWebView:
19 - (instancetype
)initWithWebView
:(UIView
*)webView
20 scrollView
:(UIScrollView
*)scrollView NS_UNAVAILABLE
;
23 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_VIEW_CONTENT_VIEW_H_