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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
6 #define CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10
11 namespace aura {
12 class WindowTreeHost;
13 }
14
15 namespace content {
16 class BrowserContext;
17 class WebContents;
18 }
19
20 namespace gfx {
21 class Size;
22 }
23
24 namespace chromecast {
25
26 class CastContentWindow {
27 public:
28 CastContentWindow();
29
30 // Removes the window from the screen.
31 ~CastContentWindow();
32
33 // Create a window with the given size.
34 scoped_ptr<content::WebContents> Create(
35 const gfx::Size& initial_size,
36 content::BrowserContext* browser_context);
37
38 private:
39 #if defined(USE_AURA)
40 scoped_ptr<aura::WindowTreeHost> window_tree_host_;
41 #endif
42
43 DISALLOW_COPY_AND_ASSIGN(CastContentWindow);
44 };
45
46 } // namespace chromecast
47
48 #endif // CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
OLDNEW
« 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