summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/html/custom/custom_element_definition.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/custom/custom_element_definition.h')
-rw-r--r--chromium/third_party/blink/renderer/core/html/custom/custom_element_definition.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/custom/custom_element_definition.h b/chromium/third_party/blink/renderer/core/html/custom/custom_element_definition.h
index 760c9b76ce2..f94bf3ae33b 100644
--- a/chromium/third_party/blink/renderer/core/html/custom/custom_element_definition.h
+++ b/chromium/third_party/blink/renderer/core/html/custom/custom_element_definition.h
@@ -23,8 +23,14 @@ class Document;
class Element;
class ExceptionState;
class HTMLElement;
+class HTMLFormElement;
class QualifiedName;
+enum class FormAssociationFlag {
+ kNo,
+ kYes,
+};
+
class CORE_EXPORT CustomElementDefinition
: public GarbageCollectedFinalized<CustomElementDefinition>,
public NameClient {
@@ -68,6 +74,8 @@ class CORE_EXPORT CustomElementDefinition
virtual bool HasAdoptedCallback() const = 0;
bool HasAttributeChangedCallback(const QualifiedName&) const;
bool HasStyleAttributeChangedCallback() const;
+ virtual bool HasFormAssociatedCallback() const = 0;
+ virtual bool HasDisabledStateChangedCallback() const = 0;
virtual void RunConnectedCallback(Element*) = 0;
virtual void RunDisconnectedCallback(Element*) = 0;
@@ -78,6 +86,10 @@ class CORE_EXPORT CustomElementDefinition
const QualifiedName&,
const AtomicString& old_value,
const AtomicString& new_value) = 0;
+ virtual void RunFormAssociatedCallback(Element* element,
+ HTMLFormElement* nullable_form) = 0;
+ virtual void RunDisabledStateChangedCallback(Element* element,
+ bool is_disabled) = 0;
void EnqueueUpgradeReaction(Element*,
bool upgrade_invisible_elements = false);
@@ -103,6 +115,8 @@ class CORE_EXPORT CustomElementDefinition
bool HasDefaultStyleSheets() const {
return !default_style_sheets_.IsEmpty();
}
+ bool DisableInternals() const { return disable_internals_; }
+ bool IsFormAssociated() const { return is_form_associated_; }
class CORE_EXPORT ConstructionStackScope final {
STACK_ALLOCATED();
@@ -122,7 +136,9 @@ class CORE_EXPORT CustomElementDefinition
CustomElementDefinition(const CustomElementDescriptor&);
CustomElementDefinition(const CustomElementDescriptor&,
- const HashSet<AtomicString>& observed_attributes);
+ const HashSet<AtomicString>& observed_attributes,
+ const Vector<String>& disabled_features,
+ FormAssociationFlag form_association_flag);
void AddDefaultStylesTo(Element&);
@@ -139,6 +155,8 @@ class CORE_EXPORT CustomElementDefinition
HashSet<AtomicString> observed_attributes_;
bool has_style_attribute_changed_callback_;
bool added_default_style_sheet_ = false;
+ bool disable_internals_ = false;
+ bool is_form_associated_ = false;
HeapVector<Member<CSSStyleSheet>> default_style_sheets_;