| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |