OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/gfx/screen.h" | 5 #include "ui/gfx/screen.h" |
6 | 6 |
| 7 #if defined(OS_WIN) |
7 #include <windows.h> | 8 #include <windows.h> |
| 9 #endif |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 | 12 |
11 namespace gfx { | 13 namespace gfx { |
12 | 14 |
13 // static | 15 // static |
14 gfx::Point Screen::GetCursorScreenPoint() { | 16 gfx::Point Screen::GetCursorScreenPoint() { |
15 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
16 POINT pt; | 18 POINT pt; |
17 GetCursorPos(&pt); | 19 GetCursorPos(&pt); |
18 return gfx::Point(pt); | 20 return gfx::Point(pt); |
19 #endif | 21 #endif |
| 22 NOTIMPLEMENTED(); |
| 23 return gfx::Point(); |
20 } | 24 } |
21 | 25 |
22 // static | 26 // static |
23 gfx::Rect Screen::GetMonitorWorkAreaNearestWindow(gfx::NativeWindow window) { | 27 gfx::Rect Screen::GetMonitorWorkAreaNearestWindow(gfx::NativeWindow window) { |
24 NOTIMPLEMENTED(); | 28 NOTIMPLEMENTED(); |
25 return gfx::Rect(); | 29 return gfx::Rect(); |
26 } | 30 } |
27 | 31 |
28 // static | 32 // static |
29 gfx::Rect Screen::GetMonitorAreaNearestWindow(gfx::NativeWindow window) { | 33 gfx::Rect Screen::GetMonitorAreaNearestWindow(gfx::NativeWindow window) { |
(...skipping 16 matching lines...) Expand all Loading... |
46 gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) { | 50 gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) { |
47 return GetMonitorAreaOrWorkAreaNearestPoint(point, false); | 51 return GetMonitorAreaOrWorkAreaNearestPoint(point, false); |
48 } | 52 } |
49 | 53 |
50 gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { | 54 gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { |
51 NOTIMPLEMENTED(); | 55 NOTIMPLEMENTED(); |
52 return NULL; | 56 return NULL; |
53 } | 57 } |
54 | 58 |
55 } // namespace gfx | 59 } // namespace gfx |
OLD | NEW |