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

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

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Cleanup. Created 3 years, 10 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 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // hierarchy. 276 // hierarchy.
277 void UpdateNativeCursorFromMouseLocation(ServerWindow* window); 277 void UpdateNativeCursorFromMouseLocation(ServerWindow* window);
278 278
279 // Updates the native cursor if the cursor is currently inside |window|. This 279 // Updates the native cursor if the cursor is currently inside |window|. This
280 // is run in response to events that change the mouse cursor properties of 280 // is run in response to events that change the mouse cursor properties of
281 // |window|. 281 // |window|.
282 void UpdateNativeCursorIfOver(ServerWindow* window); 282 void UpdateNativeCursorIfOver(ServerWindow* window);
283 283
284 bool IsUserInHighContrastMode(const UserId& user) const; 284 bool IsUserInHighContrastMode(const UserId& user) const;
285 285
286 // Finds the parent ServerWindow of |window| that is expected to be backed by
287 // a CompositorFrameSink.
288 ServerWindow* FindCompositorFrameSinkParent(ServerWindow* window);
289
286 // Overridden from ServerWindowDelegate: 290 // Overridden from ServerWindowDelegate:
287 ServerWindow* GetRootWindow(const ServerWindow* window) override; 291 ServerWindow* GetRootWindow(const ServerWindow* window) override;
288 292
289 // Overridden from ServerWindowObserver: 293 // Overridden from ServerWindowObserver:
290 void OnWindowDestroyed(ServerWindow* window) override; 294 void OnWindowDestroyed(ServerWindow* window) override;
291 void OnWillChangeWindowHierarchy(ServerWindow* window, 295 void OnWillChangeWindowHierarchy(ServerWindow* window,
292 ServerWindow* new_parent, 296 ServerWindow* new_parent,
293 ServerWindow* old_parent) override; 297 ServerWindow* old_parent) override;
294 void OnWindowHierarchyChanged(ServerWindow* window, 298 void OnWindowHierarchyChanged(ServerWindow* window,
295 ServerWindow* new_parent, 299 ServerWindow* new_parent,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // State for rendering into a Surface. 383 // State for rendering into a Surface.
380 cc::mojom::DisplayCompositorPtr display_compositor_; 384 cc::mojom::DisplayCompositorPtr display_compositor_;
381 385
382 DISALLOW_COPY_AND_ASSIGN(WindowServer); 386 DISALLOW_COPY_AND_ASSIGN(WindowServer);
383 }; 387 };
384 388
385 } // namespace ws 389 } // namespace ws
386 } // namespace ui 390 } // namespace ui
387 391
388 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ 392 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698