Index: Source/core/platform/chromium/PopupListBox.cpp |
diff --git a/Source/core/platform/chromium/PopupListBox.cpp b/Source/core/platform/chromium/PopupListBox.cpp |
index da48a8f6c74ad99c8d3f105ef779b4d7cbfd0c6d..93b0ce18f4980dae02575a7c1e2dd8c953197635 100644 |
--- a/Source/core/platform/chromium/PopupListBox.cpp |
+++ b/Source/core/platform/chromium/PopupListBox.cpp |
@@ -41,7 +41,6 @@ |
#include "PlatformKeyboardEvent.h" |
#include "PlatformMouseEvent.h" |
#include "PlatformScreen.h" |
-#include "PlatformTouchEvent.h" |
#include "PlatformWheelEvent.h" |
#include "PopupContainer.h" |
#include "PopupMenuChromium.h" |
@@ -55,6 +54,10 @@ |
#include <limits> |
#include <wtf/CurrentTime.h> |
+#if ENABLE(TOUCH_EVENTS) |
+#include "PlatformTouchEvent.h" |
+#endif |
+ |
namespace WebCore { |
using namespace std; |
@@ -173,10 +176,12 @@ bool PopupListBox::isInterestedInEventForKey(int keyCode) |
} |
} |
+#if ENABLE(TOUCH_EVENTS) |
bool PopupListBox::handleTouchEvent(const PlatformTouchEvent&) |
{ |
return false; |
} |
+#endif |
bool PopupListBox::handleGestureEvent(const PlatformGestureEvent&) |
{ |