OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class Event; | 40 class Event; |
41 class EventTarget; | 41 class EventTarget; |
42 class Node; | 42 class Node; |
43 class TouchEvent; | 43 class TouchEvent; |
44 class TouchList; | 44 class TouchList; |
45 class TreeScope; | 45 class TreeScope; |
46 | 46 |
47 class CORE_EXPORT EventPath final : public GarbageCollected<EventPath> { | 47 class CORE_EXPORT EventPath final : public GarbageCollectedFinalized<EventPath>
{ |
48 WTF_MAKE_NONCOPYABLE(EventPath); | 48 WTF_MAKE_NONCOPYABLE(EventPath); |
49 public: | 49 public: |
50 explicit EventPath(Node&, Event* = nullptr); | 50 explicit EventPath(Node&, Event* = nullptr); |
51 | 51 |
52 void initializeWith(Node&, Event*); | 52 void initializeWith(Node&, Event*); |
53 | 53 |
54 NodeEventContext& operator[](size_t index) { return m_nodeEventContexts[inde
x]; } | 54 NodeEventContext& operator[](size_t index) { return m_nodeEventContexts[inde
x]; } |
55 const NodeEventContext& operator[](size_t index) const { return m_nodeEventC
ontexts[index]; } | 55 const NodeEventContext& operator[](size_t index) const { return m_nodeEventC
ontexts[index]; } |
56 NodeEventContext& at(size_t index) { return m_nodeEventContexts[index]; } | 56 NodeEventContext& at(size_t index) { return m_nodeEventContexts[index]; } |
57 NodeEventContext& last() { return m_nodeEventContexts[size() - 1]; } | 57 NodeEventContext& last() { return m_nodeEventContexts[size() - 1]; } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 HeapVector<NodeEventContext> m_nodeEventContexts; | 104 HeapVector<NodeEventContext> m_nodeEventContexts; |
105 Member<Node> m_node; | 105 Member<Node> m_node; |
106 Member<Event> m_event; | 106 Member<Event> m_event; |
107 HeapVector<Member<TreeScopeEventContext>> m_treeScopeEventContexts; | 107 HeapVector<Member<TreeScopeEventContext>> m_treeScopeEventContexts; |
108 Member<WindowEventContext> m_windowEventContext; | 108 Member<WindowEventContext> m_windowEventContext; |
109 }; | 109 }; |
110 | 110 |
111 } // namespace blink | 111 } // namespace blink |
112 | 112 |
113 #endif | 113 #endif |
OLD | NEW |