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

Side by Side Diff: third_party/WebKit/Source/core/events/TreeScopeEventContext.h

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 13 matching lines...) Expand all
24 * 24 *
25 */ 25 */
26 26
27 #ifndef TreeScopeEventContext_h 27 #ifndef TreeScopeEventContext_h
28 #define TreeScopeEventContext_h 28 #define TreeScopeEventContext_h
29 29
30 #include "core/CoreExport.h" 30 #include "core/CoreExport.h"
31 #include "core/dom/Node.h" 31 #include "core/dom/Node.h"
32 #include "core/dom/TreeScope.h" 32 #include "core/dom/TreeScope.h"
33 #include "core/events/EventTarget.h" 33 #include "core/events/EventTarget.h"
34 #include "core/events/TouchEventContext.h"
34 #include "wtf/PassRefPtr.h" 35 #include "wtf/PassRefPtr.h"
35 #include "wtf/RefPtr.h" 36 #include "wtf/RefPtr.h"
36 #include "wtf/Vector.h" 37 #include "wtf/Vector.h"
37 38
38 namespace blink { 39 namespace blink {
39 40
40 class EventPath; 41 class EventPath;
41 class EventTarget; 42 class EventTarget;
42 class Node; 43 class Node;
43 template <typename NodeType> class StaticNodeTypeList; 44 template <typename NodeType> class StaticNodeTypeList;
44 using StaticNodeList = StaticNodeTypeList<Node>; 45 using StaticNodeList = StaticNodeTypeList<Node>;
45 class TouchEventContext;
46 class TreeScope; 46 class TreeScope;
47 47
48 class CORE_EXPORT TreeScopeEventContext final : public RefCountedWillBeGarbageCo llected<TreeScopeEventContext> { 48 class CORE_EXPORT TreeScopeEventContext final : public RefCountedWillBeGarbageCo llected<TreeScopeEventContext> {
49 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(TreeScopeEventContext); 49 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(TreeScopeEventContext);
50 public: 50 public:
51 static PassRefPtrWillBeRawPtr<TreeScopeEventContext> create(TreeScope&); 51 static PassRefPtrWillBeRawPtr<TreeScopeEventContext> create(TreeScope&);
52 DECLARE_TRACE(); 52 DECLARE_TRACE();
53 53
54 TreeScope& treeScope() const { return *m_treeScope; } 54 TreeScope& treeScope() const { return *m_treeScope; }
55 Node& rootNode() const { return *m_rootNode; } 55 Node& rootNode() const { return *m_rootNode; }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 { 139 {
140 ASSERT(m_preOrder != -1 && m_postOrder != -1 && other.m_preOrder != -1 && ot her.m_postOrder != -1); 140 ASSERT(m_preOrder != -1 && m_postOrder != -1 && other.m_preOrder != -1 && ot her.m_postOrder != -1);
141 return (m_preOrder < other.m_preOrder && m_postOrder < other.m_preOrder) 141 return (m_preOrder < other.m_preOrder && m_postOrder < other.m_preOrder)
142 || (m_preOrder > other.m_preOrder && m_preOrder > other.m_postOrder); 142 || (m_preOrder > other.m_preOrder && m_preOrder > other.m_postOrder);
143 } 143 }
144 #endif 144 #endif
145 145
146 } 146 }
147 147
148 #endif // TreeScopeEventContext_h 148 #endif // TreeScopeEventContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698