OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 ASH_SCREENSAVER_TEST_WEBVIEW_H_ |
| 6 #define ASH_SCREENSAVER_TEST_WEBVIEW_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/views/controls/webview/webview.h" |
| 10 |
| 11 namespace ash { |
| 12 namespace test { |
| 13 |
| 14 class VIEWS_EXPORT TestWebView : public views::WebView { |
| 15 public: |
| 16 explicit TestWebView(content::BrowserContext* browser_context); |
| 17 virtual ~TestWebView(); |
| 18 |
| 19 // Creates a TestWebContents. |
| 20 virtual content::WebContents* CreateWebContents( |
| 21 content::BrowserContext* browser_context, |
| 22 content::SiteInstance* site_instance) OVERRIDE; |
| 23 |
| 24 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(TestWebView); |
| 26 }; |
| 27 |
| 28 } // namespace test |
| 29 } // namespace ash |
| 30 |
| 31 #endif // ASH_SCREENSAVER_TEST_WEBVIEW_H_ |
OLD | NEW |