Index: Source/core/platform/chromium/PopupContainer.cpp |
diff --git a/Source/core/platform/chromium/PopupContainer.cpp b/Source/core/platform/chromium/PopupContainer.cpp |
index f848c0f93d92f72c6bdf8b07d944bb8cb0fae39c..77db7eacdaa05893e071362fb99d14a73866ccb1 100644 |
--- a/Source/core/platform/chromium/PopupContainer.cpp |
+++ b/Source/core/platform/chromium/PopupContainer.cpp |
@@ -45,13 +45,16 @@ |
#include "PlatformKeyboardEvent.h" |
#include "PlatformMouseEvent.h" |
#include "PlatformScreen.h" |
-#include "PlatformTouchEvent.h" |
#include "PlatformWheelEvent.h" |
#include "PopupListBox.h" |
#include "PopupMenuClient.h" |
#include "UserGestureIndicator.h" |
#include <limits> |
+#if ENABLE(TOUCH_EVENTS) |
+#include "PlatformTouchEvent.h" |
+#endif |
+ |
using namespace std; |
namespace WebCore { |
@@ -290,10 +293,12 @@ bool PopupContainer::handleWheelEvent(const PlatformWheelEvent& event) |
constructRelativeWheelEvent(event, this, m_listBox.get())); |
} |
+#if ENABLE(TOUCH_EVENTS) |
bool PopupContainer::handleTouchEvent(const PlatformTouchEvent&) |
{ |
return false; |
} |
+#endif |
// FIXME: Refactor this code to share functionality with EventHandler::handleGestureEvent. |
bool PopupContainer::handleGestureEvent(const PlatformGestureEvent& gestureEvent) |