| Index: services/ui/ws/window_server.h
|
| diff --git a/services/ui/ws/window_server.h b/services/ui/ws/window_server.h
|
| index df851a4d5bd5d792d3759e8fbcfe339c5e5ebaf5..ffd5eee2d5f7570cd506101dbf3c48a99dc62d07 100644
|
| --- a/services/ui/ws/window_server.h
|
| +++ b/services/ui/ws/window_server.h
|
| @@ -29,6 +29,9 @@
|
| #include "services/ui/ws/window_manager_window_tree_factory_set.h"
|
|
|
| namespace ui {
|
| +
|
| +class ImageCursors;
|
| +
|
| namespace ws {
|
|
|
| class AccessPolicy;
|
| @@ -53,7 +56,7 @@ class WindowServer : public ServerWindowDelegate,
|
| public UserIdTrackerObserver,
|
| public cc::mojom::FrameSinkManagerClient {
|
| public:
|
| - explicit WindowServer(WindowServerDelegate* delegate);
|
| + WindowServer(WindowServerDelegate* delegate);
|
| ~WindowServer() override;
|
|
|
| WindowServerDelegate* delegate() { return delegate_; }
|
| @@ -81,6 +84,13 @@ class WindowServer : public ServerWindowDelegate,
|
|
|
| void SetGpuHost(std::unique_ptr<GpuHost> gpu_host);
|
|
|
| + // Returns a valid task runner which can be used to load resources.
|
| + scoped_refptr<base::SingleThreadTaskRunner>& GetResourceRunner();
|
| +
|
| + // The returned weak pointer can be used to manipulate the cursor, and should
|
| + // only be dereferenced on the task runner returned by GetResourceRunner().
|
| + base::WeakPtr<ui::ImageCursors> GetImageCursorsWeakPtr();
|
| +
|
| // Creates a new ServerWindow. The return value is owned by the caller, but
|
| // must be destroyed before WindowServer.
|
| ServerWindow* CreateServerWindow(
|
|
|