| 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. | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 7 * (http://www.torchmobile.com/) | 7 * (http://www.torchmobile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class Event; | 53 class Event; |
| 54 class ExceptionState; | 54 class ExceptionState; |
| 55 class GetRootNodeOptions; | 55 class GetRootNodeOptions; |
| 56 class HTMLQualifiedName; | 56 class HTMLQualifiedName; |
| 57 class HTMLSlotElement; | 57 class HTMLSlotElement; |
| 58 class IntRect; | 58 class IntRect; |
| 59 class EventDispatchHandlingState; | 59 class EventDispatchHandlingState; |
| 60 class NodeList; | 60 class NodeList; |
| 61 class NodeListsNodeData; | 61 class NodeListsNodeData; |
| 62 class NodeRareData; | 62 class NodeRareData; |
| 63 class PlatformMouseEvent; | |
| 64 class QualifiedName; | 63 class QualifiedName; |
| 65 class RegisteredEventListener; | 64 class RegisteredEventListener; |
| 66 class LayoutBox; | 65 class LayoutBox; |
| 67 class LayoutBoxModelObject; | 66 class LayoutBoxModelObject; |
| 68 class LayoutObject; | 67 class LayoutObject; |
| 69 class ComputedStyle; | 68 class ComputedStyle; |
| 70 class SVGQualifiedName; | 69 class SVGQualifiedName; |
| 71 class ShadowRoot; | 70 class ShadowRoot; |
| 72 template <typename NodeType> | 71 template <typename NodeType> |
| 73 class StaticNodeTypeList; | 72 class StaticNodeTypeList; |
| 74 using StaticNodeList = StaticNodeTypeList<Node>; | 73 using StaticNodeList = StaticNodeTypeList<Node>; |
| 75 class StyleChangeReasonForTracing; | 74 class StyleChangeReasonForTracing; |
| 76 class Text; | 75 class Text; |
| 76 class WebMouseEvent; |
| 77 | 77 |
| 78 const int nodeStyleChangeShift = 18; | 78 const int nodeStyleChangeShift = 18; |
| 79 const int nodeCustomElementShift = 20; | 79 const int nodeCustomElementShift = 20; |
| 80 | 80 |
| 81 enum StyleChangeType { | 81 enum StyleChangeType { |
| 82 NoStyleChange = 0, | 82 NoStyleChange = 0, |
| 83 LocalStyleChange = 1 << nodeStyleChangeShift, | 83 LocalStyleChange = 1 << nodeStyleChangeShift, |
| 84 SubtreeStyleChange = 2 << nodeStyleChangeShift, | 84 SubtreeStyleChange = 2 << nodeStyleChangeShift, |
| 85 NeedsReattachStyleChange = 3 << nodeStyleChangeShift, | 85 NeedsReattachStyleChange = 3 << nodeStyleChangeShift, |
| 86 }; | 86 }; |
| (...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 virtual void postDispatchEventHandler(Event*, EventDispatchHandlingState*) {} | 710 virtual void postDispatchEventHandler(Event*, EventDispatchHandlingState*) {} |
| 711 | 711 |
| 712 void dispatchScopedEvent(Event*); | 712 void dispatchScopedEvent(Event*); |
| 713 | 713 |
| 714 virtual void handleLocalEvents(Event&); | 714 virtual void handleLocalEvents(Event&); |
| 715 | 715 |
| 716 void dispatchSubtreeModifiedEvent(); | 716 void dispatchSubtreeModifiedEvent(); |
| 717 DispatchEventResult dispatchDOMActivateEvent(int detail, | 717 DispatchEventResult dispatchDOMActivateEvent(int detail, |
| 718 Event& underlyingEvent); | 718 Event& underlyingEvent); |
| 719 | 719 |
| 720 void dispatchMouseEvent(const PlatformMouseEvent&, | 720 void dispatchMouseEvent(const WebMouseEvent&, |
| 721 const AtomicString& eventType, | 721 const AtomicString& eventType, |
| 722 int clickCount = 0, | 722 int clickCount = 0, |
| 723 const String& canvasNodeId = String(), |
| 723 Node* relatedTarget = nullptr); | 724 Node* relatedTarget = nullptr); |
| 724 | 725 |
| 725 void dispatchSimulatedClick( | 726 void dispatchSimulatedClick( |
| 726 Event* underlyingEvent, | 727 Event* underlyingEvent, |
| 727 SimulatedClickMouseEventOptions = SendNoEvents, | 728 SimulatedClickMouseEventOptions = SendNoEvents, |
| 728 SimulatedClickCreationScope = SimulatedClickCreationScope::FromUserAgent); | 729 SimulatedClickCreationScope = SimulatedClickCreationScope::FromUserAgent); |
| 729 | 730 |
| 730 void dispatchInputEvent(); | 731 void dispatchInputEvent(); |
| 731 | 732 |
| 732 // Perform the default action for an event. | 733 // Perform the default action for an event. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 // 4 bits remaining. | 836 // 4 bits remaining. |
| 836 | 837 |
| 837 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } | 838 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } |
| 838 void setFlag(bool f, NodeFlags mask) { | 839 void setFlag(bool f, NodeFlags mask) { |
| 839 m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); | 840 m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); |
| 840 } | 841 } |
| 841 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } | 842 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } |
| 842 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } | 843 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } |
| 843 | 844 |
| 844 // TODO(mustaq): This is a hack to fix sites with flash objects. We should | 845 // TODO(mustaq): This is a hack to fix sites with flash objects. We should |
| 845 // instead route all PlatformMouseEvents through EventHandler. See | 846 // instead route all WebMouseEvents through EventHandler. See |
| 846 // crbug.com/665924. | 847 // crbug.com/665924. |
| 847 void createAndDispatchPointerEvent(const AtomicString& mouseEventName, | 848 void createAndDispatchPointerEvent(const AtomicString& mouseEventName, |
| 848 const PlatformMouseEvent&, | 849 const WebMouseEvent&, |
| 849 LocalDOMWindow* view); | 850 LocalDOMWindow* view); |
| 850 | 851 |
| 851 protected: | 852 protected: |
| 852 enum ConstructionType { | 853 enum ConstructionType { |
| 853 CreateOther = DefaultNodeFlags, | 854 CreateOther = DefaultNodeFlags, |
| 854 CreateText = DefaultNodeFlags | IsTextFlag, | 855 CreateText = DefaultNodeFlags | IsTextFlag, |
| 855 CreateContainer = | 856 CreateContainer = |
| 856 DefaultNodeFlags | ChildNeedsStyleRecalcFlag | IsContainerFlag, | 857 DefaultNodeFlags | ChildNeedsStyleRecalcFlag | IsContainerFlag, |
| 857 CreateElement = CreateContainer | IsElementFlag, | 858 CreateElement = CreateContainer | IsElementFlag, |
| 858 CreateShadowRoot = | 859 CreateShadowRoot = |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 } // namespace blink | 1020 } // namespace blink |
| 1020 | 1021 |
| 1021 #ifndef NDEBUG | 1022 #ifndef NDEBUG |
| 1022 // Outside the WebCore namespace for ease of invocation from gdb. | 1023 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1023 void showNode(const blink::Node*); | 1024 void showNode(const blink::Node*); |
| 1024 void showTree(const blink::Node*); | 1025 void showTree(const blink::Node*); |
| 1025 void showNodePath(const blink::Node*); | 1026 void showNodePath(const blink::Node*); |
| 1026 #endif | 1027 #endif |
| 1027 | 1028 |
| 1028 #endif // Node_h | 1029 #endif // Node_h |
| OLD | NEW |