| 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> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "bindings/core/v8/ScopedPersistent.h" | 10 #include "bindings/core/v8/ScopedPersistent.h" |
| 11 #include "bindings/core/v8/ScriptPromiseProperties.h" | 11 #include "bindings/core/v8/ScriptPromiseProperties.h" |
| 12 #include "core/CoreExport.h" | 12 #include "core/CoreExport.h" |
| 13 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
| 14 #include "wtf/Allocator.h" | 14 #include "wtf/Allocator.h" |
| 15 #include "wtf/PtrUtil.h" | 15 #include "wtf/PtrUtil.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class ScriptState; | 19 class ScriptState; |
| 20 class ScriptWrappable; | 20 class ScriptWrappable; |
| 21 | 21 |
| 22 #define V8_HIDDEN_VALUES(V) \ | 22 #define V8_HIDDEN_VALUES(V) \ |
| 23 V(customElementAttachedCallback) \ | 23 V(customElementAttachedCallback) \ |
| 24 V(customElementAttributeChangedCallback) \ | 24 V(customElementAttributeChangedCallback) \ |
| 25 V(customElementCreatedCallback) \ | 25 V(customElementCreatedCallback) \ |
| 26 V(customElementDetachedCallback) \ | 26 V(customElementDetachedCallback) \ |
| 27 V(customElementDocument) \ | |
| 28 V(customElementIsInterfacePrototypeObject) \ | |
| 29 V(customElementNamespaceURI) \ | |
| 30 V(customElementTagName) \ | |
| 31 V(customElementType) \ | |
| 32 V(customElementsRegistryMap) \ | 27 V(customElementsRegistryMap) \ |
| 33 V(event) \ | 28 V(event) \ |
| 34 V(idbCursorRequest) \ | 29 V(idbCursorRequest) \ |
| 35 V(internalBodyBuffer) \ | 30 V(internalBodyBuffer) \ |
| 36 V(internalBodyStream) \ | 31 V(internalBodyStream) \ |
| 37 V(port1) \ | 32 V(port1) \ |
| 38 V(port2) \ | 33 V(port2) \ |
| 39 V(requestInFetchEvent) \ | 34 V(requestInFetchEvent) \ |
| 40 V(state) \ | 35 V(state) \ |
| 41 V(testInterfaces) \ | 36 V(testInterfaces) \ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 V8HiddenValue() {} | 73 V8HiddenValue() {} |
| 79 | 74 |
| 80 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; | 75 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; |
| 81 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); | 76 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); |
| 82 #undef V8_DECLARE_FIELD | 77 #undef V8_DECLARE_FIELD |
| 83 }; | 78 }; |
| 84 | 79 |
| 85 } // namespace blink | 80 } // namespace blink |
| 86 | 81 |
| 87 #endif // V8HiddenValue_h | 82 #endif // V8HiddenValue_h |
| OLD | NEW |