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

Unified Diff: components/exo/pointer.h

Issue 2934953002: exo: Reparent pointer surface (Closed)
Patch Set: Add comment Created 3 years, 6 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 | « no previous file | components/exo/pointer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/pointer.h
diff --git a/components/exo/pointer.h b/components/exo/pointer.h
index 33ef21efdd112ff62a52d47f0629a8370339a453..571743c818389d410750eadcd9ae89dd3e47ed55 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,9 @@ class Pointer : public ui::EventHandler,
// Returns the effective target for |event|.
Surface* GetEffectiveTargetForEvent(ui::Event* event) const;
+ // Updates the |surface_| from which the cursor is captured.
+ void UpdatePointerSurface(Surface* surface);
+
// Asynchronously update the cursor by capturing a snapshot of |surface_|.
void CaptureCursor(const gfx::Point& hotspot);
« no previous file with comments | « no previous file | components/exo/pointer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698