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

Unified Diff: Source/core/html/RangeInputType.cpp

Issue 14280004: Revert removal of events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
« no previous file with comments | « Source/core/html/RangeInputType.h ('k') | Source/core/inspector/InspectorPageAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/RangeInputType.cpp
diff --git a/Source/core/html/RangeInputType.cpp b/Source/core/html/RangeInputType.cpp
index 17500b1a88c025f74479d6d9e2b3ca8b0626d5c7..cbd4c3ece319aa2e7bb5924c2ff7055ddca69b03 100644
--- a/Source/core/html/RangeInputType.cpp
+++ b/Source/core/html/RangeInputType.cpp
@@ -48,13 +48,16 @@
#include "ShadowRoot.h"
#include "SliderThumbElement.h"
#include "StepRange.h"
-#include "Touch.h"
-#include "TouchEvent.h"
-#include "TouchList.h"
#include <limits>
#include <wtf/MathExtras.h>
#include <wtf/PassOwnPtr.h>
+#if ENABLE(TOUCH_EVENTS)
+#include "Touch.h"
+#include "TouchEvent.h"
+#include "TouchList.h"
+#endif
+
#if ENABLE(DATALIST_ELEMENT)
#include "HTMLDataListElement.h"
#include "HTMLOptionElement.h"
@@ -164,6 +167,7 @@ void RangeInputType::handleMouseDownEvent(MouseEvent* event)
thumb->dragFrom(event->absoluteLocation());
}
+#if ENABLE(TOUCH_EVENTS)
void RangeInputType::handleTouchEvent(TouchEvent* event)
{
if (element()->isDisabledOrReadOnly())
@@ -187,6 +191,7 @@ bool RangeInputType::hasTouchEventHandler() const
{
return true;
}
+#endif
void RangeInputType::handleKeydownEvent(KeyboardEvent* event)
{
« no previous file with comments | « Source/core/html/RangeInputType.h ('k') | Source/core/inspector/InspectorPageAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698