Index: ui/base/event.cc |
diff --git a/ui/base/event.cc b/ui/base/event.cc |
index a19faf5e12946c20d1fd6cef74fa3b8300b00751..7ba1f24ac5299eacc9fcf5bb6ea81c5a0d0d7df9 100644 |
--- a/ui/base/event.cc |
+++ b/ui/base/event.cc |
@@ -125,7 +125,9 @@ void LocatedEvent::UpdateForRootTransform(const Transform& root_transform) { |
} |
MouseEvent::MouseEvent(const base::NativeEvent& native_event) |
- : LocatedEvent(native_event) { |
+ : LocatedEvent(native_event), |
+ changed_button_flags_( |
+ GetChangedMouseButtonFlagsFromNative(native_event)) { |
if (type() == ET_MOUSE_PRESSED) |
SetClickCount(GetRepeatCount(*this)); |
} |
@@ -134,7 +136,8 @@ MouseEvent::MouseEvent(EventType type, |
const gfx::Point& location, |
const gfx::Point& root_location, |
int flags) |
- : LocatedEvent(type, location, root_location, flags) { |
+ : LocatedEvent(type, location, root_location, flags), |
+ changed_button_flags_(0) { |
} |
// static |