| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 V8PrivateProperty_h | 5 #ifndef V8PrivateProperty_h |
| 6 #define V8PrivateProperty_h | 6 #define V8PrivateProperty_h |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "platform/PlatformExport.h" | 10 #include "platform/PlatformExport.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 X(MutationObserver, Callback) \ | 54 X(MutationObserver, Callback) \ |
| 55 X(NamedConstructor, Initialized) \ | 55 X(NamedConstructor, Initialized) \ |
| 56 X(PerformanceObserver, Callback) \ | 56 X(PerformanceObserver, Callback) \ |
| 57 X(PopStateEvent, State) \ | 57 X(PopStateEvent, State) \ |
| 58 X(SameObject, DetectedBarcodeCornerPoints) \ | 58 X(SameObject, DetectedBarcodeCornerPoints) \ |
| 59 X(SameObject, DetectedFaceLandmarks) \ | 59 X(SameObject, DetectedFaceLandmarks) \ |
| 60 X(SameObject, NotificationActions) \ | 60 X(SameObject, NotificationActions) \ |
| 61 X(SameObject, NotificationData) \ | 61 X(SameObject, NotificationData) \ |
| 62 X(SameObject, NotificationVibrate) \ | 62 X(SameObject, NotificationVibrate) \ |
| 63 X(SameObject, PerformanceLongTaskTimingAttribution) \ | 63 X(SameObject, PerformanceLongTaskTimingAttribution) \ |
| 64 X(SameObject, PushManagerSupportedContentEncodings) \ |
| 64 SCRIPT_PROMISE_PROPERTIES(X, Promise) \ | 65 SCRIPT_PROMISE_PROPERTIES(X, Promise) \ |
| 65 SCRIPT_PROMISE_PROPERTIES(X, Resolver) | 66 SCRIPT_PROMISE_PROPERTIES(X, Resolver) |
| 66 | 67 |
| 67 // The getter's name for a private property. | 68 // The getter's name for a private property. |
| 68 #define V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, PrivateKeyName) \ | 69 #define V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, PrivateKeyName) \ |
| 69 Get##InterfaceName##PrivateKeyName | 70 Get##InterfaceName##PrivateKeyName |
| 70 | 71 |
| 71 // The member variable's name for a private property. | 72 // The member variable's name for a private property. |
| 72 #define V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, PrivateKeyName) \ | 73 #define V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, PrivateKeyName) \ |
| 73 m_symbol##InterfaceName##PrivateKeyName | 74 m_symbol##InterfaceName##PrivateKeyName |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // TODO(peria): Do not use this specialized hack for | 216 // TODO(peria): Do not use this specialized hack for |
| 216 // Window#DocumentCachedAccessor. This is required to put v8::Private key in | 217 // Window#DocumentCachedAccessor. This is required to put v8::Private key in |
| 217 // a snapshot, and it cannot be a v8::Eternal<> due to V8 serializer's | 218 // a snapshot, and it cannot be a v8::Eternal<> due to V8 serializer's |
| 218 // requirement. | 219 // requirement. |
| 219 ScopedPersistent<v8::Private> symbol_window_document_cached_accessor_; | 220 ScopedPersistent<v8::Private> symbol_window_document_cached_accessor_; |
| 220 }; | 221 }; |
| 221 | 222 |
| 222 } // namespace blink | 223 } // namespace blink |
| 223 | 224 |
| 224 #endif // V8PrivateProperty_h | 225 #endif // V8PrivateProperty_h |
| OLD | NEW |