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

Unified Diff: components/exo/pointer.h

Issue 2812663002: exo: Fix cursor scale when crossing displays (Closed)
Patch Set: Rebase 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
« no previous file with comments | « no previous file | components/exo/pointer.cc » ('j') | components/exo/pointer.cc » ('J')
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 0757188311a94662ae9e53befd9c899e9e5e8547..318c466e6a29d4091a40ab8db1e1cbda4d7775b4 100644
--- a/components/exo/pointer.h
+++ b/components/exo/pointer.h
@@ -73,13 +73,15 @@ class Pointer : public ui::EventHandler,
Surface* GetEffectiveTargetForEvent(ui::Event* event) const;
// Asynchronously update the cursor by capturing a snapshot of |surface_|.
- void CaptureCursor();
+ void CaptureCursor(bool force);
// Called when cursor snapshot has been captured.
void OnCursorCaptured(const gfx::Point& hotspot,
+ bool force,
std::unique_ptr<cc::CopyOutputResult> result);
- void UpdateCursor(gfx::NativeCursor cursor);
+ // If |force| is true, the cursor is updated even if locked.
+ void UpdateCursor(gfx::NativeCursor cursor, bool force);
// The delegate instance that all events are dispatched to.
PointerDelegate* const delegate_;
@@ -108,7 +110,7 @@ class Pointer : public ui::EventHandler,
const std::unique_ptr<aura::Window> cursor_;
// Source used for cursor capture copy output requests.
- const base::UnguessableToken cursor_capture_source_id_;
+ base::UnguessableToken cursor_capture_source_id_;
// Weak pointer factory used for cursor capture callbacks.
base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_;
« no previous file with comments | « no previous file | components/exo/pointer.cc » ('j') | components/exo/pointer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698