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