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