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

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

Issue 2277713002: Rename CustomElementsRegistry to CustomElementRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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
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 ScriptCustomElementDefinition_h 5 #ifndef ScriptCustomElementDefinition_h
6 #define ScriptCustomElementDefinition_h 6 #define ScriptCustomElementDefinition_h
7 7
8 #include "bindings/core/v8/ScopedPersistent.h" 8 #include "bindings/core/v8/ScopedPersistent.h"
9 #include "bindings/core/v8/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
10 #include "core/CoreExport.h" 10 #include "core/CoreExport.h"
11 #include "core/dom/custom/CustomElementDefinition.h" 11 #include "core/dom/custom/CustomElementDefinition.h"
12 #include "v8.h" 12 #include "v8.h"
13 #include "wtf/Noncopyable.h" 13 #include "wtf/Noncopyable.h"
14 #include "wtf/RefPtr.h" 14 #include "wtf/RefPtr.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class CustomElementDescriptor; 18 class CustomElementDescriptor;
19 class CustomElementsRegistry; 19 class CustomElementRegistry;
20 20
21 class CORE_EXPORT ScriptCustomElementDefinition final : 21 class CORE_EXPORT ScriptCustomElementDefinition final :
22 public CustomElementDefinition { 22 public CustomElementDefinition {
23 WTF_MAKE_NONCOPYABLE(ScriptCustomElementDefinition); 23 WTF_MAKE_NONCOPYABLE(ScriptCustomElementDefinition);
24 public: 24 public:
25 static ScriptCustomElementDefinition* forConstructor( 25 static ScriptCustomElementDefinition* forConstructor(
26 ScriptState*, 26 ScriptState*,
27 CustomElementsRegistry*, 27 CustomElementRegistry*,
28 const v8::Local<v8::Value>& constructor); 28 const v8::Local<v8::Value>& constructor);
29 29
30 static ScriptCustomElementDefinition* create( 30 static ScriptCustomElementDefinition* create(
31 ScriptState*, 31 ScriptState*,
32 CustomElementsRegistry*, 32 CustomElementRegistry*,
33 const CustomElementDescriptor&, 33 const CustomElementDescriptor&,
34 const v8::Local<v8::Object>& constructor, 34 const v8::Local<v8::Object>& constructor,
35 const v8::Local<v8::Object>& prototype, 35 const v8::Local<v8::Object>& prototype,
36 const v8::Local<v8::Function>& connectedCallback, 36 const v8::Local<v8::Function>& connectedCallback,
37 const v8::Local<v8::Function>& disconnectedCallback, 37 const v8::Local<v8::Function>& disconnectedCallback,
38 const v8::Local<v8::Function>& adoptedCallback, 38 const v8::Local<v8::Function>& adoptedCallback,
39 const v8::Local<v8::Function>& attributeChangedCallback, 39 const v8::Local<v8::Function>& attributeChangedCallback,
40 const HashSet<AtomicString>& observedAttributes); 40 const HashSet<AtomicString>& observedAttributes);
41 41
42 virtual ~ScriptCustomElementDefinition() = default; 42 virtual ~ScriptCustomElementDefinition() = default;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 ScopedPersistent<v8::Object> m_prototype; 82 ScopedPersistent<v8::Object> m_prototype;
83 ScopedPersistent<v8::Function> m_connectedCallback; 83 ScopedPersistent<v8::Function> m_connectedCallback;
84 ScopedPersistent<v8::Function> m_disconnectedCallback; 84 ScopedPersistent<v8::Function> m_disconnectedCallback;
85 ScopedPersistent<v8::Function> m_adoptedCallback; 85 ScopedPersistent<v8::Function> m_adoptedCallback;
86 ScopedPersistent<v8::Function> m_attributeChangedCallback; 86 ScopedPersistent<v8::Function> m_attributeChangedCallback;
87 }; 87 };
88 88
89 } // namespace blink 89 } // namespace blink
90 90
91 #endif // ScriptCustomElementDefinition_h 91 #endif // ScriptCustomElementDefinition_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698