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

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

Issue 2835223003: Use kCamelCase in Document::ListenerType enum (Closed)
Patch Set: renamed Created 3 years, 7 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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 const AtomicString& event_type); 777 const AtomicString& event_type);
778 778
779 static void RegisterEventFactory(std::unique_ptr<EventFactoryBase>); 779 static void RegisterEventFactory(std::unique_ptr<EventFactoryBase>);
780 static Event* createEvent(ScriptState*, 780 static Event* createEvent(ScriptState*,
781 const String& event_type, 781 const String& event_type,
782 ExceptionState&); 782 ExceptionState&);
783 783
784 // keep track of what types of event listeners are registered, so we don't 784 // keep track of what types of event listeners are registered, so we don't
785 // dispatch events unnecessarily 785 // dispatch events unnecessarily
786 enum ListenerType { 786 enum ListenerType {
787 DOMSUBTREEMODIFIED_LISTENER = 1, 787 kDOMSubtreeModifiedListener = 1,
788 DOMNODEINSERTED_LISTENER = 1 << 1, 788 kDOMNodeInsertedListener = 1 << 1,
789 DOMNODEREMOVED_LISTENER = 1 << 2, 789 kDOMNodeRemovedListener = 1 << 2,
790 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, 790 kDOMNodeRemovedFromDocumentListener = 1 << 3,
791 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, 791 kDOMNodeInsertedIntoDocumentListener = 1 << 4,
792 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, 792 kDOMCharacterDataModifiedListener = 1 << 5,
793 ANIMATIONEND_LISTENER = 1 << 6, 793 kAnimationEndListener = 1 << 6,
794 ANIMATIONSTART_LISTENER = 1 << 7, 794 kAnimationStartListener = 1 << 7,
795 ANIMATIONITERATION_LISTENER = 1 << 8, 795 kAnimationIterationListener = 1 << 8,
796 TRANSITIONEND_LISTENER = 1 << 9, 796 kTransitionEndListener = 1 << 9,
797 SCROLL_LISTENER = 1 << 10, 797 kScrollListener = 1 << 10,
798 LOAD_LISTENER_AT_CAPTURE_PHASE_OR_AT_STYLE_ELEMENT = 1 << 11 798 kLoadListenerAtCapturePhaseOrAtStyleElement = 1 << 11
799 // 4 bits remaining 799 // 4 bits remaining
800 }; 800 };
801 801
802 bool HasListenerType(ListenerType listener_type) const { 802 bool HasListenerType(ListenerType listener_type) const {
803 return (listener_types_ & listener_type); 803 return (listener_types_ & listener_type);
804 } 804 }
805 void AddListenerTypeIfNeeded(const AtomicString& event_type, EventTarget&); 805 void AddListenerTypeIfNeeded(const AtomicString& event_type, EventTarget&);
806 806
807 bool HasMutationObserversOfType(MutationObserver::MutationType type) const { 807 bool HasMutationObserversOfType(MutationObserver::MutationType type) const {
808 return mutation_observer_types_ & type; 808 return mutation_observer_types_ & type;
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1733 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1734 1734
1735 } // namespace blink 1735 } // namespace blink
1736 1736
1737 #ifndef NDEBUG 1737 #ifndef NDEBUG
1738 // Outside the WebCore namespace for ease of invocation from gdb. 1738 // Outside the WebCore namespace for ease of invocation from gdb.
1739 CORE_EXPORT void showLiveDocumentInstances(); 1739 CORE_EXPORT void showLiveDocumentInstances();
1740 #endif 1740 #endif
1741 1741
1742 #endif // Document_h 1742 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698