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

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

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Rebase + fixes. Created 3 years, 9 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 of |window| that will be backed by a CompositorFrameSink.
287 ServerWindow* FindCompositorFrameSinkParent(ServerWindow* window);
288
286 // Overridden from ServerWindowDelegate: 289 // Overridden from ServerWindowDelegate:
287 ServerWindow* GetRootWindow(const ServerWindow* window) override; 290 ServerWindow* GetRootWindow(const ServerWindow* window) override;
288 291
289 // Overridden from ServerWindowObserver: 292 // Overridden from ServerWindowObserver:
290 void OnWindowDestroyed(ServerWindow* window) override; 293 void OnWindowDestroyed(ServerWindow* window) override;
291 void OnWillChangeWindowHierarchy(ServerWindow* window, 294 void OnWillChangeWindowHierarchy(ServerWindow* window,
292 ServerWindow* new_parent, 295 ServerWindow* new_parent,
293 ServerWindow* old_parent) override; 296 ServerWindow* old_parent) override;
294 void OnWindowHierarchyChanged(ServerWindow* window, 297 void OnWindowHierarchyChanged(ServerWindow* window,
295 ServerWindow* new_parent, 298 ServerWindow* new_parent,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // State for rendering into a Surface. 382 // State for rendering into a Surface.
380 cc::mojom::DisplayCompositorPtr display_compositor_; 383 cc::mojom::DisplayCompositorPtr display_compositor_;
381 384
382 DISALLOW_COPY_AND_ASSIGN(WindowServer); 385 DISALLOW_COPY_AND_ASSIGN(WindowServer);
383 }; 386 };
384 387
385 } // namespace ws 388 } // namespace ws
386 } // namespace ui 389 } // namespace ui
387 390
388 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ 391 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698