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

Side by Side Diff: services/ui/ws/window_server.h

Issue 2610783003: mus: Make sure window parenting happens in the window server. (Closed)
Patch Set: . Created 3 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 | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_server.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 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 SERVICES_UI_WS_WINDOW_SERVER_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_H_
6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ 6 #define SERVICES_UI_WS_WINDOW_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void StartDragLoop(uint32_t change_id, 216 void StartDragLoop(uint32_t change_id,
217 ServerWindow* window, 217 ServerWindow* window,
218 WindowTree* initiator); 218 WindowTree* initiator);
219 void EndDragLoop(); 219 void EndDragLoop();
220 uint32_t GetCurrentDragLoopChangeId(); 220 uint32_t GetCurrentDragLoopChangeId();
221 ServerWindow* GetCurrentDragLoopWindow(); 221 ServerWindow* GetCurrentDragLoopWindow();
222 WindowTree* GetCurrentDragLoopInitiator(); 222 WindowTree* GetCurrentDragLoopInitiator();
223 bool in_drag_loop() const { return !!current_drag_loop_; } 223 bool in_drag_loop() const { return !!current_drag_loop_; }
224 224
225 void OnDisplayReady(Display* display, bool is_first); 225 void OnDisplayReady(Display* display, bool is_first);
226 void OnDisplayDestroyed(Display* display);
226 void OnNoMoreDisplays(); 227 void OnNoMoreDisplays();
227 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id); 228 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id);
228 229
229 // ServerWindowDelegate: 230 // ServerWindowDelegate:
230 cc::mojom::DisplayCompositor* GetDisplayCompositor() override; 231 cc::mojom::DisplayCompositor* GetDisplayCompositor() override;
231 const cc::SurfaceId& GetRootSurfaceId() const override; 232 const cc::SurfaceId& GetRootSurfaceId() const override;
232 233
233 // UserDisplayManagerDelegate: 234 // UserDisplayManagerDelegate:
234 bool GetFrameDecorationsForUser( 235 bool GetFrameDecorationsForUser(
235 const UserId& user_id, 236 const UserId& user_id,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 // State for rendering into a Surface. 382 // State for rendering into a Surface.
382 cc::mojom::DisplayCompositorPtr display_compositor_; 383 cc::mojom::DisplayCompositorPtr display_compositor_;
383 384
384 DISALLOW_COPY_AND_ASSIGN(WindowServer); 385 DISALLOW_COPY_AND_ASSIGN(WindowServer);
385 }; 386 };
386 387
387 } // namespace ws 388 } // namespace ws
388 } // namespace ui 389 } // namespace ui
389 390
390 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ 391 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698