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

/*
 * Copyright (C) 1999 Lars Knoll ([email protected])
 *           (C) 1999 Antti Koivisto ([email protected])
 *           (C) 2001 Dirk Mueller ([email protected])
 *           (C) 2006 Alexey Proskuryakov ([email protected])
 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved.
 * Copyright (C) 2010 Google Inc. All rights reserved.
 * Copyright (C) 2011 Motorola Mobility, Inc.  All rights reserved.
 *
 * 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_option_element.h"

#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-shared.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_mutation_observer_init.h"
#include "third_party/blink/renderer/core/accessibility/ax_object_cache.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/events/simulated_click_options.h"
#include "third_party/blink/renderer/core/dom/focus_params.h"
#include "third_party/blink/renderer/core/dom/mutation_observer.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/dom/node_traversal.h"
#include "third_party/blink/renderer/core/dom/shadow_root.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/events/gesture_event.h"
#include "third_party/blink/renderer/core/events/keyboard_event.h"
#include "third_party/blink/renderer/core/events/mouse_event.h"
#include "third_party/blink/renderer/core/html/forms/html_data_list_element.h"
#include "third_party/blink/renderer/core/html/forms/html_opt_group_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/html_slot_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/layout/layout_theme.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/keyboard_codes.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"

namespace blink {

class OptionTextObserver : public MutationObserver::Delegate {};

HTMLOptionElement::HTMLOptionElement(Document& document)
    :{}

// An explicit empty destructor should be in html_option_element.cc, because
// if an implicit destructor is used or an empty destructor is defined in
// html_option_element.h, when including html_option_element.h,
// msvc tries to expand the destructor and causes
// a compile error because of lack of ComputedStyle definition.
HTMLOptionElement::~HTMLOptionElement() = default;

HTMLOptionElement* HTMLOptionElement::CreateForJSConstructor(
    Document& document,
    const String& data,
    const AtomicString& value,
    bool default_selected,
    bool selected,
    ExceptionState& exception_state) {}

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

FocusableState HTMLOptionElement::SupportsFocus(
    UpdateBehavior update_behavior) const {}

bool HTMLOptionElement::MatchesDefaultPseudoClass() const {}

bool HTMLOptionElement::MatchesEnabledPseudoClass() const {}

String HTMLOptionElement::DisplayLabel() const {}

String HTMLOptionElement::text() const {}

void HTMLOptionElement::setText(const String& text) {}

void HTMLOptionElement::AccessKeyAction(SimulatedClickCreationScope) {}

int HTMLOptionElement::index() const {}

int HTMLOptionElement::ListIndex() const {}

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

String HTMLOptionElement::value() const {}

void HTMLOptionElement::setValue(const AtomicString& value) {}

bool HTMLOptionElement::Selected() const {}

void HTMLOptionElement::SetSelected(bool selected) {}

bool HTMLOptionElement::selectedForBinding() const {}

void HTMLOptionElement::setSelectedForBinding(bool selected) {}

void HTMLOptionElement::SetSelectedState(bool selected) {}

void HTMLOptionElement::SetMultiSelectFocusedState(bool focused) {}

bool HTMLOptionElement::IsMultiSelectFocused() const {}

void HTMLOptionElement::SetDirty(bool value) {}

void HTMLOptionElement::ChildrenChanged(const ChildrenChange& change) {}

void HTMLOptionElement::DidChangeTextContent() {}

HTMLDataListElement* HTMLOptionElement::OwnerDataListElement() const {}

HTMLSelectElement* HTMLOptionElement::OwnerSelectElement() const {}

HTMLSelectListElement* HTMLOptionElement::OwnerSelectList() const {}

String HTMLOptionElement::label() const {}

void HTMLOptionElement::setLabel(const AtomicString& label) {}

String HTMLOptionElement::TextIndentedToRespectGroupLabel() const {}

bool HTMLOptionElement::OwnElementDisabled() const {}

bool HTMLOptionElement::IsDisabledFormControl() const {}

String HTMLOptionElement::DefaultToolTip() const {}

String HTMLOptionElement::CollectOptionInnerText() const {}

HTMLFormElement* HTMLOptionElement::form() const {}

void HTMLOptionElement::DidAddUserAgentShadowRoot(ShadowRoot& root) {}

void HTMLOptionElement::UpdateLabel() {}

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

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

void HTMLOptionElement::SetTextOnlyRendering(bool text_only) {}

void HTMLOptionElement::OptionInsertedIntoSelectListElement() {}

void HTMLOptionElement::OptionRemovedFromSelectListElement() {}

bool HTMLOptionElement::SpatialNavigationFocused() const {}

bool HTMLOptionElement::IsDisplayNone() const {}

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

}  // namespace blink