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 81dd41deb83ad7d7fb36c71f9d1969ebb4fd9437..1c8b4bfa6dbe6310dc21b85cab67d33ba39deddb 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" |
#include <gtk/gtk.h> |
#include <gdk/gdkx.h> |
@@ -26,23 +26,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; |
@@ -76,7 +76,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 && |
@@ -95,7 +95,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, |
@@ -115,7 +115,7 @@ void RemoveGtkWidgetRealizeNotifier() { |
} // namespace |
-namespace views { |
+namespace ui { |
// static |
TouchFactory* TouchFactory::GetInstance() { |
@@ -443,4 +443,4 @@ bool TouchFactory::GetTouchParamRange(unsigned int deviceid, |
return false; |
} |
-} // namespace views |
+} // namespace ui |