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

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

Issue 2777223005: [Bindings] Replace V8HiddenValue with V8PrivateProperty in V0CustomElementConstructorBuilder (Closed)
Patch Set: . Created 3 years, 8 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 | « third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h ('k') | no next file » | 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 <memory> 8 #include <memory>
9 9
10 #include "bindings/core/v8/ScriptPromiseProperties.h" 10 #include "bindings/core/v8/ScriptPromiseProperties.h"
11 #include "bindings/core/v8/V8BindingMacros.h" 11 #include "bindings/core/v8/V8BindingMacros.h"
12 #include "bindings/core/v8/V8PerIsolateData.h" 12 #include "bindings/core/v8/V8PerIsolateData.h"
13 #include "core/CoreExport.h" 13 #include "core/CoreExport.h"
14 #include "v8/include/v8.h" 14 #include "v8/include/v8.h"
15 #include "wtf/Allocator.h" 15 #include "wtf/Allocator.h"
16 #include "wtf/PtrUtil.h" 16 #include "wtf/PtrUtil.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class ScriptState; 20 class ScriptState;
21 class ScriptWrappable; 21 class ScriptWrappable;
22 22
23 // Apply |X| for each pair of (InterfaceName, PrivateKeyName). 23 // Apply |X| for each pair of (InterfaceName, PrivateKeyName).
24 #define V8_PRIVATE_PROPERTY_FOR_EACH(X) \ 24 #define V8_PRIVATE_PROPERTY_FOR_EACH(X) \
25 X(CustomEvent, Detail) \ 25 X(CustomEvent, Detail) \
26 X(CustomElement, AdoptedCallback) \
27 X(CustomElement, AttributeChangedCallback) \
26 X(CustomElement, ConnectedCallback) \ 28 X(CustomElement, ConnectedCallback) \
27 X(CustomElement, DisconnectedCallback) \ 29 X(CustomElement, DisconnectedCallback) \
28 X(CustomElement, AdoptedCallback) \ 30 X(CustomElement, Document) \
29 X(CustomElement, AttributeChangedCallback) \ 31 X(CustomElement, IsInterfacePrototypeObject) \
32 X(CustomElement, NamespaceURI) \
33 X(CustomElement, TagName) \
34 X(CustomElement, Type) \
30 X(DOMException, Error) \ 35 X(DOMException, Error) \
31 X(ErrorEvent, Error) \ 36 X(ErrorEvent, Error) \
32 X(IDBObserver, Callback) \ 37 X(IDBObserver, Callback) \
33 X(IntersectionObserver, Callback) \ 38 X(IntersectionObserver, Callback) \
34 X(MessageEvent, CachedData) \ 39 X(MessageEvent, CachedData) \
35 X(MutationObserver, Callback) \ 40 X(MutationObserver, Callback) \
36 X(NamedConstructor, Initialized) \ 41 X(NamedConstructor, Initialized) \
37 X(PerformanceObserver, Callback) \ 42 X(PerformanceObserver, Callback) \
38 X(SameObject, NotificationActions) \ 43 X(SameObject, NotificationActions) \
39 X(SameObject, NotificationData) \ 44 X(SameObject, NotificationData) \
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 #define V8_PRIVATE_PROPERTY_DECLARE_MEMBER(InterfaceName, KeyName) \ 174 #define V8_PRIVATE_PROPERTY_DECLARE_MEMBER(InterfaceName, KeyName) \
170 v8::Eternal<v8::Private> V8_PRIVATE_PROPERTY_MEMBER_NAME( \ 175 v8::Eternal<v8::Private> V8_PRIVATE_PROPERTY_MEMBER_NAME( \
171 InterfaceName, KeyName); // NOLINT(readability/naming/underscores) 176 InterfaceName, KeyName); // NOLINT(readability/naming/underscores)
172 V8_PRIVATE_PROPERTY_FOR_EACH(V8_PRIVATE_PROPERTY_DECLARE_MEMBER) 177 V8_PRIVATE_PROPERTY_FOR_EACH(V8_PRIVATE_PROPERTY_DECLARE_MEMBER)
173 #undef V8_PRIVATE_PROPERTY_DECLARE_MEMBER 178 #undef V8_PRIVATE_PROPERTY_DECLARE_MEMBER
174 }; 179 };
175 180
176 } // namespace blink 181 } // namespace blink
177 182
178 #endif // V8PrivateProperty_h 183 #endif // V8PrivateProperty_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698