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.
5 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_VIEW_MANAGER_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_VIEW_MANAGER_H_
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "mojo/public/cpp/gles2/gles2.h"
13 #include "mojo/services/view_manager/view_manager_export.h"
17 class WindowTreeClient;
31 namespace view_manager {
33 class RootNodeManager;
35 // RootViewManager binds the root node to an actual display.
36 class MOJO_VIEW_MANAGER_EXPORT RootViewManager {
38 RootViewManager(Shell* shell, RootNodeManager* root_node);
39 virtual ~RootViewManager();
41 // See description above field for details.
42 bool in_setup() const { return in_setup_; }
45 void OnCompositorCreated();
48 RootNodeManager* root_node_manager_;
50 GLES2Initializer gles_initializer_;
52 // Returns true if adding the root node's window to |window_tree_host_|.
55 scoped_ptr<gfx::Screen> screen_;
56 scoped_ptr<aura::WindowTreeHost> window_tree_host_;
57 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_;
59 DISALLOW_COPY_AND_ASSIGN(RootViewManager);
62 } // namespace view_manager
63 } // namespace services
66 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_VIEW_MANAGER_H_