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

Unified Diff: ui/aura/env.cc

Issue 902123002: Fix initial hiding and centering cursor on Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: ui/aura/env.cc
diff --git a/ui/aura/env.cc b/ui/aura/env.cc
index d205ae9827ad208a91fbcad11746b3cf7c442d30..f3414648aa4c05ddf58cec18ec45202f693bd5a5 100644
--- a/ui/aura/env.cc
+++ b/ui/aura/env.cc
@@ -60,11 +60,19 @@ bool Env::IsMouseButtonDown() const {
mouse_button_flags_ != 0;
}
+void Env::SetLastMouseLocation(const gfx::Point& last_mouse_location) {
+ if (last_mouse_location_ != last_mouse_location)
+ mouse_moved_ = true;
+
+ last_mouse_location_ = last_mouse_location;
+}
+
////////////////////////////////////////////////////////////////////////////////
// Env, private:
Env::Env()
- : mouse_button_flags_(0),
+ : mouse_moved_(false),
+ mouse_button_flags_(0),
is_touch_down_(false),
input_state_lookup_(InputStateLookup::Create().Pass()),
context_factory_(NULL) {

Powered by Google App Engine
This is Rietveld 408576698