OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8HiddenValue_h | 5 #ifndef V8HiddenValue_h |
6 #define V8HiddenValue_h | 6 #define V8HiddenValue_h |
7 | 7 |
8 #include <memory> | |
9 | |
10 #include "bindings/core/v8/ScopedPersistent.h" | 8 #include "bindings/core/v8/ScopedPersistent.h" |
11 #include "bindings/core/v8/ScriptPromiseProperties.h" | 9 #include "bindings/core/v8/ScriptPromiseProperties.h" |
12 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
13 #include "v8/include/v8.h" | |
14 #include "wtf/Allocator.h" | 11 #include "wtf/Allocator.h" |
15 #include "wtf/PtrUtil.h" | 12 #include "wtf/PtrUtil.h" |
| 13 #include <memory> |
| 14 #include <v8.h> |
16 | 15 |
17 namespace blink { | 16 namespace blink { |
18 | 17 |
19 class ScriptState; | 18 class ScriptState; |
20 class ScriptWrappable; | 19 class ScriptWrappable; |
21 | 20 |
22 #define V8_HIDDEN_VALUES(V) \ | 21 #define V8_HIDDEN_VALUES(V) \ |
23 V(customElementAttachedCallback) \ | 22 V(customElementAttachedCallback) \ |
24 V(customElementAttributeChangedCallback) \ | 23 V(customElementAttributeChangedCallback) \ |
25 V(customElementCreatedCallback) \ | 24 V(customElementCreatedCallback) \ |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 V8HiddenValue() {} | 77 V8HiddenValue() {} |
79 | 78 |
80 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; | 79 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; |
81 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); | 80 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); |
82 #undef V8_DECLARE_FIELD | 81 #undef V8_DECLARE_FIELD |
83 }; | 82 }; |
84 | 83 |
85 } // namespace blink | 84 } // namespace blink |
86 | 85 |
87 #endif // V8HiddenValue_h | 86 #endif // V8HiddenValue_h |
OLD | NEW |