Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: sky/engine/core/events/NodeEventContext.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 25 matching lines...) Expand all
36 class EventTarget; 36 class EventTarget;
37 class Node; 37 class Node;
38 class TouchEventContext; 38 class TouchEventContext;
39 39
40 class NodeEventContext { 40 class NodeEventContext {
41 ALLOW_ONLY_INLINE_ALLOCATION(); 41 ALLOW_ONLY_INLINE_ALLOCATION();
42 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(NodeEventContext); 42 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(NodeEventContext);
43 public: 43 public:
44 // FIXME: Use ContainerNode instead of Node. 44 // FIXME: Use ContainerNode instead of Node.
45 NodeEventContext(PassRefPtr<Node>, PassRefPtr<EventTarget> currentTarget); 45 NodeEventContext(PassRefPtr<Node>, PassRefPtr<EventTarget> currentTarget);
46 void trace(Visitor*);
47 46
48 Node* node() const { return m_node.get(); } 47 Node* node() const { return m_node.get(); }
49 48
50 void setTreeScopeEventContext(PassRefPtr<TreeScopeEventContext> prpTreeScope EventContext) { m_treeScopeEventContext = prpTreeScopeEventContext; } 49 void setTreeScopeEventContext(PassRefPtr<TreeScopeEventContext> prpTreeScope EventContext) { m_treeScopeEventContext = prpTreeScopeEventContext; }
51 TreeScopeEventContext& treeScopeEventContext() { ASSERT(m_treeScopeEventCont ext); return *m_treeScopeEventContext; } 50 TreeScopeEventContext& treeScopeEventContext() { ASSERT(m_treeScopeEventCont ext); return *m_treeScopeEventContext; }
52 51
53 EventTarget* target() const { return m_treeScopeEventContext->target(); } 52 EventTarget* target() const { return m_treeScopeEventContext->target(); }
54 EventTarget* relatedTarget() const { return m_treeScopeEventContext->related Target(); } 53 EventTarget* relatedTarget() const { return m_treeScopeEventContext->related Target(); }
55 TouchEventContext* touchEventContext() const { return m_treeScopeEventContex t->touchEventContext(); } 54 TouchEventContext* touchEventContext() const { return m_treeScopeEventContex t->touchEventContext(); }
56 55
(...skipping 12 matching lines...) Expand all
69 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::NodeEventContext); 68 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::NodeEventContext);
70 #else 69 #else
71 namespace WTF { 70 namespace WTF {
72 template <> struct VectorTraits<blink::NodeEventContext> : SimpleClassVectorTrai ts<blink::NodeEventContext> { 71 template <> struct VectorTraits<blink::NodeEventContext> : SimpleClassVectorTrai ts<blink::NodeEventContext> {
73 static const bool needsDestruction = false; 72 static const bool needsDestruction = false;
74 }; 73 };
75 } 74 }
76 #endif 75 #endif
77 76
78 #endif // NodeEventContext_h 77 #endif // NodeEventContext_h
OLDNEW
« no previous file with comments | « sky/engine/core/events/MouseRelatedEvent.cpp ('k') | sky/engine/core/events/NodeEventContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698