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

Unified Diff: ui/aura/event.cc

Issue 8113028: Consolidate ui::NativeEvent and base::NativeEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new patch Created 9 years, 2 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/aura/event.h ('k') | ui/base/events.h » ('j') | ui/base/events.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/event.cc
diff --git a/ui/aura/event.cc b/ui/aura/event.cc
index aae9d65ed9e980b77afb5b718574bfbd6afed013..cabeae5c87ea33ae68feb51b558d1f6c188ec4fe 100644
--- a/ui/aura/event.cc
+++ b/ui/aura/event.cc
@@ -15,7 +15,9 @@ Event::Event(ui::EventType type, int flags)
Init();
}
-Event::Event(const ui::NativeEvent& native_event, ui::EventType type, int flags)
+Event::Event(const base::NativeEvent& native_event,
+ ui::EventType type,
+ int flags)
: type_(type),
time_stamp_(base::Time::NowFromSystemTime()),
flags_(flags) {
@@ -33,11 +35,11 @@ void Event::Init() {
memset(&native_event_, 0, sizeof(native_event_));
}
-void Event::InitWithNativeEvent(const ui::NativeEvent& native_event) {
+void Event::InitWithNativeEvent(const base::NativeEvent& native_event) {
native_event_ = native_event;
}
-LocatedEvent::LocatedEvent(const ui::NativeEvent& native_event)
+LocatedEvent::LocatedEvent(const base::NativeEvent& native_event)
: Event(native_event,
ui::EventTypeFromNative(native_event),
ui::EventFlagsFromNative(native_event)),
@@ -60,7 +62,7 @@ LocatedEvent::LocatedEvent(ui::EventType type,
location_(location) {
}
-MouseEvent::MouseEvent(const ui::NativeEvent& native_event)
+MouseEvent::MouseEvent(const base::NativeEvent& native_event)
: LocatedEvent(native_event) {
}
@@ -82,7 +84,7 @@ MouseEvent::MouseEvent(ui::EventType type,
: LocatedEvent(type, location, flags) {
}
-KeyEvent::KeyEvent(const ui::NativeEvent& native_event)
+KeyEvent::KeyEvent(const base::NativeEvent& native_event)
: Event(native_event,
ui::EventTypeFromNative(native_event),
ui::EventFlagsFromNative(native_event)),
@@ -97,4 +99,3 @@ KeyEvent::KeyEvent(ui::EventType type,
}
} // namespace aura
-
« no previous file with comments | « ui/aura/event.h ('k') | ui/base/events.h » ('j') | ui/base/events.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698