Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2735)

Unified Diff: ash/screensaver/test_webview.h

Issue 10191010: Re-implement the screensaver to use WebView instead of ExtensionDialogHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/screensaver/test_webview.h
diff --git a/ash/screensaver/test_webview.h b/ash/screensaver/test_webview.h
new file mode 100644
index 0000000000000000000000000000000000000000..f5a36a47877bffcd16ad63be4c0220c711a937e3
--- /dev/null
+++ b/ash/screensaver/test_webview.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SCREENSAVER_TEST_WEBVIEW_H_
+#define ASH_SCREENSAVER_TEST_WEBVIEW_H_
+#pragma once
+
+#include "ui/views/controls/webview/webview.h"
+
+namespace ash {
+namespace test {
+
+class VIEWS_EXPORT TestWebView : public views::WebView {
+ public:
+ explicit TestWebView(content::BrowserContext* browser_context);
+ virtual ~TestWebView();
+
+ // Creates a TestWebContents.
+ virtual content::WebContents* CreateWebContents(
+ content::BrowserContext* browser_context,
+ content::SiteInstance* site_instance) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestWebView);
+};
+
+} // namespace test
+} // namespace ash
+
+#endif // ASH_SCREENSAVER_TEST_WEBVIEW_H_

Powered by Google App Engine
This is Rietveld 408576698