#include "third_party/blink/renderer/modules/media_controls/media_controls_rotate_to_fullscreen_delegate.h"
#include "third_party/blink/public/mojom/frame/user_activation_notification_type.mojom-blink.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/user_metrics_action.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/fullscreen/fullscreen.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/intersection_observer/intersection_observer.h"
#include "third_party/blink/renderer/core/intersection_observer/intersection_observer_entry.h"
#include "third_party/blink/renderer/core/page/chrome_client.h"
#include "third_party/blink/renderer/modules/device_orientation/device_orientation_data.h"
#include "third_party/blink/renderer/modules/device_orientation/device_orientation_event.h"
#include "third_party/blink/renderer/modules/media_controls/media_controls_impl.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "ui/display/mojom/screen_orientation.mojom-blink.h"
#include "ui/display/screen_info.h"
namespace blink {
namespace {
constexpr unsigned kMinVideoSize = …;
constexpr float kIntersectionThreshold = …;
}
MediaControlsRotateToFullscreenDelegate::
MediaControlsRotateToFullscreenDelegate(HTMLVideoElement& video)
: … { … }
void MediaControlsRotateToFullscreenDelegate::Attach() { … }
void MediaControlsRotateToFullscreenDelegate::Detach() { … }
void MediaControlsRotateToFullscreenDelegate::Invoke(
ExecutionContext* execution_context,
Event* event) { … }
void MediaControlsRotateToFullscreenDelegate::OnStateChange() { … }
void MediaControlsRotateToFullscreenDelegate::OnIntersectionChange(
const HeapVector<Member<IntersectionObserverEntry>>& entries) { … }
void MediaControlsRotateToFullscreenDelegate::OnDeviceOrientationAvailable(
DeviceOrientationEvent* event) { … }
void MediaControlsRotateToFullscreenDelegate::OnScreenOrientationChange() { … }
MediaControlsRotateToFullscreenDelegate::SimpleOrientation
MediaControlsRotateToFullscreenDelegate::ComputeVideoOrientation() const { … }
MediaControlsRotateToFullscreenDelegate::SimpleOrientation
MediaControlsRotateToFullscreenDelegate::ComputeScreenOrientation() const { … }
void MediaControlsRotateToFullscreenDelegate::Trace(Visitor* visitor) const { … }
}