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

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

Issue 2884463002: Make event-targeting asynchronous in window server. (Closed)
Patch Set: WeakPtrFactory; const &; etc Created 3 years, 7 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 f79cf963966e600304070af38dffa3e166c6339e..e2e60f58250a5d63206070ee604212fbd2b97432 100644
--- a/services/ui/ws/window_server.h
+++ b/services/ui/ws/window_server.h
@@ -13,6 +13,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "base/optional.h"
#include "cc/ipc/frame_sink_manager.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
@@ -37,6 +38,7 @@ class DisplayManager;
class GpuHost;
class ServerWindow;
class UserActivityMonitor;
+class WindowManagerDisplayRoot;
class WindowManagerState;
class WindowServerDelegate;
class WindowTree;
@@ -283,6 +285,8 @@ class WindowServer : public ServerWindowDelegate,
// |window|.
void UpdateNativeCursorIfOver(ServerWindow* window);
+ void OnCursorUpdated(WindowManagerDisplayRoot* display_root);
+
bool IsUserInHighContrastMode(const UserId& user) const;
// Finds the parent client that will embed |surface_id| and claims ownership
@@ -388,6 +392,8 @@ class WindowServer : public ServerWindowDelegate,
frame_sink_manager_client_binding_;
cc::mojom::FrameSinkManagerPtr frame_sink_manager_;
+ base::WeakPtrFactory<WindowServer> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(WindowServer);
};

Powered by Google App Engine
This is Rietveld 408576698