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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); | 626 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); |
627 void dispatchScopedEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispatc
hMediator>); | |
628 void dispatchEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispatchMedia
tor>); | |
629 | 627 |
630 virtual void handleLocalEvents(Event&); | 628 virtual void handleLocalEvents(Event&); |
631 | 629 |
632 void dispatchSubtreeModifiedEvent(); | 630 void dispatchSubtreeModifiedEvent(); |
633 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde
rlyingEvent); | 631 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde
rlyingEvent); |
634 | 632 |
635 bool dispatchKeyEvent(const PlatformKeyboardEvent&); | 633 bool dispatchKeyEvent(const PlatformKeyboardEvent&); |
636 bool dispatchWheelEvent(const PlatformWheelEvent&); | 634 bool dispatchWheelEvent(const PlatformWheelEvent&); |
637 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event
Type, int clickCount = 0, Node* relatedTarget = nullptr); | 635 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event
Type, int clickCount = 0, Node* relatedTarget = nullptr); |
638 bool dispatchGestureEvent(const PlatformGestureEvent&); | 636 bool dispatchGestureEvent(const PlatformGestureEvent&); |
639 bool dispatchTouchEvent(PassRefPtrWillBeRawPtr<TouchEvent>); | |
640 bool dispatchPointerEvent(PassRefPtrWillBeRawPtr<PointerEvent>); | |
641 | 637 |
642 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent
Options = SendNoEvents); | 638 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent
Options = SendNoEvents); |
643 | 639 |
644 void dispatchInputEvent(); | 640 void dispatchInputEvent(); |
645 | 641 |
646 // Perform the default action for an event. | 642 // Perform the default action for an event. |
647 virtual void defaultEventHandler(Event*); | 643 virtual void defaultEventHandler(Event*); |
648 virtual void willCallDefaultEventHandler(const Event&); | 644 virtual void willCallDefaultEventHandler(const Event&); |
649 | 645 |
650 EventTargetData* eventTargetData() override; | 646 EventTargetData* eventTargetData() override; |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 } // namespace blink | 898 } // namespace blink |
903 | 899 |
904 #ifndef NDEBUG | 900 #ifndef NDEBUG |
905 // Outside the WebCore namespace for ease of invocation from gdb. | 901 // Outside the WebCore namespace for ease of invocation from gdb. |
906 void showNode(const blink::Node*); | 902 void showNode(const blink::Node*); |
907 void showTree(const blink::Node*); | 903 void showTree(const blink::Node*); |
908 void showNodePath(const blink::Node*); | 904 void showNodePath(const blink::Node*); |
909 #endif | 905 #endif |
910 | 906 |
911 #endif // Node_h | 907 #endif // Node_h |
OLD | NEW |