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

Side by Side Diff: sky/engine/core/events/TreeScopeEventContext.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 30 matching lines...) Expand all
41 class Node; 41 class Node;
42 template <typename NodeType> class StaticNodeTypeList; 42 template <typename NodeType> class StaticNodeTypeList;
43 typedef StaticNodeTypeList<Node> StaticNodeList; 43 typedef StaticNodeTypeList<Node> StaticNodeList;
44 class TouchEventContext; 44 class TouchEventContext;
45 class TreeScope; 45 class TreeScope;
46 46
47 class TreeScopeEventContext final : public RefCounted<TreeScopeEventContext> { 47 class TreeScopeEventContext final : public RefCounted<TreeScopeEventContext> {
48 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(TreeScopeEventContext); 48 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(TreeScopeEventContext);
49 public: 49 public:
50 static PassRefPtr<TreeScopeEventContext> create(TreeScope&); 50 static PassRefPtr<TreeScopeEventContext> create(TreeScope&);
51 void trace(Visitor*);
52 51
53 TreeScope& treeScope() const { return *m_treeScope; } 52 TreeScope& treeScope() const { return *m_treeScope; }
54 53
55 EventTarget* target() const { return m_target.get(); } 54 EventTarget* target() const { return m_target.get(); }
56 void setTarget(PassRefPtr<EventTarget>); 55 void setTarget(PassRefPtr<EventTarget>);
57 56
58 EventTarget* relatedTarget() const { return m_relatedTarget.get(); } 57 EventTarget* relatedTarget() const { return m_relatedTarget.get(); }
59 void setRelatedTarget(PassRefPtr<EventTarget>); 58 void setRelatedTarget(PassRefPtr<EventTarget>);
60 59
61 TouchEventContext* touchEventContext() const { return m_touchEventContext.ge t(); } 60 TouchEventContext* touchEventContext() const { return m_touchEventContext.ge t(); }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 111
113 inline bool TreeScopeEventContext::isInclusiveAncestorOf(const TreeScopeEventCon text& other) 112 inline bool TreeScopeEventContext::isInclusiveAncestorOf(const TreeScopeEventCon text& other)
114 { 113 {
115 ASSERT(m_preOrder != -1 && m_postOrder != -1 && other.m_preOrder != -1 && ot her.m_postOrder != -1); 114 ASSERT(m_preOrder != -1 && m_postOrder != -1 && other.m_preOrder != -1 && ot her.m_postOrder != -1);
116 return m_preOrder <= other.m_preOrder && other.m_postOrder <= m_postOrder; 115 return m_preOrder <= other.m_preOrder && other.m_postOrder <= m_postOrder;
117 } 116 }
118 117
119 } 118 }
120 119
121 #endif // TreeScopeEventContext_h 120 #endif // TreeScopeEventContext_h
OLDNEW
« no previous file with comments | « sky/engine/core/events/TransitionEvent.cpp ('k') | sky/engine/core/events/TreeScopeEventContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698