chromium/third_party/blink/renderer/core/html/forms/html_label_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, 2010 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_label_element.h"

#include "third_party/blink/public/mojom/input/focus_type.mojom-blink.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element_traversal.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/editing/editing_utilities.h"
#include "third_party/blink/renderer/core/editing/frame_selection.h"
#include "third_party/blink/renderer/core/editing/selection_controller.h"
#include "third_party/blink/renderer/core/editing/visible_selection.h"
#include "third_party/blink/renderer/core/events/mouse_event.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/html/custom/element_internals.h"
#include "third_party/blink/renderer/core/html/forms/html_form_control_element.h"
#include "third_party/blink/renderer/core/html/forms/listed_element.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/input/event_handler.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"

namespace blink {

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

// For JavaScript binding, return the control element without resolving the
// reference target, to avoid exposing shadow root content to JS.
HTMLElement* HTMLLabelElement::controlForBinding() const {}

HTMLElement* HTMLLabelElement::Control() const {}

HTMLFormElement* HTMLLabelElement::form() const {}

void HTMLLabelElement::SetActive(bool active) {}

void HTMLLabelElement::SetHovered(bool hovered) {}

bool HTMLLabelElement::IsInteractiveContent() const {}

bool HTMLLabelElement::IsInInteractiveContent(Node* node) const {}

void HTMLLabelElement::DefaultEventHandler(Event& evt) {}

// If this returns false, then it means that we should not run
// HTMLElement::DefaultEventHandler when LabelEventHandlerCallSuper is disabled
// to emulate old behavior.
// TODO(crbug.com/1523168): Remove this method when the flag is removed.
bool HTMLLabelElement::DefaultEventHandlerInternal(Event& evt) {}

bool HTMLLabelElement::HasActivationBehavior() const {}

bool HTMLLabelElement::WillRespondToMouseClickEvents() {}

void HTMLLabelElement::Focus(const FocusParams& params) {}

void HTMLLabelElement::AccessKeyAction(
    SimulatedClickCreationScope creation_scope) {}

}  // namespace blink