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

Side by Side Diff: mojo/services/view_manager/root_view_manager.h

Issue 308803002: Change type of interface created by mojo:view_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_VIEW_MANAGER_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_VIEW_MANAGER_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_VIEW_MANAGER_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_VIEW_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 namespace mojo { 26 namespace mojo {
27 27
28 class ServiceProvider; 28 class ServiceProvider;
29 29
30 namespace view_manager { 30 namespace view_manager {
31 namespace service { 31 namespace service {
32 32
33 class RootNodeManager; 33 class RootNodeManager;
34 class RootViewManagerDelegate;
34 35
35 // RootViewManager binds the root node to an actual display. 36 // RootViewManager binds the root node to an actual display.
36 class MOJO_VIEW_MANAGER_EXPORT RootViewManager { 37 class MOJO_VIEW_MANAGER_EXPORT RootViewManager {
37 public: 38 public:
38 RootViewManager(ServiceProvider* service_provider, 39 RootViewManager(ServiceProvider* service_provider,
39 RootNodeManager* root_node); 40 RootNodeManager* root_node,
41 RootViewManagerDelegate* delegate);
40 virtual ~RootViewManager(); 42 virtual ~RootViewManager();
41 43
42 // See description above field for details. 44 // See description above field for details.
43 bool in_setup() const { return in_setup_; } 45 bool in_setup() const { return in_setup_; }
44 46
45 private: 47 private:
46 void OnCompositorCreated(); 48 void OnCompositorCreated();
47 49
48 ServiceProvider* service_provider_; 50 RootViewManagerDelegate* delegate_;
51
49 RootNodeManager* root_node_manager_; 52 RootNodeManager* root_node_manager_;
50 53
51 GLES2Initializer gles_initializer_; 54 GLES2Initializer gles_initializer_;
52 55
53 // Returns true if adding the root node's window to |window_tree_host_|. 56 // Returns true if adding the root node's window to |window_tree_host_|.
54 bool in_setup_; 57 bool in_setup_;
55 58
56 scoped_ptr<gfx::Screen> screen_; 59 scoped_ptr<gfx::Screen> screen_;
57 scoped_ptr<aura::WindowTreeHost> window_tree_host_; 60 scoped_ptr<aura::WindowTreeHost> window_tree_host_;
58 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; 61 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_;
59 62
60 DISALLOW_COPY_AND_ASSIGN(RootViewManager); 63 DISALLOW_COPY_AND_ASSIGN(RootViewManager);
61 }; 64 };
62 65
63 } // namespace service 66 } // namespace service
64 } // namespace view_manager 67 } // namespace view_manager
65 } // namespace mojo 68 } // namespace mojo
66 69
67 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_VIEW_MANAGER_H_ 70 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/root_node_manager.cc ('k') | mojo/services/view_manager/root_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698