chromium/ui/aura/screen_ozone.cc

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

#include "ui/aura/screen_ozone.h"

#include <memory>
#include <optional>

#include "ui/aura/client/screen_position_client.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/display/display.h"
#include "ui/display/tablet_state.h"
#include "ui/ozone/public/ozone_platform.h"
#include "ui/ozone/public/platform_screen.h"

namespace aura {

ScreenOzone::ScreenOzone() {}

ScreenOzone::~ScreenOzone() {}

// static
bool ScreenOzone::IsOzoneInitialized() {}

gfx::Point ScreenOzone::GetCursorScreenPoint() {}

bool ScreenOzone::IsWindowUnderCursor(gfx::NativeWindow window) {}

gfx::NativeWindow ScreenOzone::GetWindowAtScreenPoint(const gfx::Point& point) {}

gfx::NativeWindow ScreenOzone::GetLocalProcessWindowAtPoint(
    const gfx::Point& point,
    const std::set<gfx::NativeWindow>& ignore) {}

int ScreenOzone::GetNumDisplays() const {}

const std::vector<display::Display>& ScreenOzone::GetAllDisplays() const {}

display::Display ScreenOzone::GetDisplayNearestWindow(
    gfx::NativeWindow window) const {}

display::Display ScreenOzone::GetDisplayNearestView(
    gfx::NativeView view) const {}

display::Display ScreenOzone::GetDisplayNearestPoint(
    const gfx::Point& point) const {}

display::Display ScreenOzone::GetDisplayMatching(
    const gfx::Rect& match_rect) const {}

display::Display ScreenOzone::GetPrimaryDisplay() const {}

#if BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_LINUX)
ScreenOzone::ScreenSaverSuspenderOzone::ScreenSaverSuspenderOzone(
    std::unique_ptr<ui::PlatformScreen::PlatformScreenSaverSuspender> suspender)
    :{}

ScreenOzone::ScreenSaverSuspenderOzone::~ScreenSaverSuspenderOzone() = default;

std::unique_ptr<display::Screen::ScreenSaverSuspender>
ScreenOzone::SuspendScreenSaver() {}
#endif  // BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_LINUX)

bool ScreenOzone::IsScreenSaverActive() const {}

base::TimeDelta ScreenOzone::CalculateIdleTime() const {}

void ScreenOzone::AddObserver(display::DisplayObserver* observer) {}

void ScreenOzone::RemoveObserver(display::DisplayObserver* observer) {}

std::string ScreenOzone::GetCurrentWorkspace() {}

base::Value::List ScreenOzone::GetGpuExtraInfo(
    const gfx::GpuExtraInfo& gpu_extra_info) {}

std::optional<float> ScreenOzone::GetPreferredScaleFactorForWindow(
    gfx::NativeWindow window) const {}

#if BUILDFLAG(IS_CHROMEOS_LACROS)
display::TabletState ScreenOzone::GetTabletState() const {
  return platform_screen_->GetTabletState();
}

void ScreenOzone::OverrideTabletStateForTesting(
    display::TabletState tablet_state) {
  platform_screen_->OnTabletStateChanged(tablet_state);
}
#endif

gfx::NativeWindow ScreenOzone::GetNativeWindowFromAcceleratedWidget(
    gfx::AcceleratedWidget widget) const {}

gfx::AcceleratedWidget ScreenOzone::GetAcceleratedWidgetForWindow(
    aura::Window* window) const {}

}  // namespace aura