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) { |