1 // Copyright 2013 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ozone/impl/desktop_screen_wayland.h"
7 namespace ozonewayland {
9 DesktopScreenWayland::DesktopScreenWayland() {
12 DesktopScreenWayland::~DesktopScreenWayland() {
15 void DesktopScreenWayland::SetGeometry(const gfx::Rect& geometry) {
19 bool DesktopScreenWayland::IsDIPEnabled() {
23 gfx::Point DesktopScreenWayland::GetCursorScreenPoint() {
27 gfx::NativeWindow DesktopScreenWayland::GetWindowUnderCursor() {
31 gfx::NativeWindow DesktopScreenWayland::GetWindowAtScreenPoint(
32 const gfx::Point& point) {
36 int DesktopScreenWayland::GetNumDisplays() const {
40 std::vector<gfx::Display> DesktopScreenWayland::GetAllDisplays() const {
41 return std::vector<gfx::Display>(1, GetPrimaryDisplay());
44 gfx::Display DesktopScreenWayland::GetDisplayNearestWindow(
45 gfx::NativeView window) const {
46 DCHECK(!rect_.IsEmpty());
47 return gfx::Display(0, rect_);
50 gfx::Display DesktopScreenWayland::GetDisplayNearestPoint(
51 const gfx::Point& point) const {
52 DCHECK(!rect_.IsEmpty());
53 return gfx::Display(0, rect_);
56 gfx::Display DesktopScreenWayland::GetDisplayMatching(
57 const gfx::Rect& match_rect) const {
58 DCHECK(!rect_.IsEmpty());
59 return gfx::Display(0, rect_);
62 gfx::Display DesktopScreenWayland::GetPrimaryDisplay() const {
63 DCHECK(!rect_.IsEmpty());
64 return gfx::Display(0, rect_);
67 void DesktopScreenWayland::AddObserver(gfx::DisplayObserver* observer) {
70 void DesktopScreenWayland::RemoveObserver(gfx::DisplayObserver* observer) {
73 } // namespace ozonewayland