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

Unified Diff: components/exo/wm_helper.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.h
diff --git a/components/exo/wm_helper.h b/components/exo/wm_helper.h
index ad0aeb6ac5a49c4ade7b17c4aac25ecff5873d22..91445caec911b07d168347033fb58ecdfe70abb6 100644
--- a/components/exo/wm_helper.h
+++ b/components/exo/wm_helper.h
@@ -14,6 +14,7 @@ class Window;
}
namespace display {
+class Display;
class ManagedDisplayInfo;
}
@@ -48,6 +49,7 @@ class WMHelper {
public:
virtual void OnCursorVisibilityChanged(bool is_visible) {}
virtual void OnCursorSetChanged(ui::CursorSetType cursor_set) {}
+ virtual void OnCursorDisplayChanging(const display::Display& display) {}
protected:
virtual ~CursorObserver() {}
@@ -110,7 +112,7 @@ class WMHelper {
virtual const display::ManagedDisplayInfo GetDisplayInfo(
int64_t display_id) const = 0;
- virtual aura::Window* GetContainer(int container_id) = 0;
+ virtual aura::Window* GetContainer(int64_t display_id, int container_id) = 0;
virtual aura::Window* GetActiveWindow() const = 0;
virtual aura::Window* GetFocusedWindow() const = 0;
virtual ui::CursorSetType GetCursorSet() const = 0;
@@ -132,6 +134,7 @@ class WMHelper {
aura::Window* lost_focus);
void NotifyCursorVisibilityChanged(bool is_visible);
void NotifyCursorSetChanged(ui::CursorSetType cursor_set);
+ void NotifyCursorDisplayChanging(const display::Display& display);
void NotifyMaximizeModeStarted();
void NotifyMaximizeModeEnding();
void NotifyMaximizeModeEnded();

Powered by Google App Engine
This is Rietveld 408576698