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 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListene
r>, bool useCapture = false) override; | 616 bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListene
r>, bool useCapture = false) override; |
617 bool removeEventListener(const AtomicString& eventType, PassRefPtr<EventList
ener>, bool useCapture = false) override; | 617 bool removeEventListener(const AtomicString& eventType, PassRefPtr<EventList
ener>, bool useCapture = false) override; |
618 void removeAllEventListeners() override; | 618 void removeAllEventListeners() override; |
619 void removeAllEventListenersRecursively(); | 619 void removeAllEventListenersRecursively(); |
620 | 620 |
621 // Handlers to do/undo actions on the target node before an event is dispatc
hed to it and after the event | 621 // Handlers to do/undo actions on the target node before an event is dispatc
hed to it and after the event |
622 // has been dispatched. The data pointer is handed back by the preDispatch
and passed to postDispatch. | 622 // has been dispatched. The data pointer is handed back by the preDispatch
and passed to postDispatch. |
623 virtual void* preDispatchEventHandler(Event*) { return nullptr; } | 623 virtual void* preDispatchEventHandler(Event*) { return nullptr; } |
624 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/)
{ } | 624 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/)
{ } |
625 | 625 |
626 using EventTarget::dispatchEvent; | |
627 bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; | |
628 | |
629 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); | 626 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); |
630 void dispatchScopedEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispatc
hMediator>); | 627 void dispatchScopedEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispatc
hMediator>); |
631 | 628 |
632 virtual void handleLocalEvents(Event&); | 629 virtual void handleLocalEvents(Event&); |
633 | 630 |
634 void dispatchSubtreeModifiedEvent(); | 631 void dispatchSubtreeModifiedEvent(); |
635 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde
rlyingEvent); | 632 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde
rlyingEvent); |
636 | 633 |
637 bool dispatchKeyEvent(const PlatformKeyboardEvent&); | 634 bool dispatchKeyEvent(const PlatformKeyboardEvent&); |
638 bool dispatchWheelEvent(const PlatformWheelEvent&); | 635 bool dispatchWheelEvent(const PlatformWheelEvent&); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 CreateSVGElement = CreateElement | IsSVGFlag, | 743 CreateSVGElement = CreateElement | IsSVGFlag, |
747 CreateDocument = CreateContainer | InDocumentFlag, | 744 CreateDocument = CreateContainer | InDocumentFlag, |
748 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag, | 745 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag, |
749 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag, | 746 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag, |
750 }; | 747 }; |
751 | 748 |
752 Node(TreeScope*, ConstructionType); | 749 Node(TreeScope*, ConstructionType); |
753 | 750 |
754 virtual void didMoveToNewDocument(Document& oldDocument); | 751 virtual void didMoveToNewDocument(Document& oldDocument); |
755 | 752 |
| 753 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; |
| 754 |
756 static void reattachWhitespaceSiblingsIfNeeded(Text* start); | 755 static void reattachWhitespaceSiblingsIfNeeded(Text* start); |
757 | 756 |
758 #if !ENABLE(OILPAN) | 757 #if !ENABLE(OILPAN) |
759 void willBeDeletedFromDocument(); | 758 void willBeDeletedFromDocument(); |
760 #endif | 759 #endif |
761 | 760 |
762 bool hasRareData() const { return getFlag(HasRareDataFlag); } | 761 bool hasRareData() const { return getFlag(HasRareDataFlag); } |
763 | 762 |
764 NodeRareData* rareData() const; | 763 NodeRareData* rareData() const; |
765 NodeRareData& ensureRareData(); | 764 NodeRareData& ensureRareData(); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 } // namespace blink | 901 } // namespace blink |
903 | 902 |
904 #ifndef NDEBUG | 903 #ifndef NDEBUG |
905 // Outside the WebCore namespace for ease of invocation from gdb. | 904 // Outside the WebCore namespace for ease of invocation from gdb. |
906 void showNode(const blink::Node*); | 905 void showNode(const blink::Node*); |
907 void showTree(const blink::Node*); | 906 void showTree(const blink::Node*); |
908 void showNodePath(const blink::Node*); | 907 void showNodePath(const blink::Node*); |
909 #endif | 908 #endif |
910 | 909 |
911 #endif // Node_h | 910 #endif // Node_h |
OLD | NEW |