Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h

Issue 2106843005: Use SaveSameObject for Notification.data as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-action-vibrate
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/notifications/Notification.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14 matching lines...) Expand all
25 X(CustomEvent, Detail) \ 25 X(CustomEvent, Detail) \
26 X(DOMException, Error) \ 26 X(DOMException, Error) \
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, NotificationVibrate) \ 36 X(SameObject, NotificationVibrate) \
36 X(V8NodeFilterCondition, Filter) 37 X(V8NodeFilterCondition, Filter)
37 38
38 // The getter's name for a private property. 39 // The getter's name for a private property.
39 #define V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, PrivateKeyName) \ 40 #define V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, PrivateKeyName) \
40 get##InterfaceName##PrivateKeyName 41 get##InterfaceName##PrivateKeyName
41 42
42 // The member variable's name for a private property. 43 // The member variable's name for a private property.
43 #define V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, PrivateKeyName) \ 44 #define V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, PrivateKeyName) \
44 m_symbol##InterfaceName##PrivateKeyName 45 m_symbol##InterfaceName##PrivateKeyName
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 151
151 #define V8_PRIVATE_PROPERTY_DECLARE_MEMBER(InterfaceName, KeyName) \ 152 #define V8_PRIVATE_PROPERTY_DECLARE_MEMBER(InterfaceName, KeyName) \
152 ScopedPersistent<v8::Private> V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, KeyName); // NOLINT(readability/naming/underscores) 153 ScopedPersistent<v8::Private> V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, KeyName); // NOLINT(readability/naming/underscores)
153 V8_PRIVATE_PROPERTY_FOR_EACH(V8_PRIVATE_PROPERTY_DECLARE_MEMBER) 154 V8_PRIVATE_PROPERTY_FOR_EACH(V8_PRIVATE_PROPERTY_DECLARE_MEMBER)
154 #undef V8_PRIVATE_PROPERTY_DECLARE_MEMBER 155 #undef V8_PRIVATE_PROPERTY_DECLARE_MEMBER
155 }; 156 };
156 157
157 } // namespace blink 158 } // namespace blink
158 159
159 #endif // V8PrivateProperty_h 160 #endif // V8PrivateProperty_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/notifications/Notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698