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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 // Handlers to do/undo actions on the target node before an event is dispatc
hed to it and after the event | 620 // Handlers to do/undo actions on the target node before an event is dispatc
hed to it and after the event |
621 // has been dispatched. The data pointer is handed back by the preDispatch
and passed to postDispatch. | 621 // has been dispatched. The data pointer is handed back by the preDispatch
and passed to postDispatch. |
622 virtual void* preDispatchEventHandler(Event*) { return nullptr; } | 622 virtual void* preDispatchEventHandler(Event*) { return nullptr; } |
623 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/)
{ } | 623 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/)
{ } |
624 | 624 |
625 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); | 625 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); |
626 | 626 |
627 virtual void handleLocalEvents(Event&); | 627 virtual void handleLocalEvents(Event&); |
628 | 628 |
629 void dispatchSubtreeModifiedEvent(); | 629 void dispatchSubtreeModifiedEvent(); |
630 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde
rlyingEvent); | 630 WebInputEventResult dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRaw
Ptr<Event> underlyingEvent); |
631 | 631 |
632 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event
Type, int clickCount = 0, Node* relatedTarget = nullptr); | 632 WebInputEventResult dispatchMouseEvent(const PlatformMouseEvent&, const Atom
icString& eventType, int clickCount = 0, Node* relatedTarget = nullptr); |
633 | 633 |
634 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent
Options = SendNoEvents, SimulatedClickCreationScope = SimulatedClickCreationScop
e::FromUserAgent); | 634 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent
Options = SendNoEvents, SimulatedClickCreationScope = SimulatedClickCreationScop
e::FromUserAgent); |
635 | 635 |
636 void dispatchInputEvent(); | 636 void dispatchInputEvent(); |
637 | 637 |
638 // Perform the default action for an event. | 638 // Perform the default action for an event. |
639 virtual void defaultEventHandler(Event*); | 639 virtual void defaultEventHandler(Event*); |
640 virtual void willCallDefaultEventHandler(const Event&); | 640 virtual void willCallDefaultEventHandler(const Event&); |
641 | 641 |
642 EventTargetData* eventTargetData() override; | 642 EventTargetData* eventTargetData() override; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag, | 738 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag, |
739 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag, | 739 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag, |
740 }; | 740 }; |
741 | 741 |
742 Node(TreeScope*, ConstructionType); | 742 Node(TreeScope*, ConstructionType); |
743 | 743 |
744 virtual void didMoveToNewDocument(Document& oldDocument); | 744 virtual void didMoveToNewDocument(Document& oldDocument); |
745 | 745 |
746 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB
eRawPtr<EventListener>, const EventListenerOptions&) override; | 746 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB
eRawPtr<EventListener>, const EventListenerOptions&) override; |
747 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi
llBeRawPtr<EventListener>, const EventListenerOptions&) override; | 747 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi
llBeRawPtr<EventListener>, const EventListenerOptions&) override; |
748 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; | 748 WebInputEventResult dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) ove
rride; |
749 | 749 |
750 static void reattachWhitespaceSiblingsIfNeeded(Text* start); | 750 static void reattachWhitespaceSiblingsIfNeeded(Text* start); |
751 | 751 |
752 #if !ENABLE(OILPAN) | 752 #if !ENABLE(OILPAN) |
753 void willBeDeletedFromDocument(); | 753 void willBeDeletedFromDocument(); |
754 #endif | 754 #endif |
755 | 755 |
756 bool hasRareData() const { return getFlag(HasRareDataFlag); } | 756 bool hasRareData() const { return getFlag(HasRareDataFlag); } |
757 | 757 |
758 NodeRareData* rareData() const; | 758 NodeRareData* rareData() const; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 } // namespace blink | 912 } // namespace blink |
913 | 913 |
914 #ifndef NDEBUG | 914 #ifndef NDEBUG |
915 // Outside the WebCore namespace for ease of invocation from gdb. | 915 // Outside the WebCore namespace for ease of invocation from gdb. |
916 void showNode(const blink::Node*); | 916 void showNode(const blink::Node*); |
917 void showTree(const blink::Node*); | 917 void showTree(const blink::Node*); |
918 void showNodePath(const blink::Node*); | 918 void showNodePath(const blink::Node*); |
919 #endif | 919 #endif |
920 | 920 |
921 #endif // Node_h | 921 #endif // Node_h |
OLD | NEW |