#ifdef UNSAFE_BUFFERS_BUILD
#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 {
enum class MediaControlsPlaybackSpeed { … };
void RecordPlaybackSpeedUMA(MediaControlsPlaybackSpeed playback_speed) { … }
struct PlaybackSpeed { … };
static const PlaybackSpeed kPlaybackSpeeds[] = …;
const QualifiedName& PlaybackRateAttrName() { … }
}
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 { … }
}