| 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 <v8.h> |
| 9 #include <memory> |
| 8 #include "bindings/core/v8/ScopedPersistent.h" | 10 #include "bindings/core/v8/ScopedPersistent.h" |
| 9 #include "bindings/core/v8/ScriptPromiseProperties.h" | 11 #include "bindings/core/v8/ScriptPromiseProperties.h" |
| 10 #include "core/CoreExport.h" | 12 #include "core/CoreExport.h" |
| 11 #include "wtf/Allocator.h" | 13 #include "wtf/Allocator.h" |
| 12 #include "wtf/PtrUtil.h" | 14 #include "wtf/PtrUtil.h" |
| 13 #include <memory> | |
| 14 #include <v8.h> | |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class ScriptState; | 18 class ScriptState; |
| 19 class ScriptWrappable; | 19 class ScriptWrappable; |
| 20 | 20 |
| 21 #define V8_HIDDEN_VALUES(V) \ | 21 #define V8_HIDDEN_VALUES(V) \ |
| 22 V(customElementAttachedCallback) \ | 22 V(customElementAttachedCallback) \ |
| 23 V(customElementAttributeChangedCallback) \ | 23 V(customElementAttributeChangedCallback) \ |
| 24 V(customElementCreatedCallback) \ | 24 V(customElementCreatedCallback) \ |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 V8HiddenValue() {} | 77 V8HiddenValue() {} |
| 78 | 78 |
| 79 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; | 79 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; |
| 80 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); | 80 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); |
| 81 #undef V8_DECLARE_FIELD | 81 #undef V8_DECLARE_FIELD |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace blink | 84 } // namespace blink |
| 85 | 85 |
| 86 #endif // V8HiddenValue_h | 86 #endif // V8HiddenValue_h |
| OLD | NEW |