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

Side by Side Diff: components/mus/ws/window_tree_host_impl.h

Issue 1644773004: Renames some WindowManager classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 11 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 | « components/mus/ws/window_tree_apptest.cc ('k') | components/mus/ws/window_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 public ServerWindowObserver { 44 public ServerWindowObserver {
45 public: 45 public:
46 // TODO(fsamuel): All these parameters are just plumbing for creating 46 // TODO(fsamuel): All these parameters are just plumbing for creating
47 // DisplayManagers. We should probably just store these common parameters 47 // DisplayManagers. We should probably just store these common parameters
48 // in the DisplayManagerFactory and pass them along on DisplayManager::Create. 48 // in the DisplayManagerFactory and pass them along on DisplayManager::Create.
49 WindowTreeHostImpl(mojom::WindowTreeHostClientPtr client, 49 WindowTreeHostImpl(mojom::WindowTreeHostClientPtr client,
50 ConnectionManager* connection_manager, 50 ConnectionManager* connection_manager,
51 mojo::ApplicationImpl* app_impl, 51 mojo::ApplicationImpl* app_impl,
52 const scoped_refptr<GpuState>& gpu_state, 52 const scoped_refptr<GpuState>& gpu_state,
53 const scoped_refptr<SurfacesState>& surfaces_state, 53 const scoped_refptr<SurfacesState>& surfaces_state,
54 mojom::WindowManagerPtr window_manater); 54 mojom::WindowManagerDeprecatedPtr window_manater);
55 ~WindowTreeHostImpl() override; 55 ~WindowTreeHostImpl() override;
56 56
57 // Initializes state that depends on the existence of a WindowTreeHostImpl. 57 // Initializes state that depends on the existence of a WindowTreeHostImpl.
58 void Init(WindowTreeHostDelegate* delegate); 58 void Init(WindowTreeHostDelegate* delegate);
59 59
60 uint32_t id() const { return id_; } 60 uint32_t id() const { return id_; }
61 61
62 const WindowTreeImpl* GetWindowTree() const; 62 const WindowTreeImpl* GetWindowTree() const;
63 WindowTreeImpl* GetWindowTree(); 63 WindowTreeImpl* GetWindowTree();
64 64
(...skipping 20 matching lines...) Expand all
85 // drawn, otherwise destruction is immediate. 85 // drawn, otherwise destruction is immediate.
86 void ScheduleSurfaceDestruction(ServerWindow* window); 86 void ScheduleSurfaceDestruction(ServerWindow* window);
87 87
88 // Returns the metrics for this viewport. 88 // Returns the metrics for this viewport.
89 const mojom::ViewportMetrics& GetViewportMetrics() const; 89 const mojom::ViewportMetrics& GetViewportMetrics() const;
90 90
91 mojom::Rotation GetRotation() const; 91 mojom::Rotation GetRotation() const;
92 92
93 ConnectionManager* connection_manager() { return connection_manager_; } 93 ConnectionManager* connection_manager() { return connection_manager_; }
94 94
95 mojom::WindowManager* window_manager() { return window_manager_.get(); } 95 mojom::WindowManagerDeprecated* window_manager() {
96 return window_manager_.get();
97 }
96 98
97 // Returns the root ServerWindow of this viewport. 99 // Returns the root ServerWindow of this viewport.
98 ServerWindow* root_window() { return root_.get(); } 100 ServerWindow* root_window() { return root_.get(); }
99 const ServerWindow* root_window() const { return root_.get(); } 101 const ServerWindow* root_window() const { return root_.get(); }
100 102
101 void SetFocusedWindow(ServerWindow* window); 103 void SetFocusedWindow(ServerWindow* window);
102 ServerWindow* GetFocusedWindow(); 104 ServerWindow* GetFocusedWindow();
103 void DestroyFocusController(); 105 void DestroyFocusController();
104 106
105 void UpdateTextInputState(ServerWindow* window, 107 void UpdateTextInputState(ServerWindow* window,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 void OnWindowDestroyed(ServerWindow* window) override; 215 void OnWindowDestroyed(ServerWindow* window) override;
214 216
215 const uint32_t id_; 217 const uint32_t id_;
216 WindowTreeHostDelegate* delegate_; 218 WindowTreeHostDelegate* delegate_;
217 ConnectionManager* const connection_manager_; 219 ConnectionManager* const connection_manager_;
218 mojom::WindowTreeHostClientPtr client_; 220 mojom::WindowTreeHostClientPtr client_;
219 EventDispatcher event_dispatcher_; 221 EventDispatcher event_dispatcher_;
220 scoped_ptr<ServerWindow> root_; 222 scoped_ptr<ServerWindow> root_;
221 scoped_ptr<DisplayManager> display_manager_; 223 scoped_ptr<DisplayManager> display_manager_;
222 scoped_ptr<FocusController> focus_controller_; 224 scoped_ptr<FocusController> focus_controller_;
223 mojom::WindowManagerPtr window_manager_; 225 mojom::WindowManagerDeprecatedPtr window_manager_;
224 mojom::WindowTree* tree_awaiting_input_ack_; 226 mojom::WindowTree* tree_awaiting_input_ack_;
225 227
226 // The last cursor set. Used to track whether we need to change the cursor. 228 // The last cursor set. Used to track whether we need to change the cursor.
227 int32_t last_cursor_; 229 int32_t last_cursor_;
228 230
229 std::set<WindowId> activation_parents_; 231 std::set<WindowId> activation_parents_;
230 232
231 // Set of windows with surfaces that need to be destroyed once the frame 233 // Set of windows with surfaces that need to be destroyed once the frame
232 // draws. 234 // draws.
233 std::set<ServerWindow*> windows_needing_frame_destruction_; 235 std::set<ServerWindow*> windows_needing_frame_destruction_;
234 236
235 std::queue<scoped_ptr<QueuedEvent>> event_queue_; 237 std::queue<scoped_ptr<QueuedEvent>> event_queue_;
236 base::OneShotTimer event_ack_timer_; 238 base::OneShotTimer event_ack_timer_;
237 239
238 mojom::FrameDecorationValuesPtr frame_decoration_values_; 240 mojom::FrameDecorationValuesPtr frame_decoration_values_;
239 241
240 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); 242 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl);
241 }; 243 };
242 244
243 } // namespace ws 245 } // namespace ws
244 } // namespace mus 246 } // namespace mus
245 247
246 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 248 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_apptest.cc ('k') | components/mus/ws/window_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698