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

Unified Diff: ui/base/event.cc

Issue 10830293: Fixes bug where Env/RootWindow would cache the wrong button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to trunk Created 8 years, 4 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 | « ui/base/event.h ('k') | ui/base/events.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/base/event.h ('k') | ui/base/events.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698