OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2014 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 17 matching lines...) Expand all Loading... |
28 #define NodeEventContext_h | 28 #define NodeEventContext_h |
29 | 29 |
30 #include "core/events/TreeScopeEventContext.h" | 30 #include "core/events/TreeScopeEventContext.h" |
31 #include "wtf/PassRefPtr.h" | 31 #include "wtf/PassRefPtr.h" |
32 #include "wtf/RefPtr.h" | 32 #include "wtf/RefPtr.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 class EventTarget; | 36 class EventTarget; |
37 class Node; | 37 class Node; |
38 class NodeList; | |
39 class TouchEventContext; | 38 class TouchEventContext; |
40 | 39 |
41 class NodeEventContext { | 40 class NodeEventContext { |
42 ALLOW_ONLY_INLINE_ALLOCATION(); | 41 ALLOW_ONLY_INLINE_ALLOCATION(); |
43 public: | 42 public: |
44 // FIXME: Use ContainerNode instead of Node. | 43 // FIXME: Use ContainerNode instead of Node. |
45 NodeEventContext(PassRefPtrWillBeRawPtr<Node>, PassRefPtrWillBeRawPtr<EventT
arget> currentTarget); | 44 NodeEventContext(PassRefPtrWillBeRawPtr<Node>, PassRefPtrWillBeRawPtr<EventT
arget> currentTarget); |
46 ~NodeEventContext(); | 45 ~NodeEventContext(); |
47 void trace(Visitor*); | 46 void trace(Visitor*); |
48 | 47 |
(...skipping 13 matching lines...) Expand all Loading... |
62 RefPtrWillBeMember<Node> m_node; | 61 RefPtrWillBeMember<Node> m_node; |
63 RefPtrWillBeMember<EventTarget> m_currentTarget; | 62 RefPtrWillBeMember<EventTarget> m_currentTarget; |
64 RefPtrWillBeMember<TreeScopeEventContext> m_treeScopeEventContext; | 63 RefPtrWillBeMember<TreeScopeEventContext> m_treeScopeEventContext; |
65 }; | 64 }; |
66 | 65 |
67 } | 66 } |
68 | 67 |
69 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(WebCore::NodeEventContext); | 68 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(WebCore::NodeEventContext); |
70 | 69 |
71 #endif // NodeEventContext_h | 70 #endif // NodeEventContext_h |
OLD | NEW |