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

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

Issue 2656343002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Few more Created 3 years, 10 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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 void clearDOMWindow() { m_domWindow = nullptr; } 765 void clearDOMWindow() { m_domWindow = nullptr; }
766 LocalDOMWindow* domWindow() const { return m_domWindow; } 766 LocalDOMWindow* domWindow() const { return m_domWindow; }
767 767
768 // Helper functions for forwarding LocalDOMWindow event related tasks to the 768 // Helper functions for forwarding LocalDOMWindow event related tasks to the
769 // LocalDOMWindow if it exists. 769 // LocalDOMWindow if it exists.
770 void setWindowAttributeEventListener(const AtomicString& eventType, 770 void setWindowAttributeEventListener(const AtomicString& eventType,
771 EventListener*); 771 EventListener*);
772 EventListener* getWindowAttributeEventListener(const AtomicString& eventType); 772 EventListener* getWindowAttributeEventListener(const AtomicString& eventType);
773 773
774 static void registerEventFactory(std::unique_ptr<EventFactoryBase>); 774 static void registerEventFactory(std::unique_ptr<EventFactoryBase>);
775 static Event* createEvent(ExecutionContext*, 775 static Event* createEvent(ScriptState*,
776 const String& eventType, 776 const String& eventType,
777 ExceptionState&); 777 ExceptionState&);
778 778
779 // keep track of what types of event listeners are registered, so we don't 779 // keep track of what types of event listeners are registered, so we don't
780 // dispatch events unnecessarily 780 // dispatch events unnecessarily
781 enum ListenerType { 781 enum ListenerType {
782 DOMSUBTREEMODIFIED_LISTENER = 1, 782 DOMSUBTREEMODIFIED_LISTENER = 1,
783 DOMNODEINSERTED_LISTENER = 1 << 1, 783 DOMNODEINSERTED_LISTENER = 1 << 1,
784 DOMNODEREMOVED_LISTENER = 1 << 2, 784 DOMNODEREMOVED_LISTENER = 1 << 2,
785 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, 785 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3,
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1721 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1722 1722
1723 } // namespace blink 1723 } // namespace blink
1724 1724
1725 #ifndef NDEBUG 1725 #ifndef NDEBUG
1726 // Outside the WebCore namespace for ease of invocation from gdb. 1726 // Outside the WebCore namespace for ease of invocation from gdb.
1727 CORE_EXPORT void showLiveDocumentInstances(); 1727 CORE_EXPORT void showLiveDocumentInstances();
1728 #endif 1728 #endif
1729 1729
1730 #endif // Document_h 1730 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/PropertyRegistration.idl ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698