Chromium Code Reviews| 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 "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 "bindings/core/v8/V8BindingMacros.h" | 10 #include "bindings/core/v8/V8BindingMacros.h" |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 X(ErrorEvent, Error) \ | 27 X(ErrorEvent, Error) \ |
| 28 X(IDBObserver, Callback) \ | 28 X(IDBObserver, Callback) \ |
| 29 X(IntersectionObserver, Callback) \ | 29 X(IntersectionObserver, Callback) \ |
| 30 X(MessageEvent, CachedData) \ | 30 X(MessageEvent, CachedData) \ |
| 31 X(MutationObserver, Callback) \ | 31 X(MutationObserver, Callback) \ |
| 32 X(PerformanceObserver, Callback) \ | 32 X(PerformanceObserver, Callback) \ |
| 33 X(PrivateScriptRunner, IsInitialized) \ | 33 X(PrivateScriptRunner, IsInitialized) \ |
| 34 X(SameObject, NotificationActions) \ | 34 X(SameObject, NotificationActions) \ |
| 35 X(SameObject, NotificationData) \ | 35 X(SameObject, NotificationData) \ |
| 36 X(SameObject, NotificationVibrate) \ | 36 X(SameObject, NotificationVibrate) \ |
| 37 X(Test, Callback) \ | |
|
Yuki
2016/09/07 08:27:12
Are you really using this private property?
If no
lkawai
2016/09/08 09:11:31
Acknowledged.
lkawai
2016/09/08 09:27:13
Done.
| |
| 37 X(V8NodeFilterCondition, Filter) | 38 X(V8NodeFilterCondition, Filter) |
| 38 | 39 |
| 39 // The getter's name for a private property. | 40 // The getter's name for a private property. |
| 40 #define V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, PrivateKeyName) \ | 41 #define V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, PrivateKeyName) \ |
| 41 get##InterfaceName##PrivateKeyName | 42 get##InterfaceName##PrivateKeyName |
| 42 | 43 |
| 43 // The member variable's name for a private property. | 44 // The member variable's name for a private property. |
| 44 #define V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, PrivateKeyName) \ | 45 #define V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, PrivateKeyName) \ |
| 45 m_symbol##InterfaceName##PrivateKeyName | 46 m_symbol##InterfaceName##PrivateKeyName |
| 46 | 47 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 | 152 |
| 152 #define V8_PRIVATE_PROPERTY_DECLARE_MEMBER(InterfaceName, KeyName) \ | 153 #define V8_PRIVATE_PROPERTY_DECLARE_MEMBER(InterfaceName, KeyName) \ |
| 153 ScopedPersistent<v8::Private> V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, KeyName); // NOLINT(readability/naming/underscores) | 154 ScopedPersistent<v8::Private> V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, KeyName); // NOLINT(readability/naming/underscores) |
| 154 V8_PRIVATE_PROPERTY_FOR_EACH(V8_PRIVATE_PROPERTY_DECLARE_MEMBER) | 155 V8_PRIVATE_PROPERTY_FOR_EACH(V8_PRIVATE_PROPERTY_DECLARE_MEMBER) |
| 155 #undef V8_PRIVATE_PROPERTY_DECLARE_MEMBER | 156 #undef V8_PRIVATE_PROPERTY_DECLARE_MEMBER |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace blink | 159 } // namespace blink |
| 159 | 160 |
| 160 #endif // V8PrivateProperty_h | 161 #endif // V8PrivateProperty_h |
| OLD | NEW |