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

Unified Diff: services/ui/ws/window_server.h

Issue 2916823002: Move Mus into chrome's process when running with --mus.
Patch Set: Undo Screen TLS change, don't use Screen::GetScreen() in Mus. Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698