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

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

Issue 2961403002: WIP fix for Ozone cursor woes in Mushrome: Numéro deux
Patch Set: Created 3 years, 5 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/threaded_image_cursors.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 12 matching lines...) Expand all
23 #include "services/ui/ws/operation.h" 23 #include "services/ui/ws/operation.h"
24 #include "services/ui/ws/server_window_delegate.h" 24 #include "services/ui/ws/server_window_delegate.h"
25 #include "services/ui/ws/server_window_observer.h" 25 #include "services/ui/ws/server_window_observer.h"
26 #include "services/ui/ws/user_display_manager_delegate.h" 26 #include "services/ui/ws/user_display_manager_delegate.h"
27 #include "services/ui/ws/user_id_tracker.h" 27 #include "services/ui/ws/user_id_tracker.h"
28 #include "services/ui/ws/user_id_tracker_observer.h" 28 #include "services/ui/ws/user_id_tracker_observer.h"
29 #include "services/ui/ws/window_manager_window_tree_factory_set.h" 29 #include "services/ui/ws/window_manager_window_tree_factory_set.h"
30 30
31 namespace ui { 31 namespace ui {
32 32
33 class ImageCursors; 33 class ImageCursorsHolder;
34 34
35 namespace ws { 35 namespace ws {
36 36
37 class AccessPolicy; 37 class AccessPolicy;
38 class Display; 38 class Display;
39 class DisplayManager; 39 class DisplayManager;
40 class GpuHost; 40 class GpuHost;
41 class ServerWindow; 41 class ServerWindow;
42 class UserActivityMonitor; 42 class UserActivityMonitor;
43 class WindowManagerState; 43 class WindowManagerState;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void SetFrameSinkManager( 82 void SetFrameSinkManager(
83 std::unique_ptr<cc::mojom::FrameSinkManager> frame_sink_manager); 83 std::unique_ptr<cc::mojom::FrameSinkManager> frame_sink_manager);
84 84
85 void SetGpuHost(std::unique_ptr<GpuHost> gpu_host); 85 void SetGpuHost(std::unique_ptr<GpuHost> gpu_host);
86 86
87 // Returns a valid task runner which can be used to load resources. 87 // Returns a valid task runner which can be used to load resources.
88 scoped_refptr<base::SingleThreadTaskRunner>& GetResourceRunner(); 88 scoped_refptr<base::SingleThreadTaskRunner>& GetResourceRunner();
89 89
90 // The returned weak pointer can be used to manipulate the cursor, and should 90 // The returned weak pointer can be used to manipulate the cursor, and should
91 // only be dereferenced on the task runner returned by GetResourceRunner(). 91 // only be dereferenced on the task runner returned by GetResourceRunner().
92 base::WeakPtr<ui::ImageCursors> GetImageCursorsWeakPtr(); 92 base::WeakPtr<ui::ImageCursorsHolder> GetImageCursorsHolderWeakPtr();
93 93
94 // Creates a new ServerWindow. The return value is owned by the caller, but 94 // Creates a new ServerWindow. The return value is owned by the caller, but
95 // must be destroyed before WindowServer. 95 // must be destroyed before WindowServer.
96 ServerWindow* CreateServerWindow( 96 ServerWindow* CreateServerWindow(
97 const WindowId& id, 97 const WindowId& id,
98 const std::map<std::string, std::vector<uint8_t>>& properties); 98 const std::map<std::string, std::vector<uint8_t>>& properties);
99 99
100 // Returns the id for the next WindowTree. 100 // Returns the id for the next WindowTree.
101 ClientSpecificId GetAndAdvanceNextClientId(); 101 ClientSpecificId GetAndAdvanceNextClientId();
102 102
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 420
421 DisplayCreationConfig display_creation_config_; 421 DisplayCreationConfig display_creation_config_;
422 422
423 DISALLOW_COPY_AND_ASSIGN(WindowServer); 423 DISALLOW_COPY_AND_ASSIGN(WindowServer);
424 }; 424 };
425 425
426 } // namespace ws 426 } // namespace ws
427 } // namespace ui 427 } // namespace ui
428 428
429 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ 429 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_
OLDNEW
« no previous file with comments | « services/ui/ws/threaded_image_cursors.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698