#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/modules/screen_orientation/screen_orientation.h"
#include <memory>
#include "base/memory/raw_ptr_exclusion.h"
#include "services/network/public/mojom/web_sandbox_flags.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/modules/event_target_modules.h"
#include "third_party/blink/renderer/modules/screen_orientation/lock_orientation_callback.h"
#include "third_party/blink/renderer/modules/screen_orientation/screen_orientation_controller.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/wtf/assertions.h"
STATIC_ASSERT_ENUM(…);
STATIC_ASSERT_ENUM(…);
STATIC_ASSERT_ENUM(…);
STATIC_ASSERT_ENUM(…);
namespace blink {
struct ScreenOrientationInfo { … };
static ScreenOrientationInfo* OrientationsMap(unsigned& length) { … }
const AtomicString& ScreenOrientation::OrientationTypeToString(
display::mojom::blink::ScreenOrientation orientation) { … }
static device::mojom::blink::ScreenOrientationLockType StringToOrientationLock(
const AtomicString& orientation_lock_string) { … }
ScreenOrientation* ScreenOrientation::Create(LocalDOMWindow* window) { … }
ScreenOrientation::ScreenOrientation(LocalDOMWindow* window)
: … { … }
ScreenOrientation::~ScreenOrientation() = default;
const WTF::AtomicString& ScreenOrientation::InterfaceName() const { … }
ExecutionContext* ScreenOrientation::GetExecutionContext() const { … }
String ScreenOrientation::type() const { … }
uint16_t ScreenOrientation::angle() const { … }
void ScreenOrientation::SetType(display::mojom::blink::ScreenOrientation type) { … }
void ScreenOrientation::SetAngle(uint16_t angle) { … }
ScriptPromise<IDLUndefined> ScreenOrientation::lock(
ScriptState* state,
const AtomicString& lock_string,
ExceptionState& exception_state) { … }
void ScreenOrientation::unlock() { … }
ScreenOrientationController* ScreenOrientation::Controller() { … }
void ScreenOrientation::Trace(Visitor* visitor) const { … }
}