Index: components/exo/pointer.h |
diff --git a/components/exo/pointer.h b/components/exo/pointer.h |
index 33ef21efdd112ff62a52d47f0629a8370339a453..ddedcc216dae1410b22bf5f5c0b96cf1edab8b24 100644 |
--- a/components/exo/pointer.h |
+++ b/components/exo/pointer.h |
@@ -38,6 +38,7 @@ class Surface; |
// devices, such as mice, which control the pointer location and pointer focus. |
class Pointer : public ui::EventHandler, |
public WMHelper::CursorObserver, |
+ public WMHelper::DisplayConfigurationObserver, |
public SurfaceDelegate, |
public SurfaceObserver { |
public: |
@@ -62,6 +63,9 @@ class Pointer : public ui::EventHandler, |
void OnCursorSetChanged(ui::CursorSetType cursor_set) override; |
void OnCursorDisplayChanged(const display::Display& display) override; |
+ // Overridden from WMHelper::DisplayConfigurationObserver: |
+ void OnDisplayConfigurationChanged() override; |
+ |
// Overridden from SurfaceDelegate: |
void OnSurfaceCommit() override; |
bool IsSurfaceSynchronized() const override; |
@@ -73,6 +77,8 @@ class Pointer : public ui::EventHandler, |
// Returns the effective target for |event|. |
Surface* GetEffectiveTargetForEvent(ui::Event* event) const; |
+ void UpdatePointerSurface(Surface* surface); |
reveman
2017/06/13 00:06:45
nit: short comment here for consistency
Dominik Laskowski
2017/06/13 17:53:11
Done.
|
+ |
// Asynchronously update the cursor by capturing a snapshot of |surface_|. |
void CaptureCursor(const gfx::Point& hotspot); |