#include "third_party/blink/renderer/modules/media_controls/media_controls_shared_helper.h"
#include <cmath>
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-blink.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/fullscreen/fullscreen.h"
#include "third_party/blink/renderer/core/html/media/html_media_element.h"
#include "third_party/blink/renderer/core/html/media/html_media_element_controls_list.h"
#include "third_party/blink/renderer/core/html/media/html_video_element.h"
#include "third_party/blink/renderer/core/html/time_ranges.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
namespace {
const double kCurrentTimeBufferedDelta = …;
}
namespace blink {
MediaControlsSharedHelpers::TransitionEventListener::TransitionEventListener(
Element* element,
Callback callback)
: … { … }
void MediaControlsSharedHelpers::TransitionEventListener::Attach() { … }
void MediaControlsSharedHelpers::TransitionEventListener::Detach() { … }
bool MediaControlsSharedHelpers::TransitionEventListener::IsAttached() const { … }
void MediaControlsSharedHelpers::TransitionEventListener::Invoke(
ExecutionContext* context,
Event* event) { … }
void MediaControlsSharedHelpers::TransitionEventListener::Trace(
blink::Visitor* visitor) const { … }
std::optional<unsigned> MediaControlsSharedHelpers::GetCurrentBufferedTimeRange(
HTMLMediaElement& media_element) { … }
String MediaControlsSharedHelpers::FormatTime(double time) { … }
bool MediaControlsSharedHelpers::ShouldShowFullscreenButton(
const HTMLMediaElement& media_element) { … }
}