chromium/third_party/blink/renderer/bindings/core/v8/script_custom_element_definition.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/bindings/core/v8/script_custom_element_definition.h"

#include "third_party/blink/renderer/bindings/core/v8/script_custom_element_definition_data.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_custom_element_adopted_callback.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_custom_element_attribute_changed_callback.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_custom_element_constructor.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_custom_element_form_associated_callback.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_custom_element_form_disabled_callback.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_custom_element_form_state_restore_callback.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_element.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_form_state_restore_mode.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_function.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_script_runner.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_throw_dom_exception.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_void_function.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/events/error_event.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/html/custom/custom_element.h"
#include "third_party/blink/renderer/core/html/custom/custom_element_registry.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/platform/bindings/v8_throw_exception.h"

namespace blink {

ScriptCustomElementDefinition::ScriptCustomElementDefinition(
    const ScriptCustomElementDefinitionData& data,
    const CustomElementDescriptor& descriptor)
    :{}

void ScriptCustomElementDefinition::Trace(Visitor* visitor) const {}

HTMLElement* ScriptCustomElementDefinition::CreateAutonomousCustomElementSync(
    Document& document,
    const QualifiedName& tag_name) {}

// https://html.spec.whatwg.org/C/#upgrades
bool ScriptCustomElementDefinition::RunConstructor(Element& element) {}

Element* ScriptCustomElementDefinition::CallConstructor() {}

v8::Local<v8::Object> ScriptCustomElementDefinition::Constructor() const {}

// CustomElementDefinition
ScriptValue ScriptCustomElementDefinition::GetConstructorForScript() {}

bool ScriptCustomElementDefinition::HasConnectedCallback() const {}

bool ScriptCustomElementDefinition::HasDisconnectedCallback() const {}

bool ScriptCustomElementDefinition::HasAdoptedCallback() const {}

bool ScriptCustomElementDefinition::HasFormAssociatedCallback() const {}

bool ScriptCustomElementDefinition::HasFormResetCallback() const {}

bool ScriptCustomElementDefinition::HasFormDisabledCallback() const {}

bool ScriptCustomElementDefinition::HasFormStateRestoreCallback() const {}

void ScriptCustomElementDefinition::RunConnectedCallback(Element& element) {}

void ScriptCustomElementDefinition::RunDisconnectedCallback(Element& element) {}

void ScriptCustomElementDefinition::RunAdoptedCallback(Element& element,
                                                       Document& old_owner,
                                                       Document& new_owner) {}

void ScriptCustomElementDefinition::RunAttributeChangedCallback(
    Element& element,
    const QualifiedName& name,
    const AtomicString& old_value,
    const AtomicString& new_value) {}

void ScriptCustomElementDefinition::RunFormAssociatedCallback(
    Element& element,
    HTMLFormElement* nullable_form) {}

void ScriptCustomElementDefinition::RunFormResetCallback(Element& element) {}

void ScriptCustomElementDefinition::RunFormDisabledCallback(Element& element,
                                                            bool is_disabled) {}

void ScriptCustomElementDefinition::RunFormStateRestoreCallback(
    Element& element,
    const V8ControlValue* value,
    const String& mode) {}

}  // namespace blink