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