- add sources.
[platform/framework/web/crosswalk.git] / src / ozone / impl / desktop_screen_wayland.cc
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.
4
5 #include "ozone/impl/desktop_screen_wayland.h"
6
7 namespace ozonewayland {
8
9 DesktopScreenWayland::DesktopScreenWayland() {
10 }
11
12 DesktopScreenWayland::~DesktopScreenWayland() {
13 }
14
15 void DesktopScreenWayland::SetGeometry(const gfx::Rect& geometry) {
16   rect_ = geometry;
17 }
18
19 bool DesktopScreenWayland::IsDIPEnabled() {
20   return false;
21 }
22
23 gfx::Point DesktopScreenWayland::GetCursorScreenPoint() {
24   return gfx::Point();
25 }
26
27 gfx::NativeWindow DesktopScreenWayland::GetWindowUnderCursor() {
28   return NULL;
29 }
30
31 gfx::NativeWindow DesktopScreenWayland::GetWindowAtScreenPoint(
32     const gfx::Point& point) {
33   return NULL;
34 }
35
36 int DesktopScreenWayland::GetNumDisplays() const {
37   return 1;
38 }
39
40 std::vector<gfx::Display> DesktopScreenWayland::GetAllDisplays() const {
41   return std::vector<gfx::Display>(1, GetPrimaryDisplay());
42 }
43
44 gfx::Display DesktopScreenWayland::GetDisplayNearestWindow(
45     gfx::NativeView window) const {
46   DCHECK(!rect_.IsEmpty());
47   return gfx::Display(0, rect_);
48 }
49
50 gfx::Display DesktopScreenWayland::GetDisplayNearestPoint(
51     const gfx::Point& point) const {
52   DCHECK(!rect_.IsEmpty());
53   return gfx::Display(0, rect_);
54 }
55
56 gfx::Display DesktopScreenWayland::GetDisplayMatching(
57     const gfx::Rect& match_rect) const {
58   DCHECK(!rect_.IsEmpty());
59   return gfx::Display(0, rect_);
60 }
61
62 gfx::Display DesktopScreenWayland::GetPrimaryDisplay() const {
63   DCHECK(!rect_.IsEmpty());
64   return gfx::Display(0, rect_);
65 }
66
67 void DesktopScreenWayland::AddObserver(gfx::DisplayObserver* observer) {
68 }
69
70 void DesktopScreenWayland::RemoveObserver(gfx::DisplayObserver* observer) {
71 }
72
73 }  // namespace ozonewayland