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

Unified Diff: views/widget/native_widget_gtk.cc

Issue 6975045: touch: Always expect XInput2 availability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 7 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
« build/linux/system.gyp ('K') | « views/views.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_gtk.cc
diff --git a/views/widget/native_widget_gtk.cc b/views/widget/native_widget_gtk.cc
index 186f8ef7f29311c515486ea7ce607c4ea4b4fd38..9221d3a2abefcdf1d4892db951395a1fb65bb4cc 100644
--- a/views/widget/native_widget_gtk.cc
+++ b/views/widget/native_widget_gtk.cc
@@ -38,13 +38,11 @@
#include "views/window/native_window_gtk.h"
#if defined(TOUCH_UI)
-#if defined(HAVE_XINPUT2)
#include <gdk/gdkx.h>
#include "ui/gfx/gtk_util.h"
#include "views/touchui/touch_factory.h"
#endif
-#endif
#if defined(HAVE_IBUS)
#include "views/ime/input_method_ibus.h"
@@ -307,7 +305,7 @@ NativeWidgetGtk::NativeWidgetGtk(internal::NativeWidgetDelegate* delegate)
should_handle_menu_key_release_(false),
dragged_view_(NULL),
painted_(false) {
-#if defined(TOUCH_UI) && defined(HAVE_XINPUT2)
+#if defined(TOUCH_UI)
// Make sure the touch factory is initialized so that it can setup XInput2 for
// the widget.
TouchFactory::GetInstance();
@@ -1062,7 +1060,7 @@ void NativeWidgetGtk::SchedulePaintInRect(const gfx::Rect& rect) {
}
void NativeWidgetGtk::SetCursor(gfx::NativeCursor cursor) {
-#if defined(TOUCH_UI) && defined(HAVE_XINPUT2)
+#if defined(TOUCH_UI)
if (!TouchFactory::GetInstance()->is_cursor_visible() &&
!TouchFactory::GetInstance()->keep_mouse_cursor())
cursor = gfx::GetCursor(GDK_BLANK_CURSOR);
« build/linux/system.gyp ('K') | « views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698