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

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

Issue 2161003002: CustomElements: upgrade element patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upgrade-element
Patch Set: RegistryTest update, removed setting element`s state to custom in the test Created 4 years, 4 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"
(...skipping 28 matching lines...) Expand all
39 const HashSet<AtomicString>& observedAttributes); 39 const HashSet<AtomicString>& observedAttributes);
40 40
41 virtual ~ScriptCustomElementDefinition() = default; 41 virtual ~ScriptCustomElementDefinition() = default;
42 42
43 v8::Local<v8::Object> constructor() const; 43 v8::Local<v8::Object> constructor() const;
44 v8::Local<v8::Object> prototype() const; 44 v8::Local<v8::Object> prototype() const;
45 45
46 HTMLElement* createElementSync(Document&, const QualifiedName&) override; 46 HTMLElement* createElementSync(Document&, const QualifiedName&) override;
47 HTMLElement* createElementSync(Document&, const QualifiedName&, ExceptionSta te&) override; 47 HTMLElement* createElementSync(Document&, const QualifiedName&, ExceptionSta te&) override;
48 48
49 void fireErrorEvent(
50 ScriptState*,
51 const String& message,
52 v8::Local<v8::Value> exception,
53 std::unique_ptr<SourceLocation>);
54
49 bool hasConnectedCallback() const override; 55 bool hasConnectedCallback() const override;
50 bool hasDisconnectedCallback() const override; 56 bool hasDisconnectedCallback() const override;
51 57
52 void runConnectedCallback(Element*) override; 58 void runConnectedCallback(Element*) override;
53 void runDisconnectedCallback(Element*) override; 59 void runDisconnectedCallback(Element*) override;
54 void runAttributeChangedCallback(Element*, const QualifiedName&, 60 void runAttributeChangedCallback(Element*, const QualifiedName&,
55 const AtomicString& oldValue, const AtomicString& newValue) override; 61 const AtomicString& oldValue, const AtomicString& newValue) override;
56 62
57 private: 63 private:
58 ScriptCustomElementDefinition( 64 ScriptCustomElementDefinition(
(...skipping 18 matching lines...) Expand all
77 ScopedPersistent<v8::Object> m_constructor; 83 ScopedPersistent<v8::Object> m_constructor;
78 ScopedPersistent<v8::Object> m_prototype; 84 ScopedPersistent<v8::Object> m_prototype;
79 ScopedPersistent<v8::Function> m_connectedCallback; 85 ScopedPersistent<v8::Function> m_connectedCallback;
80 ScopedPersistent<v8::Function> m_disconnectedCallback; 86 ScopedPersistent<v8::Function> m_disconnectedCallback;
81 ScopedPersistent<v8::Function> m_attributeChangedCallback; 87 ScopedPersistent<v8::Function> m_attributeChangedCallback;
82 }; 88 };
83 89
84 } // namespace blink 90 } // namespace blink
85 91
86 #endif // ScriptCustomElementDefinition_h 92 #endif // ScriptCustomElementDefinition_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698