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

Unified Diff: services/ui/ws/window_server_delegate.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_delegate.h
diff --git a/services/ui/ws/window_server_delegate.h b/services/ui/ws/window_server_delegate.h
index 6588bec935eef63320cdf1d175b6eda811613e77..ea7233dfbb86341e4f53a32a38f77cca20c8c1e6 100644
--- a/services/ui/ws/window_server_delegate.h
+++ b/services/ui/ws/window_server_delegate.h
@@ -14,8 +14,14 @@
#include "services/ui/common/types.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace ui {
+class ImageCursors;
+
namespace mojom {
class WindowTree;
}
@@ -59,6 +65,13 @@ class WindowServerDelegate {
virtual void OnWillCreateTreeForWindowManager(
bool automatically_create_display_roots) = 0;
+ // Returns a valid task runner which can be used to load resources.
+ virtual scoped_refptr<base::SingleThreadTaskRunner>& GetResourceRunner() = 0;
+
+ // The returned weak pointer can be used to manipulate the cursor, and should
+ // only be dereferenced on the task runner returned by GetResourceRunner().
+ virtual base::WeakPtr<ui::ImageCursors> GetImageCursorsWeakPtr() = 0;
+
protected:
virtual ~WindowServerDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698