| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 class Event; | 55 class Event; |
| 56 class EventDispatchMediator; | 56 class EventDispatchMediator; |
| 57 class EventListener; | 57 class EventListener; |
| 58 class ExceptionState; | 58 class ExceptionState; |
| 59 class FloatPoint; | 59 class FloatPoint; |
| 60 class LocalFrame; | 60 class LocalFrame; |
| 61 class HTMLInputElement; | 61 class HTMLInputElement; |
| 62 class HTMLQualifiedName; | 62 class HTMLQualifiedName; |
| 63 class IntRect; | 63 class IntRect; |
| 64 class KeyboardEvent; | 64 class KeyboardEvent; |
| 65 class MouseEvent; | |
| 66 class NSResolver; | 65 class NSResolver; |
| 67 class NameNodeList; | 66 class NameNodeList; |
| 68 class NamedNodeMap; | 67 class NamedNodeMap; |
| 69 class NodeEventContext; | 68 class NodeEventContext; |
| 70 class NodeList; | 69 class NodeList; |
| 71 class NodeListsNodeData; | 70 class NodeListsNodeData; |
| 72 class NodeRareData; | 71 class NodeRareData; |
| 73 class PlatformGestureEvent; | 72 class PlatformGestureEvent; |
| 74 class PlatformKeyboardEvent; | 73 class PlatformKeyboardEvent; |
| 75 class PlatformMouseEvent; | 74 class PlatformMouseEvent; |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E
ventListener>, bool useCapture = false) override; | 627 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E
ventListener>, bool useCapture = false) override; |
| 629 virtual void removeAllEventListeners() override; | 628 virtual void removeAllEventListeners() override; |
| 630 void removeAllEventListenersRecursively(); | 629 void removeAllEventListenersRecursively(); |
| 631 | 630 |
| 632 // Handlers to do/undo actions on the target node before an event is dispatc
hed to it and after the event | 631 // Handlers to do/undo actions on the target node before an event is dispatc
hed to it and after the event |
| 633 // has been dispatched. The data pointer is handed back by the preDispatch
and passed to postDispatch. | 632 // has been dispatched. The data pointer is handed back by the preDispatch
and passed to postDispatch. |
| 634 virtual void* preDispatchEventHandler(Event*) { return nullptr; } | 633 virtual void* preDispatchEventHandler(Event*) { return nullptr; } |
| 635 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/)
{ } | 634 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/)
{ } |
| 636 | 635 |
| 637 using EventTarget::dispatchEvent; | 636 using EventTarget::dispatchEvent; |
| 638 // This dispatchEvent override is intended to only be used for events dispat
ched from script | |
| 639 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; | 637 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; |
| 640 | 638 |
| 641 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); | 639 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); |
| 642 void dispatchScopedEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispatc
hMediator>); | 640 void dispatchScopedEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispatc
hMediator>); |
| 643 | 641 |
| 644 virtual void handleLocalEvents(Event&); | 642 virtual void handleLocalEvents(Event&); |
| 645 | 643 |
| 646 void dispatchSubtreeModifiedEvent(); | 644 void dispatchSubtreeModifiedEvent(); |
| 647 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde
rlyingEvent); | 645 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde
rlyingEvent); |
| 648 | 646 |
| 649 bool dispatchKeyEvent(const PlatformKeyboardEvent&); | 647 bool dispatchKeyEvent(const PlatformKeyboardEvent&); |
| 650 bool dispatchWheelEvent(const PlatformWheelEvent&); | 648 bool dispatchWheelEvent(const PlatformWheelEvent&); |
| 651 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event
Type, int clickCount = 0, Node* relatedTarget = nullptr); | 649 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event
Type, int clickCount = 0, Node* relatedTarget = nullptr); |
| 652 bool dispatchMouseEvent(PassRefPtrWillBeRawPtr<MouseEvent>); | |
| 653 bool dispatchGestureEvent(const PlatformGestureEvent&); | 650 bool dispatchGestureEvent(const PlatformGestureEvent&); |
| 654 bool dispatchTouchEvent(PassRefPtrWillBeRawPtr<TouchEvent>); | 651 bool dispatchTouchEvent(PassRefPtrWillBeRawPtr<TouchEvent>); |
| 655 | 652 |
| 656 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent
Options = SendNoEvents); | 653 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent
Options = SendNoEvents); |
| 657 | 654 |
| 658 void dispatchInputEvent(); | 655 void dispatchInputEvent(); |
| 659 | 656 |
| 660 // Perform the default action for an event. | 657 // Perform the default action for an event. |
| 661 virtual void defaultEventHandler(Event*); | 658 virtual void defaultEventHandler(Event*); |
| 662 virtual void willCallDefaultEventHandler(const Event&); | 659 virtual void willCallDefaultEventHandler(const Event&); |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 } // namespace blink | 911 } // namespace blink |
| 915 | 912 |
| 916 #ifndef NDEBUG | 913 #ifndef NDEBUG |
| 917 // Outside the WebCore namespace for ease of invocation from gdb. | 914 // Outside the WebCore namespace for ease of invocation from gdb. |
| 918 void showNode(const blink::Node*); | 915 void showNode(const blink::Node*); |
| 919 void showTree(const blink::Node*); | 916 void showTree(const blink::Node*); |
| 920 void showNodePath(const blink::Node*); | 917 void showNodePath(const blink::Node*); |
| 921 #endif | 918 #endif |
| 922 | 919 |
| 923 #endif // Node_h | 920 #endif // Node_h |
| OLD | NEW |