summaryrefslogtreecommitdiffstats
path: root/ui/base/x
diff options
context:
space:
mode:
authoroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-05 17:14:33 +0000
committeroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-05 17:14:33 +0000
commite4dd339604ada87f8479c4d509911feb10b0e7fe (patch)
tree9419aa990fc8331d48d4a62c4aab4dd7af9c99c1 /ui/base/x
parent7a6b150c5b41a4aaf265284b930c96721a1ed15c (diff)
downloadchromium_src-e4dd339604ada87f8479c4d509911feb10b0e7fe.zip
chromium_src-e4dd339604ada87f8479c4d509911feb10b0e7fe.tar.gz
chromium_src-e4dd339604ada87f8479c4d509911feb10b0e7fe.tar.bz2
Consolidate ui::NativeEvent and base::NativeEvent
Note: I didn't add Wayland version of NativeEvent because the type is defined in ui, which base shouldn't depend on. I looked at the original CL and this typedef in message_pump_wayland seems to be added after reviewer gave LGTM. BUG=none TEST=none Review URL: http://codereview.chromium.org/8113028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104123 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/x')
-rw-r--r--ui/base/x/events_x.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/base/x/events_x.cc b/ui/base/x/events_x.cc
index 1bce88d..71687d4 100644
--- a/ui/base/x/events_x.cc
+++ b/ui/base/x/events_x.cc
@@ -66,7 +66,7 @@ int GetButtonMaskForX2Event(XIDeviceEvent* xievent) {
return buttonflags;
}
-ui::EventType GetTouchEventType(const ui::NativeEvent& native_event) {
+ui::EventType GetTouchEventType(const base::NativeEvent& native_event) {
XIDeviceEvent* event =
static_cast<XIDeviceEvent*>(native_event->xcookie.data);
#if defined(USE_XI2_MT)
@@ -131,7 +131,7 @@ ui::EventType GetTouchEventType(const ui::NativeEvent& native_event) {
namespace ui {
-EventType EventTypeFromNative(const NativeEvent& native_event) {
+EventType EventTypeFromNative(const base::NativeEvent& native_event) {
switch (native_event->type) {
case KeyPress:
return ET_KEY_PRESSED;
@@ -176,7 +176,7 @@ EventType EventTypeFromNative(const NativeEvent& native_event) {
return ET_UNKNOWN;
}
-int EventFlagsFromNative(const NativeEvent& native_event) {
+int EventFlagsFromNative(const base::NativeEvent& native_event) {
switch (native_event->type) {
case KeyPress:
case KeyRelease:
@@ -207,7 +207,7 @@ int EventFlagsFromNative(const NativeEvent& native_event) {
return 0;
}
-gfx::Point EventLocationFromNative(const NativeEvent& native_event) {
+gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {
switch (native_event->type) {
case ButtonPress:
case ButtonRelease:
@@ -224,11 +224,11 @@ gfx::Point EventLocationFromNative(const NativeEvent& native_event) {
return gfx::Point();
}
-KeyboardCode KeyboardCodeFromNative(const NativeEvent& native_event) {
+KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) {
return KeyboardCodeFromXKeyEvent(native_event);
}
-bool IsMouseEvent(const NativeEvent& native_event) {
+bool IsMouseEvent(const base::NativeEvent& native_event) {
if (native_event->type == ButtonPress ||
native_event->type == ButtonRelease ||
native_event->type == MotionNotify)
@@ -243,7 +243,7 @@ bool IsMouseEvent(const NativeEvent& native_event) {
return false;
}
-int GetMouseWheelOffset(const NativeEvent& native_event) {
+int GetMouseWheelOffset(const base::NativeEvent& native_event) {
if (native_event->type == GenericEvent) {
XIDeviceEvent* xiev =
static_cast<XIDeviceEvent*>(native_event->xcookie.data);