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

Side by Side Diff: Source/core/dom/Document.h

Issue 206603002: Add EventHandlerRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Refactoring WIP. Created 6 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 void serviceScriptedAnimations(double monotonicAnimationStartTime); 938 void serviceScriptedAnimations(double monotonicAnimationStartTime);
939 939
940 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; 940 virtual EventTarget* errorEventTarget() OVERRIDE FINAL;
941 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) OVERR IDE FINAL; 941 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) OVERR IDE FINAL;
942 942
943 void initDNSPrefetch(); 943 void initDNSPrefetch();
944 944
945 double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGes tureTimestamp; } 945 double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGes tureTimestamp; }
946 void resetLastHandledUserGestureTimestamp(); 946 void resetLastHandledUserGestureTimestamp();
947 947
948 // TODO: Remove all of this.
948 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_ touchEventTargets->size() : false; } 949 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_ touchEventTargets->size() : false; }
949 950
950 // Called when a single touch event handler has been added or removed for a node. 951 // Called when a single touch event handler has been added or removed for a node.
951 // The Node should always be in this Document, except for child Documents wh ich report 952 // The Node should always be in this Document, except for child Documents wh ich report
952 // themselves to their parent exactly once if they have any touch handlers. 953 // themselves to their parent exactly once if they have any touch handlers.
953 // Handlers added/removed from the DOMWindow are reported as the Document. 954 // Handlers added/removed from the DOMWindow are reported as the Document.
954 void didAddTouchEventHandler(Node*); 955 void didAddTouchEventHandler(Node*);
955 void didRemoveTouchEventHandler(Node* handler) { didRemoveTouchEventHandler( handler, false); } 956 void didRemoveTouchEventHandler(Node* handler) { didRemoveTouchEventHandler( handler, false); }
956 957
957 // Called whenever all touch event handlers have been removed for a node (su ch as when the 958 // Called whenever all touch event handlers have been removed for a node (su ch as when the
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 inline bool Node::isDocumentNode() const 1401 inline bool Node::isDocumentNode() const
1401 { 1402 {
1402 return this == document(); 1403 return this == document();
1403 } 1404 }
1404 1405
1405 Node* eventTargetNodeForDocument(Document*); 1406 Node* eventTargetNodeForDocument(Document*);
1406 1407
1407 } // namespace WebCore 1408 } // namespace WebCore
1408 1409
1409 #endif // Document_h 1410 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698