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

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

Issue 225903009: Migrate touch events to EventHandlerRegistry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix indendation problems (added by meld?) Created 6 years, 4 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 | « LayoutTests/fast/events/touch/touch-handler-count-expected.txt ('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 d7dfed11c3a2950a1169c0233d6b18e474af9fcf..9c3700ae75aadba9a124b077ff73814c8da04094 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -176,8 +176,6 @@ enum NodeListInvalidationType {
};
const int numNodeListInvalidationTypes = InvalidateOnAnyAttrChange + 1;
-typedef HashCountedSet<Node*> TouchEventTargetSet;
-
enum DocumentClass {
DefaultDocumentClass = 0,
HTMLDocumentClass = 1,
@@ -940,21 +938,6 @@ public:
void initDNSPrefetch();
- bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_touchEventTargets->size() : false; }
-
- // Called when a single touch event handler has been added or removed for a node.
- // The Node should always be in this Document, except for child Documents which report
- // themselves to their parent exactly once if they have any touch handlers.
- // Handlers added/removed from the LocalDOMWindow are reported as the Document.
- void didAddTouchEventHandler(Node*);
- void didRemoveTouchEventHandler(Node* handler) { didRemoveTouchEventHandler(handler, false); }
-
- // Called whenever all touch event handlers have been removed for a node (such as when the
- // node itself is being removed from the document).
- void didClearTouchEventHandlers(Node* handler) { didRemoveTouchEventHandler(handler, true); }
-
- const TouchEventTargetSet* touchEventTargets() const { return m_touchEventTargets.get(); }
-
bool isInDocumentWrite() { return m_writeRecursionDepth > 0; }
IntSize initialViewportSize() const;
@@ -1149,8 +1132,6 @@ private:
void processHttpEquivXFrameOptions(const AtomicString& content);
void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const AtomicString& content);
- void didRemoveTouchEventHandler(Node*, bool clearAll);
-
bool haveStylesheetsLoaded() const;
void setHoverNode(PassRefPtrWillBeRawPtr<Node>);
@@ -1343,8 +1324,6 @@ private:
bool m_writeRecursionIsTooDeep;
unsigned m_writeRecursionDepth;
- OwnPtr<TouchEventTargetSet> m_touchEventTargets;
-
RefPtrWillBeMember<ScriptedAnimationController> m_scriptedAnimationController;
OwnPtr<MainThreadTaskRunner> m_taskRunner;
OwnPtrWillBeMember<TextAutosizer> m_textAutosizer;
« no previous file with comments | « LayoutTests/fast/events/touch/touch-handler-count-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698