#include "third_party/blink/renderer/modules/screen_details/window_screen_details.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/bindings/core/v8/v8_throw_dom_exception.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.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/modules/permissions/permission_utils.h"
#include "third_party/blink/renderer/modules/screen_details/screen_details.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
namespace blink {
const char WindowScreenDetails::kSupplementName[] = …;
WindowScreenDetails::WindowScreenDetails(LocalDOMWindow* window)
: … { … }
ScriptPromise<ScreenDetails> WindowScreenDetails::getScreenDetails(
ScriptState* script_state,
LocalDOMWindow& window,
ExceptionState& exception_state) { … }
void WindowScreenDetails::ContextDestroyed() { … }
void WindowScreenDetails::Trace(Visitor* visitor) const { … }
WindowScreenDetails* WindowScreenDetails::From(LocalDOMWindow* window) { … }
ScriptPromise<ScreenDetails> WindowScreenDetails::GetScreenDetails(
ScriptState* script_state,
ExceptionState& exception_state) { … }
void WindowScreenDetails::OnPermissionInquiryComplete(
ScriptPromiseResolver<ScreenDetails>* resolver,
bool permission_requested,
mojom::blink::PermissionStatus status) { … }
}