| 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 "bindings/core/v8/ScopedPersistent.h" | 8 #include "bindings/core/v8/ScopedPersistent.h" |
| 9 #include "bindings/core/v8/ScriptPromiseProperties.h" | 9 #include "bindings/core/v8/ScriptPromiseProperties.h" |
| 10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| 11 #include "wtf/Allocator.h" | 11 #include "wtf/Allocator.h" |
| 12 #include "wtf/PassOwnPtr.h" | 12 #include "wtf/PassOwnPtr.h" |
| 13 #include <v8.h> | 13 #include <v8.h> |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class ScriptState; | 17 class ScriptState; |
| 18 class ScriptWrappable; | 18 class ScriptWrappable; |
| 19 | 19 |
| 20 #define V8_HIDDEN_VALUES(V) \ | 20 #define V8_HIDDEN_VALUES(V) \ |
| 21 V(arrayBufferData) \ | |
| 22 V(privateScriptObjectIsInitialized) \ | 21 V(privateScriptObjectIsInitialized) \ |
| 23 V(customElementAttachedCallback) \ | 22 V(customElementAttachedCallback) \ |
| 24 V(customElementAttributeChangedCallback) \ | 23 V(customElementAttributeChangedCallback) \ |
| 25 V(customElementCreatedCallback) \ | 24 V(customElementCreatedCallback) \ |
| 26 V(customElementDetachedCallback) \ | 25 V(customElementDetachedCallback) \ |
| 27 V(customElementDocument) \ | 26 V(customElementDocument) \ |
| 28 V(customElementIsInterfacePrototypeObject) \ | 27 V(customElementIsInterfacePrototypeObject) \ |
| 29 V(customElementNamespaceURI) \ | 28 V(customElementNamespaceURI) \ |
| 30 V(customElementTagName) \ | 29 V(customElementTagName) \ |
| 31 V(customElementType) \ | 30 V(customElementType) \ |
| 32 V(customElementsRegistryMap) \ | 31 V(customElementsRegistryMap) \ |
| 33 V(callback) \ | 32 V(callback) \ |
| 34 V(condition) \ | 33 V(condition) \ |
| 35 V(data) \ | |
| 36 V(detail) \ | 34 V(detail) \ |
| 37 V(document) \ | 35 V(document) \ |
| 38 V(error) \ | 36 V(error) \ |
| 39 V(event) \ | 37 V(event) \ |
| 40 V(idbCursorRequest) \ | 38 V(idbCursorRequest) \ |
| 41 V(internalBodyStream) \ | 39 V(internalBodyStream) \ |
| 42 V(port1) \ | 40 V(port1) \ |
| 43 V(port2) \ | 41 V(port2) \ |
| 44 V(readableStreamReaderInResponse) \ | 42 V(readableStreamReaderInResponse) \ |
| 45 V(state) \ | 43 V(state) \ |
| 46 V(stringData) \ | |
| 47 V(testInterfaces) \ | 44 V(testInterfaces) \ |
| 48 V(thenableHiddenPromise) \ | 45 V(thenableHiddenPromise) \ |
| 49 V(toStringString) \ | 46 V(toStringString) \ |
| 50 V(injectedScriptNative) \ | 47 V(injectedScriptNative) \ |
| 51 V(webgl2DTextures) \ | 48 V(webgl2DTextures) \ |
| 52 V(webgl2DArrayTextures) \ | 49 V(webgl2DArrayTextures) \ |
| 53 V(webgl3DTextures) \ | 50 V(webgl3DTextures) \ |
| 54 V(webglAttachments) \ | 51 V(webglAttachments) \ |
| 55 V(webglBuffers) \ | 52 V(webglBuffers) \ |
| 56 V(webglCubeMapTextures) \ | 53 V(webglCubeMapTextures) \ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 81 V8HiddenValue() { } | 78 V8HiddenValue() { } |
| 82 | 79 |
| 83 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; | 80 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; |
| 84 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); | 81 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); |
| 85 #undef V8_DECLARE_FIELD | 82 #undef V8_DECLARE_FIELD |
| 86 }; | 83 }; |
| 87 | 84 |
| 88 } // namespace blink | 85 } // namespace blink |
| 89 | 86 |
| 90 #endif // V8HiddenValue_h | 87 #endif // V8HiddenValue_h |
| OLD | NEW |