chromium/third_party/blink/renderer/core/html/forms/html_form_control_element.cc

/*
 * Copyright (C) 1999 Lars Knoll ([email protected])
 *           (C) 1999 Antti Koivisto ([email protected])
 *           (C) 2001 Dirk Mueller ([email protected])
 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
 *           (C) 2006 Alexey Proskuryakov ([email protected])
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 *
 */

#include "third_party/blink/renderer/core/html/forms/html_form_control_element.h"

#include "third_party/blink/public/web/web_form_related_change_type.h"
#include "third_party/blink/renderer/core/accessibility/ax_object_cache.h"
#include "third_party/blink/renderer/core/css/selector_checker.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/element_traversal.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/dom/events/event_dispatch_forbidden_scope.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/dom/popover_data.h"
#include "third_party/blink/renderer/core/event_type_names.h"
#include "third_party/blink/renderer/core/events/command_event.h"
#include "third_party/blink/renderer/core/events/keyboard_event.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/html/forms/html_button_element.h"
#include "third_party/blink/renderer/core/html/forms/html_data_list_element.h"
#include "third_party/blink/renderer/core/html/forms/html_form_element.h"
#include "third_party/blink/renderer/core/html/forms/html_listbox_element.h"
#include "third_party/blink/renderer/core/html/forms/html_select_element.h"
#include "third_party/blink/renderer/core/html/forms/html_select_list_element.h"
#include "third_party/blink/renderer/core/html/forms/listed_element.h"
#include "third_party/blink/renderer/core/html/forms/validity_state.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/html/parser/html_parser_idioms.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/keywords.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"

namespace blink {

HTMLFormControlElement::HTMLFormControlElement(const QualifiedName& tag_name,
                                               Document& document)
    :{}

HTMLFormControlElement::~HTMLFormControlElement() = default;

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

String HTMLFormControlElement::formAction() const {}

void HTMLFormControlElement::setFormAction(const AtomicString& value) {}

String HTMLFormControlElement::formEnctype() const {}

void HTMLFormControlElement::setFormEnctype(const AtomicString& value) {}

String HTMLFormControlElement::formMethod() const {}

void HTMLFormControlElement::setFormMethod(const AtomicString& value) {}

bool HTMLFormControlElement::FormNoValidate() const {}

void HTMLFormControlElement::Reset() {}

void HTMLFormControlElement::AttachLayoutTree(AttachContext& context) {}

void HTMLFormControlElement::DetachLayoutTree(bool performing_reattach) {}

void HTMLFormControlElement::AttributeChanged(
    const AttributeModificationParams& params) {}

void HTMLFormControlElement::ParseAttribute(
    const AttributeModificationParams& params) {}

void HTMLFormControlElement::DisabledAttributeChanged() {}

void HTMLFormControlElement::RequiredAttributeChanged() {}

bool HTMLFormControlElement::IsReadOnly() const {}

bool HTMLFormControlElement::IsDisabledOrReadOnly() const {}

void HTMLFormControlElement::SetAutofillState(WebAutofillState autofill_state) {}

bool HTMLFormControlElement::IsAutocompleteEmailUrlOrPassword() const {}

const AtomicString& HTMLFormControlElement::autocapitalize() const {}

void HTMLFormControlElement::DidMoveToNewDocument(Document& old_document) {}

Node::InsertionNotificationRequest HTMLFormControlElement::InsertedInto(
    ContainerNode& insertion_point) {}

void HTMLFormControlElement::RemovedFrom(ContainerNode& insertion_point) {}

void HTMLFormControlElement::WillChangeForm() {}

void HTMLFormControlElement::DidChangeForm() {}

HTMLFormElement* HTMLFormControlElement::formOwner() const {}

bool HTMLFormControlElement::IsDisabledFormControl() const {}

bool HTMLFormControlElement::MatchesEnabledPseudoClass() const {}

bool HTMLFormControlElement::IsRequired() const {}

String HTMLFormControlElement::ResultForDialogSubmit() {}

FocusableState HTMLFormControlElement::SupportsFocus(UpdateBehavior) const {}

bool HTMLFormControlElement::IsKeyboardFocusable(
    UpdateBehavior update_behavior) const {}

bool HTMLFormControlElement::MayTriggerVirtualKeyboard() const {}

bool HTMLFormControlElement::ShouldHaveFocusAppearance() const {}

bool HTMLFormControlElement::willValidate() const {}

bool HTMLFormControlElement::MatchesValidityPseudoClasses() const {}

bool HTMLFormControlElement::IsValidElement() {}

bool HTMLFormControlElement::IsSuccessfulSubmitButton() const {}

// The element referenced by the `popovertarget` attribute is returned if a)
// that element exists, b) it is a valid Popover element, and c) this form
// control supports popover triggering. The return value will include the
// behavior, which is taken from the `popovertargetaction` attribute, and will
// be kNone unless there is a valid popover target.
HTMLFormControlElement::PopoverTargetElement
HTMLFormControlElement::popoverTargetElement() {}

Element* HTMLFormControlElement::commandForElement() {}

Element* HTMLFormControlElement::interestTargetElement() {}

AtomicString HTMLFormControlElement::popoverTargetAction() const {}
void HTMLFormControlElement::setPopoverTargetAction(const AtomicString& value) {}

AtomicString HTMLFormControlElement::command() const {}

CommandEventType HTMLFormControlElement::GetCommandEventType() const {}

AtomicString HTMLFormControlElement::interestAction() const {}

void HTMLFormControlElement::DefaultEventHandler(Event& event) {}

void HTMLFormControlElement::SetHovered(bool hovered) {}

void HTMLFormControlElement::HandlePopoverInvokerHovered(bool hovered) {}

// static
const HTMLFormControlElement*
HTMLFormControlElement::EnclosingFormControlElement(const Node* node) {}

String HTMLFormControlElement::NameForAutofill() const {}

void HTMLFormControlElement::CloneNonAttributePropertiesFrom(
    const Element& source,
    NodeCloningData& data) {}

void HTMLFormControlElement::AssociateWith(HTMLFormElement* form) {}

int32_t HTMLFormControlElement::GetAxId() const {}

}  // namespace blink