Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / chromecast / browser / cast_content_window.h
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_