chromium/third_party/blink/renderer/modules/screen_details/window_screen_details.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// static
const char WindowScreenDetails::kSupplementName[] =;

WindowScreenDetails::WindowScreenDetails(LocalDOMWindow* window)
    :{}

// static
ScriptPromise<ScreenDetails> WindowScreenDetails::getScreenDetails(
    ScriptState* script_state,
    LocalDOMWindow& window,
    ExceptionState& exception_state) {}

void WindowScreenDetails::ContextDestroyed() {}

void WindowScreenDetails::Trace(Visitor* visitor) const {}

// static
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) {}

}  // namespace blink