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

Unified Diff: Source/core/dom/Document.h

Issue 14296003: Remove TOUCH_EVENTS and TOUCH_EVENT_TRACKING compile-time flags. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase. 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/css/StyleResolver.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index dde5914d388dfd696229b72d657da8ffa420e99a..8d92c9c82677a02ca2714c92613dc17ab508ca0a 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -149,6 +149,8 @@ class StyleSheetList;
class Text;
class TextAutosizer;
class TextResourceDecoder;
+class Touch;
+class TouchList;
class TransformSource;
class TreeWalker;
class VisitedLinkState;
@@ -164,11 +166,6 @@ class SVGDocumentExtensions;
struct AnnotatedRegionValue;
-#if ENABLE(TOUCH_EVENTS)
-class Touch;
-class TouchList;
-#endif
-
#if ENABLE(FONT_LOAD_EVENTS)
class FontLoader;
#endif
@@ -269,12 +266,10 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(search);
DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart);
DEFINE_ATTRIBUTE_EVENT_LISTENER(selectionchange);
-#if ENABLE(TOUCH_EVENTS)
DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart);
DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove);
DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
-#endif
DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange);
DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror);
DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockchange);
@@ -1043,9 +1038,7 @@ public:
void decrementLoadEventDelayCount();
bool isDelayingLoadEvent() const { return m_loadEventDelayCount; }
-#if ENABLE(TOUCH_EVENTS)
PassRefPtr<Touch> createTouch(DOMWindow*, EventTarget*, int identifier, int pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rotationAngle, float force, ExceptionCode&) const;
-#endif
const DocumentTiming* timing() const { return &m_documentTiming; }
@@ -1065,24 +1058,14 @@ public:
double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGestureTimestamp; }
void resetLastHandledUserGestureTimestamp();
-#if ENABLE(TOUCH_EVENTS)
bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_touchEventTargets->size() : false; }
-#else
- bool hasTouchEventHandlers() const { return false; }
-#endif
void didAddTouchEventHandler(Node*);
void didRemoveTouchEventHandler(Node*);
-#if ENABLE(TOUCH_EVENTS)
void didRemoveEventTargetNode(Node*);
-#endif
-#if ENABLE(TOUCH_EVENTS)
const TouchEventTargetSet* touchEventTargets() const { return m_touchEventTargets.get(); }
-#else
- const TouchEventTargetSet* touchEventTargets() const { return 0; }
-#endif
bool isInDocumentWrite() { return m_writeRecursionDepth > 0; }
@@ -1459,9 +1442,7 @@ private:
unsigned m_writeRecursionDepth;
unsigned m_wheelEventHandlerCount;
-#if ENABLE(TOUCH_EVENTS)
OwnPtr<TouchEventTargetSet> m_touchEventTargets;
-#endif
double m_lastHandledUserGestureTimestamp;
« no previous file with comments | « Source/core/css/StyleResolver.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698