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_++; |
} |