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

Unified Diff: components/exo/wm_helper.h

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 | « components/exo/shell_surface.cc ('k') | components/exo/wm_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wm_helper.h
diff --git a/components/exo/wm_helper.h b/components/exo/wm_helper.h
index 84245f6b7abbed25dc173e0d9b02ab6443df4080..d68237c54cc2dbf61fd7d276ed827a5119545ade 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 OnCursorDisplayChanged(const display::Display& display) {}
protected:
virtual ~CursorObserver() {}
@@ -98,12 +100,13 @@ class WMHelper {
void RemoveDisplayConfigurationObserver(
DisplayConfigurationObserver* observer);
- virtual const display::ManagedDisplayInfo GetDisplayInfo(
+ virtual const display::ManagedDisplayInfo& GetDisplayInfo(
int64_t display_id) const = 0;
- virtual aura::Window* GetContainer(int container_id) = 0;
+ virtual aura::Window* GetPrimaryDisplayContainer(int container_id) = 0;
virtual aura::Window* GetActiveWindow() const = 0;
virtual aura::Window* GetFocusedWindow() const = 0;
virtual ui::CursorSetType GetCursorSet() const = 0;
+ virtual const display::Display& GetCursorDisplay() const = 0;
virtual void AddPreTargetHandler(ui::EventHandler* handler) = 0;
virtual void PrependPreTargetHandler(ui::EventHandler* handler) = 0;
virtual void RemovePreTargetHandler(ui::EventHandler* handler) = 0;
@@ -120,6 +123,7 @@ class WMHelper {
aura::Window* lost_focus);
void NotifyCursorVisibilityChanged(bool is_visible);
void NotifyCursorSetChanged(ui::CursorSetType cursor_set);
+ void NotifyCursorDisplayChanged(const display::Display& display);
void NotifyMaximizeModeStarted();
void NotifyMaximizeModeEnding();
void NotifyMaximizeModeEnded();
« no previous file with comments | « components/exo/shell_surface.cc ('k') | components/exo/wm_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698