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

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

Issue 513923004: More viewmanager renaming: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sim30 Created 6 years, 3 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
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_DISPLAY_MANAGER_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 namespace gfx { 28 namespace gfx {
29 class Screen; 29 class Screen;
30 } 30 }
31 31
32 namespace mojo { 32 namespace mojo {
33 33
34 class ApplicationConnection; 34 class ApplicationConnection;
35 35
36 namespace service { 36 namespace service {
37 37
38 class Node; 38 class ConnectionManager;
39 class RootNodeManager;
40 class DisplayManagerDelegate; 39 class DisplayManagerDelegate;
40 class ServerView;
41 41
42 // DisplayManager binds the root node to an actual display. 42 // DisplayManager binds the root view to an actual display.
43 class MOJO_VIEW_MANAGER_EXPORT DisplayManager { 43 class MOJO_VIEW_MANAGER_EXPORT DisplayManager {
44 public: 44 public:
45 DisplayManager(ApplicationConnection* app_connection, 45 DisplayManager(ApplicationConnection* app_connection,
46 RootNodeManager* root_node, 46 ConnectionManager* connection_manager,
47 DisplayManagerDelegate* delegate, 47 DisplayManagerDelegate* delegate,
48 const Callback<void()>& native_viewport_closed_callback); 48 const Callback<void()>& native_viewport_closed_callback);
49 virtual ~DisplayManager(); 49 virtual ~DisplayManager();
50 50
51 // Schedules a paint for the specified region of the specified node. 51 // Schedules a paint for the specified region of the specified view.
52 void SchedulePaint(const Node* node, const gfx::Rect& bounds); 52 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds);
53 53
54 // See description above field for details. 54 // See description above field for details.
55 bool in_setup() const { return in_setup_; } 55 bool in_setup() const { return in_setup_; }
56 56
57 private: 57 private:
58 class RootWindowDelegateImpl; 58 class RootWindowDelegateImpl;
59 59
60 void OnCompositorCreated(); 60 void OnCompositorCreated();
61 61
62 DisplayManagerDelegate* delegate_; 62 DisplayManagerDelegate* delegate_;
63 63
64 RootNodeManager* root_node_manager_; 64 ConnectionManager* connection_manager_;
65 65
66 // Returns true if adding the root node's window to |window_tree_host_|. 66 // Returns true if adding the root view's window to |window_tree_host_|.
67 bool in_setup_; 67 bool in_setup_;
68 68
69 scoped_ptr<RootWindowDelegateImpl> window_delegate_; 69 scoped_ptr<RootWindowDelegateImpl> window_delegate_;
70 70
71 // Owned by its parent aura::Window. 71 // Owned by its parent aura::Window.
72 aura::Window* root_window_; 72 aura::Window* root_window_;
73 73
74 scoped_ptr<gfx::Screen> screen_; 74 scoped_ptr<gfx::Screen> screen_;
75 scoped_ptr<aura::WindowTreeHost> window_tree_host_; 75 scoped_ptr<aura::WindowTreeHost> window_tree_host_;
76 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; 76 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_;
77 scoped_ptr<aura::client::FocusClient> focus_client_; 77 scoped_ptr<aura::client::FocusClient> focus_client_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(DisplayManager); 79 DISALLOW_COPY_AND_ASSIGN(DisplayManager);
80 }; 80 };
81 81
82 } // namespace service 82 } // namespace service
83 } // namespace mojo 83 } // namespace mojo
84 84
85 #endif // MOJO_SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ 85 #endif // MOJO_SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/default_access_policy.cc ('k') | mojo/services/view_manager/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698