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

Unified Diff: chromecast/browser/cast_content_window.h

Issue 659563004: Chromecast: extracts Linux window creation code to a common place. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, delete aura instance in ~CastBrowserProcess Created 6 years, 2 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
« no previous file with comments | « chromecast/browser/cast_browser_process.cc ('k') | chromecast/browser/cast_content_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_content_window.h
diff --git a/chromecast/browser/cast_content_window.h b/chromecast/browser/cast_content_window.h
new file mode 100644
index 0000000000000000000000000000000000000000..7101db1f00a67f634fd7140f672660e819215ba1
--- /dev/null
+++ b/chromecast/browser/cast_content_window.h
@@ -0,0 +1,48 @@
+// Copyright 2014 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 CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
+#define CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace aura {
+class WindowTreeHost;
+}
+
+namespace content {
+class BrowserContext;
+class WebContents;
+}
+
+namespace gfx {
+class Size;
+}
+
+namespace chromecast {
+
+class CastContentWindow {
+ public:
+ CastContentWindow();
+
+ // Removes the window from the screen.
+ ~CastContentWindow();
+
+ // Create a window with the given size.
+ scoped_ptr<content::WebContents> Create(
+ const gfx::Size& initial_size,
+ content::BrowserContext* browser_context);
+
+ private:
+#if defined(USE_AURA)
+ scoped_ptr<aura::WindowTreeHost> window_tree_host_;
+#endif
+
+ DISALLOW_COPY_AND_ASSIGN(CastContentWindow);
+};
+
+} // namespace chromecast
+
+#endif // CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
« no previous file with comments | « chromecast/browser/cast_browser_process.cc ('k') | chromecast/browser/cast_content_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698