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

Unified Diff: ui/base/events/event.cc

Issue 10916210: events: Inlcude the event-phase and event-result in Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 8 years, 3 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/base/events/event.cc
diff --git a/ui/base/events/event.cc b/ui/base/events/event.cc
index fdc40b42df159137ddc75e34bc5a985e19302fad..2f50cc910255351bb81e5990b7629149cdb628db 100644
--- a/ui/base/events/event.cc
+++ b/ui/base/events/event.cc
@@ -62,7 +62,9 @@ Event::Event(EventType type, int flags)
time_stamp_(base::Time::NowFromSystemTime() - base::Time()),
flags_(flags),
delete_native_event_(false),
- target_(NULL) {
+ target_(NULL),
+ phase_(EP_NONE),
+ result_(ER_UNHANDLED) {
Init();
}
@@ -73,7 +75,9 @@ Event::Event(const base::NativeEvent& native_event,
time_stamp_(EventTimeFromNative(native_event)),
flags_(flags),
delete_native_event_(false),
- target_(NULL) {
+ target_(NULL),
+ phase_(EP_NONE),
+ result_(ER_UNHANDLED) {
InitWithNativeEvent(native_event);
}
@@ -83,7 +87,9 @@ Event::Event(const Event& copy)
time_stamp_(copy.time_stamp_),
flags_(copy.flags_),
delete_native_event_(false),
- target_(NULL) {
+ target_(NULL),
+ phase_(EP_NONE),
+ result_(ER_UNHANDLED) {
#if defined(USE_X11)
if (native_event_)
delete_native_event_ = true;

Powered by Google App Engine
This is Rietveld 408576698