| Index: views/widget/native_widget_gtk.cc
|
| diff --git a/views/widget/native_widget_gtk.cc b/views/widget/native_widget_gtk.cc
|
| index 6890c9c71f12bacd7b83b743ef3002c407c5922a..4ee033e40478879f9338815dbceb66fae3d232d4 100644
|
| --- a/views/widget/native_widget_gtk.cc
|
| +++ b/views/widget/native_widget_gtk.cc
|
| @@ -42,8 +42,8 @@
|
| #include "views/window/hit_test.h"
|
|
|
| #if defined(TOUCH_UI)
|
| +#include "ui/base/touchui/touch_factory.h"
|
| #include "views/widget/tooltip_manager_views.h"
|
| -#include "views/touchui/touch_factory.h"
|
| #else
|
| #include "views/widget/tooltip_manager_gtk.h"
|
| #endif
|
| @@ -380,7 +380,7 @@ NativeWidgetGtk::NativeWidgetGtk(internal::NativeWidgetDelegate* delegate)
|
| #if defined(TOUCH_UI)
|
| // Make sure the touch factory is initialized so that it can setup XInput2 for
|
| // the widget.
|
| - TouchFactory::GetInstance();
|
| + ui::TouchFactory::GetInstance();
|
| #endif
|
| static bool installed_message_loop_observer = false;
|
| if (!installed_message_loop_observer) {
|
| @@ -926,7 +926,7 @@ void NativeWidgetGtk::SetMouseCapture() {
|
| ::Window window = GDK_WINDOW_XID(window_contents()->window);
|
| Display* display = GDK_WINDOW_XDISPLAY(window_contents()->window);
|
| bool xi2grab =
|
| - TouchFactory::GetInstance()->GrabTouchDevices(display, window);
|
| + ui::TouchFactory::GetInstance()->GrabTouchDevices(display, window);
|
| // xi2grab should always succeed if has_pointer_grab_ succeeded.
|
| DCHECK(xi2grab);
|
| has_pointer_grab_ = has_pointer_grab_ && xi2grab;
|
| @@ -946,7 +946,7 @@ void NativeWidgetGtk::ReleaseMouseCapture() {
|
| has_pointer_grab_ = false;
|
| gdk_pointer_ungrab(GDK_CURRENT_TIME);
|
| #if defined(TOUCH_UI)
|
| - TouchFactory::GetInstance()->UngrabTouchDevices(
|
| + ui::TouchFactory::GetInstance()->UngrabTouchDevices(
|
| GDK_WINDOW_XDISPLAY(window_contents()->window));
|
| #endif
|
| }
|
| @@ -1301,9 +1301,9 @@ void NativeWidgetGtk::SchedulePaintInRect(const gfx::Rect& rect) {
|
|
|
| void NativeWidgetGtk::SetCursor(gfx::NativeCursor cursor) {
|
| #if defined(TOUCH_UI)
|
| - if (TouchFactory::GetInstance()->keep_mouse_cursor())
|
| + if (ui::TouchFactory::GetInstance()->keep_mouse_cursor())
|
| cursor = gfx::GetCursor(GDK_ARROW);
|
| - else if (!TouchFactory::GetInstance()->is_cursor_visible())
|
| + else if (!ui::TouchFactory::GetInstance()->is_cursor_visible())
|
| cursor = gfx::GetCursor(GDK_BLANK_CURSOR);
|
| #endif
|
| // |window_contents_| is placed on top of |widget_|. So the cursor needs to be
|
| @@ -1742,7 +1742,7 @@ gboolean NativeWidgetGtk::OnGrabBrokeEvent(GtkWidget* widget, GdkEvent* event) {
|
| ReleaseMouseCapture();
|
|
|
| #if defined(HAVE_XINPUT2) && defined(TOUCH_UI)
|
| - TouchFactory::GetInstance()->UngrabTouchDevices(
|
| + ui::TouchFactory::GetInstance()->UngrabTouchDevices(
|
| GDK_WINDOW_XDISPLAY(window_contents()->window));
|
| #endif
|
| return false; // To let other widgets get the event.
|
|
|