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

Unified Diff: ui/base/event.cc

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/x/events_x.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/event.cc
===================================================================
--- ui/base/event.cc (revision 151055)
+++ ui/base/event.cc (working copy)
@@ -72,6 +72,7 @@
Event::Event(const Event& copy)
: native_event_(copy.native_event_),
+ ui_native_event_(copy.ui_native_event_),
type_(copy.type_),
time_stamp_(copy.time_stamp_),
flags_(copy.flags_),
@@ -80,10 +81,12 @@
void Event::Init() {
std::memset(&native_event_, 0, sizeof(native_event_));
+ std::memset(&ui_native_event_, 0, sizeof(ui_native_event_));
}
void Event::InitWithNativeEvent(const base::NativeEvent& native_event) {
native_event_ = native_event;
+ std::memset(&ui_native_event_, 0, sizeof(ui_native_event_));
}
LocatedEvent::~LocatedEvent() {
« no previous file with comments | « ui/base/event.h ('k') | ui/base/x/events_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698