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

Unified Diff: components/exo/wm_helper_ash.h

Issue 2780623002: exo: Fix multi-display hardware cursor (Closed)
Patch Set: Remove capture on mouse enter 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.h
diff --git a/components/exo/wm_helper_ash.h b/components/exo/wm_helper_ash.h
index dc39a292e3b6827c307f62a6cb9955321d326e98..e3cd1856a9cc8e37c1f69fe0af42d7288cf0f3ae 100644
--- a/components/exo/wm_helper_ash.h
+++ b/components/exo/wm_helper_ash.h
@@ -7,6 +7,7 @@
#include "ash/shell_observer.h"
#include "ash/system/accessibility_observer.h"
+#include "ash/wm/ash_native_cursor_manager.h"
#include "ash/wm_display_observer.h"
#include "base/macros.h"
#include "components/exo/wm_helper.h"
@@ -23,6 +24,7 @@ class WMHelperAsh : public WMHelper,
public aura::client::FocusChangeObserver,
public aura::client::CursorClientObserver,
public ash::AccessibilityObserver,
+ public ash::AshNativeCursorManager::Observer,
public ash::ShellObserver,
public ash::WmDisplayObserver,
public ui::InputDeviceEventObserver {
@@ -33,7 +35,7 @@ class WMHelperAsh : public WMHelper,
// Overridden from WMHelper:
const display::ManagedDisplayInfo GetDisplayInfo(
int64_t display_id) const override;
- aura::Window* GetContainer(int container_id) override;
+ aura::Window* GetContainer(int64_t display_id, int container_id) override;
aura::Window* GetActiveWindow() const override;
aura::Window* GetFocusedWindow() const override;
ui::CursorSetType GetCursorSet() const override;
@@ -60,6 +62,9 @@ class WMHelperAsh : public WMHelper,
void OnCursorVisibilityChanged(bool is_visible) override;
void OnCursorSetChanged(ui::CursorSetType cursor_set) override;
+ // Overridden from ash::AshNativeCursorManager::Observer:
+ void OnCursorDisplayChanging(const display::Display& display) override;
+
// Overridden from ash::AccessibilityObserver:
void OnAccessibilityModeChanged(
ash::AccessibilityNotificationVisibility notify) override;

Powered by Google App Engine
This is Rietveld 408576698