Index: ui/base/touchui/touch_factory.cc |
diff --git a/views/touchui/touch_factory.cc b/ui/base/touchui/touch_factory.cc |
similarity index 94% |
rename from views/touchui/touch_factory.cc |
rename to ui/base/touchui/touch_factory.cc |
index f50e9dac6ba9965faed760e8d24ea157ffb0d002..23a7c0044cf7c14c13beb193d86552b4effaafca 100644 |
--- a/views/touchui/touch_factory.cc |
+++ b/ui/base/touchui/touch_factory.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "views/touchui/touch_factory.h" |
+#include "ui/base/touchui/touch_factory.h" |
#if defined(TOOLKIT_USES_GTK) |
// TODO(sad) Remove all TOOLKIT_USES_GTK uses once we move to aura only. |
@@ -29,23 +29,23 @@ int kCursorIdleSeconds = 5; |
// the X device information through Atom name matching. |
XIValuatorClassInfo* FindTPValuator(Display* display, |
XIDeviceInfo* info, |
- views::TouchFactory::TouchParam tp) { |
+ ui::TouchFactory::TouchParam tp) { |
// Lookup table for mapping TouchParam to Atom string used in X. |
// A full set of Atom strings can be found at xserver-properties.h. |
// For Slot ID, See this chromeos revision: http://git.chromium.org/gitweb/? |
// p=chromiumos/overlays/chromiumos-overlay.git; |
// a=commit;h=9164d0a75e48c4867e4ef4ab51f743ae231c059a |
static struct { |
- views::TouchFactory::TouchParam tp; |
+ ui::TouchFactory::TouchParam tp; |
const char* atom; |
} kTouchParamAtom[] = { |
- { views::TouchFactory::TP_TOUCH_MAJOR, "Abs MT Touch Major" }, |
- { views::TouchFactory::TP_TOUCH_MINOR, "Abs MT Touch Minor" }, |
- { views::TouchFactory::TP_ORIENTATION, "Abs MT Orientation" }, |
- { views::TouchFactory::TP_PRESSURE, "Abs MT Pressure" }, |
- { views::TouchFactory::TP_SLOT_ID, "Abs MT Slot ID" }, |
- { views::TouchFactory::TP_TRACKING_ID, "Abs MT Tracking ID" }, |
- { views::TouchFactory::TP_LAST_ENTRY, NULL }, |
+ { ui::TouchFactory::TP_TOUCH_MAJOR, "Abs MT Touch Major" }, |
+ { ui::TouchFactory::TP_TOUCH_MINOR, "Abs MT Touch Minor" }, |
+ { ui::TouchFactory::TP_ORIENTATION, "Abs MT Orientation" }, |
+ { ui::TouchFactory::TP_PRESSURE, "Abs MT Pressure" }, |
+ { ui::TouchFactory::TP_SLOT_ID, "Abs MT Slot ID" }, |
+ { ui::TouchFactory::TP_TRACKING_ID, "Abs MT Tracking ID" }, |
+ { ui::TouchFactory::TP_LAST_ENTRY, NULL }, |
}; |
const char* atom_tp = NULL; |
@@ -80,7 +80,7 @@ gboolean GtkWidgetRealizeCallback(GSignalInvocationHint* hint, guint nparams, |
const GValue* pvalues, gpointer data) { |
GtkWidget* widget = GTK_WIDGET(g_value_get_object(pvalues)); |
GdkWindow* window = widget->window; |
- views::TouchFactory* factory = static_cast<views::TouchFactory*>(data); |
+ ui::TouchFactory* factory = static_cast<ui::TouchFactory*>(data); |
if (GDK_WINDOW_TYPE(window) != GDK_WINDOW_TOPLEVEL && |
GDK_WINDOW_TYPE(window) != GDK_WINDOW_CHILD && |
@@ -99,7 +99,7 @@ gboolean GtkWidgetRealizeCallback(GSignalInvocationHint* hint, guint nparams, |
guint realize_signal_id = 0; |
guint realize_hook_id = 0; |
-void SetupGtkWidgetRealizeNotifier(views::TouchFactory* factory) { |
+void SetupGtkWidgetRealizeNotifier(ui::TouchFactory* factory) { |
gpointer klass = g_type_class_ref(GTK_TYPE_WIDGET); |
g_signal_parse_name("realize", GTK_TYPE_WIDGET, |
@@ -120,7 +120,7 @@ void RemoveGtkWidgetRealizeNotifier() { |
} // namespace |
-namespace views { |
+namespace ui { |
// static |
TouchFactory* TouchFactory::GetInstance() { |
@@ -451,4 +451,4 @@ bool TouchFactory::GetTouchParamRange(unsigned int deviceid, |
return false; |
} |
-} // namespace views |
+} // namespace ui |