chromium/third_party/blink/renderer/modules/media_controls/elements/media_control_playback_speed_list_element.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/modules/media_controls/elements/media_control_playback_speed_list_element.h"

#include "base/metrics/histogram_functions.h"
#include "third_party/blink/public/strings/grit/blink_strings.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_scroll_into_view_options.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_boolean_scrollintoviewoptions.h"
#include "third_party/blink/renderer/core/dom/document.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/focus_params.h"
#include "third_party/blink/renderer/core/dom/frame_request_callback_collection.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/html/forms/html_input_element.h"
#include "third_party/blink/renderer/core/html/forms/html_label_element.h"
#include "third_party/blink/renderer/core/html/html_span_element.h"
#include "third_party/blink/renderer/core/html/media/html_media_element.h"
#include "third_party/blink/renderer/core/input_type_names.h"
#include "third_party/blink/renderer/core/keywords.h"
#include "third_party/blink/renderer/modules/media_controls/media_controls_impl.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/text/platform_locale.h"
#include "ui/strings/grit/ax_strings.h"

namespace blink {

namespace {

// This enum is used to record histograms. Do not reorder.
enum class MediaControlsPlaybackSpeed {};

void RecordPlaybackSpeedUMA(MediaControlsPlaybackSpeed playback_speed) {}

struct PlaybackSpeed {};

static const PlaybackSpeed kPlaybackSpeeds[] =;

const QualifiedName& PlaybackRateAttrName() {}

}  // anonymous namespace

class MediaControlPlaybackSpeedListElement::RequestAnimationFrameCallback final
    : public FrameCallback {};

MediaControlPlaybackSpeedListElement::MediaControlPlaybackSpeedListElement(
    MediaControlsImpl& media_controls)
    :{}

bool MediaControlPlaybackSpeedListElement::WillRespondToMouseClickEvents() {}

void MediaControlPlaybackSpeedListElement::SetIsWanted(bool wanted) {}

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

Element* MediaControlPlaybackSpeedListElement::CreatePlaybackSpeedListItem(
    const int display_name,
    const double playback_rate) {}

Element* MediaControlPlaybackSpeedListElement::CreatePlaybackSpeedHeaderItem() {}

void MediaControlPlaybackSpeedListElement::RefreshPlaybackSpeedListMenu() {}

void MediaControlPlaybackSpeedListElement::CenterCheckedItem() {}

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

}  // namespace blink