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

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

Issue 2696963003: Split cursor location from UserDisplayManager. (Closed)
Patch Set: Fix nits. Created 3 years, 10 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
« no previous file with comments | « services/ui/ws/cursor_location_manager_unittest.cc ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display_manager.h
diff --git a/services/ui/ws/display_manager.h b/services/ui/ws/display_manager.h
index 00eeebb10f82c6f18c8948b26ee3390b38aded7a..333ebef89ce5e263c6fede4b1b4fd00d75a62787 100644
--- a/services/ui/ws/display_manager.h
+++ b/services/ui/ws/display_manager.h
@@ -18,6 +18,7 @@
namespace ui {
namespace ws {
+class CursorLocationManager;
class Display;
class ServerWindow;
class UserDisplayManager;
@@ -38,6 +39,9 @@ class DisplayManager : public UserIdTrackerObserver,
// return value.
UserDisplayManager* GetUserDisplayManager(const UserId& user_id);
+ // Returns the CursorLocationManager for |user_id|.
+ CursorLocationManager* GetCursorLocationManager(const UserId& user_id);
+
// Adds/removes a Display. DisplayManager owns the Displays.
// TODO(sky): make add take a scoped_ptr.
void AddDisplay(Display* display);
@@ -99,6 +103,9 @@ class DisplayManager : public UserIdTrackerObserver,
std::map<UserId, std::unique_ptr<UserDisplayManager>> user_display_managers_;
+ std::map<UserId, std::unique_ptr<CursorLocationManager>>
+ cursor_location_managers_;
+
// ID to use for next root node.
ClientSpecificId next_root_id_;
« no previous file with comments | « services/ui/ws/cursor_location_manager_unittest.cc ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698