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

Unified Diff: components/exo/wm_helper_ash.cc

Issue 2812663002: exo: Fix cursor scale when crossing displays (Closed)
Patch Set: Rebase Created 3 years, 8 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: components/exo/wm_helper_ash.cc
diff --git a/components/exo/wm_helper_ash.cc b/components/exo/wm_helper_ash.cc
index 9998ae6634a6979ba645ef8398d41b05989d89df..18f39cc917ed12c404d69921d463fe87ab9520b1 100644
--- a/components/exo/wm_helper_ash.cc
+++ b/components/exo/wm_helper_ash.cc
@@ -129,6 +129,12 @@ void WMHelperAsh::PlayEarcon(int sound_key) const {
return ash::Shell::Get()->accessibility_delegate()->PlayEarcon(sound_key);
}
+void WMHelperAsh::SetCursor(gfx::NativeCursor cursor) {
+ ash::Shell* shell = ash::Shell::GetInstance();
oshima 2017/04/26 22:13:39 nit ::Get()
+ static_cast<wm::NativeCursorManager*>(shell->native_cursor_manager())
+ ->SetCursor(cursor, shell->cursor_manager());
oshima 2017/04/26 22:13:39 NativeCursorManager is to provide platform impls,
Dominik Laskowski 2017/04/27 20:27:20 Not really. It's mostly for consistency with Ash i
+}
+
void WMHelperAsh::OnWindowActivated(
aura::client::ActivationChangeObserver::ActivationReason reason,
aura::Window* gained_active,

Powered by Google App Engine
This is Rietveld 408576698