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

Unified Diff: ui/wm/core/cursor_manager.cc

Issue 2780623002: exo: Fix multi-display hardware cursor (Closed)
Patch Set: Fix style error 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
« no previous file with comments | « ui/wm/core/cursor_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/cursor_manager.cc
diff --git a/ui/wm/core/cursor_manager.cc b/ui/wm/core/cursor_manager.cc
index a411b7837edbd94ec7a5656928c0cbfd58c2e1fa..839a22e3d9c619fa34f8c03ddd93337681f59a5b 100644
--- a/ui/wm/core/cursor_manager.cc
+++ b/ui/wm/core/cursor_manager.cc
@@ -165,9 +165,17 @@ bool CursorManager::IsMouseEventsEnabled() const {
}
void CursorManager::SetDisplay(const display::Display& display) {
+ display_ = display;
+ for (auto& observer : observers_)
+ observer.OnCursorDisplayChanged(display);
+
delegate_->SetDisplay(display, this);
}
+const display::Display& CursorManager::GetDisplay() const {
+ return display_;
+}
+
void CursorManager::LockCursor() {
cursor_lock_count_++;
}
« no previous file with comments | « ui/wm/core/cursor_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698