chromium/third_party/blink/renderer/modules/screen_orientation/screen_orientation_controller.cc

// Copyright 2014 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_orientation/screen_orientation_controller.h"

#include <memory>
#include <utility>
#include "third_party/blink/public/common/associated_interfaces/associated_interface_provider.h"
#include "third_party/blink/public/common/privacy_budget/identifiability_metric_builder.h"
#include "third_party/blink/public/common/privacy_budget/identifiability_study_settings.h"
#include "third_party/blink/public/platform/task_type.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/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/fullscreen/scoped_allow_fullscreen.h"
#include "third_party/blink/renderer/core/page/chrome_client.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/modules/screen_orientation/screen_orientation.h"
#include "third_party/blink/renderer/platform/web_test_support.h"
#include "ui/display/screen_info.h"

namespace blink {

ScreenOrientationController::~ScreenOrientationController() = default;

const char ScreenOrientationController::kSupplementName[] =;

ScreenOrientationController* ScreenOrientationController::From(
    LocalDOMWindow& window) {}

ScreenOrientationController* ScreenOrientationController::FromIfExists(
    LocalDOMWindow& window) {}

ScreenOrientationController::ScreenOrientationController(LocalDOMWindow& window)
    :{}

// Compute the screen orientation using the orientation angle and the screen
// width / height.
display::mojom::blink::ScreenOrientation
ScreenOrientationController::ComputeOrientation(const gfx::Rect& rect,
                                                uint16_t rotation) {}

void ScreenOrientationController::UpdateOrientation() {}

bool ScreenOrientationController::IsActiveAndVisible() const {}

void ScreenOrientationController::BuildMojoConnection() {}

void ScreenOrientationController::PageVisibilityChanged() {}

void ScreenOrientationController::NotifyOrientationChanged() {}

void ScreenOrientationController::NotifyOrientationChangedInternal() {}

void ScreenOrientationController::SetOrientation(
    ScreenOrientation* orientation) {}

void ScreenOrientationController::lock(
    device::mojom::blink::ScreenOrientationLockType orientation,
    std::unique_ptr<WebLockOrientationCallback> callback) {}

void ScreenOrientationController::unlock() {}

bool ScreenOrientationController::MaybeHasActiveLock() const {}

void ScreenOrientationController::ContextDestroyed() {}

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

void ScreenOrientationController::SetScreenOrientationAssociatedRemoteForTests(
    HeapMojoAssociatedRemote<device::mojom::blink::ScreenOrientation> remote) {}

void ScreenOrientationController::OnLockOrientationResult(
    int request_id,
    ScreenOrientationLockResult result) {}

void ScreenOrientationController::CancelPendingLocks() {}

int ScreenOrientationController::GetRequestIdForTests() {}

void ScreenOrientationController::LockOrientationInternal(
    device::mojom::blink::ScreenOrientationLockType orientation,
    std::unique_ptr<WebLockOrientationCallback> callback) {}

void ScreenOrientationController::UnlockOrientationInternal() {}

}  // namespace blink