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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 // Handlers to do/undo actions on the target node before an event is dispatc
hed to it and after the event | 636 // Handlers to do/undo actions on the target node before an event is dispatc
hed to it and after the event |
637 // has been dispatched. The data pointer is handed back by the preDispatch
and passed to postDispatch. | 637 // has been dispatched. The data pointer is handed back by the preDispatch
and passed to postDispatch. |
638 virtual void* preDispatchEventHandler(Event*) { return nullptr; } | 638 virtual void* preDispatchEventHandler(Event*) { return nullptr; } |
639 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/)
{ } | 639 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/)
{ } |
640 | 640 |
641 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); | 641 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); |
642 | 642 |
643 virtual void handleLocalEvents(Event&); | 643 virtual void handleLocalEvents(Event&); |
644 | 644 |
645 void dispatchSubtreeModifiedEvent(); | 645 void dispatchSubtreeModifiedEvent(); |
646 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde
rlyingEvent); | 646 DispatchEventResult dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRaw
Ptr<Event> underlyingEvent); |
647 | 647 |
648 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event
Type, int clickCount = 0, Node* relatedTarget = nullptr); | 648 DispatchEventResult dispatchMouseEvent(const PlatformMouseEvent&, const Atom
icString& eventType, int clickCount = 0, Node* relatedTarget = nullptr); |
649 | 649 |
650 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent
Options = SendNoEvents, SimulatedClickCreationScope = SimulatedClickCreationScop
e::FromUserAgent); | 650 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent
Options = SendNoEvents, SimulatedClickCreationScope = SimulatedClickCreationScop
e::FromUserAgent); |
651 | 651 |
652 void dispatchInputEvent(); | 652 void dispatchInputEvent(); |
653 | 653 |
654 // Perform the default action for an event. | 654 // Perform the default action for an event. |
655 virtual void defaultEventHandler(Event*); | 655 virtual void defaultEventHandler(Event*); |
656 virtual void willCallDefaultEventHandler(const Event&); | 656 virtual void willCallDefaultEventHandler(const Event&); |
657 | 657 |
658 EventTargetData* eventTargetData() override; | 658 EventTargetData* eventTargetData() override; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag, | 756 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag, |
757 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag, | 757 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag, |
758 }; | 758 }; |
759 | 759 |
760 Node(TreeScope*, ConstructionType); | 760 Node(TreeScope*, ConstructionType); |
761 | 761 |
762 virtual void didMoveToNewDocument(Document& oldDocument); | 762 virtual void didMoveToNewDocument(Document& oldDocument); |
763 | 763 |
764 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB
eRawPtr<EventListener>, const EventListenerOptions&) override; | 764 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB
eRawPtr<EventListener>, const EventListenerOptions&) override; |
765 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi
llBeRawPtr<EventListener>, const EventListenerOptions&) override; | 765 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi
llBeRawPtr<EventListener>, const EventListenerOptions&) override; |
766 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; | 766 DispatchEventResult dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) ove
rride; |
767 | 767 |
768 static void reattachWhitespaceSiblingsIfNeeded(Text* start); | 768 static void reattachWhitespaceSiblingsIfNeeded(Text* start); |
769 | 769 |
770 #if !ENABLE(OILPAN) | 770 #if !ENABLE(OILPAN) |
771 void willBeDeletedFromDocument(); | 771 void willBeDeletedFromDocument(); |
772 #endif | 772 #endif |
773 | 773 |
774 bool hasRareData() const { return getFlag(HasRareDataFlag); } | 774 bool hasRareData() const { return getFlag(HasRareDataFlag); } |
775 | 775 |
776 NodeRareData* rareData() const; | 776 NodeRareData* rareData() const; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 } // namespace blink | 930 } // namespace blink |
931 | 931 |
932 #ifndef NDEBUG | 932 #ifndef NDEBUG |
933 // Outside the WebCore namespace for ease of invocation from gdb. | 933 // Outside the WebCore namespace for ease of invocation from gdb. |
934 void showNode(const blink::Node*); | 934 void showNode(const blink::Node*); |
935 void showTree(const blink::Node*); | 935 void showTree(const blink::Node*); |
936 void showNodePath(const blink::Node*); | 936 void showNodePath(const blink::Node*); |
937 #endif | 937 #endif |
938 | 938 |
939 #endif // Node_h | 939 #endif // Node_h |
OLD | NEW |