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 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "ui/gfx/native_widget_types.h" |
12 | 13 |
13 namespace gfx { | 14 namespace gfx { |
14 | 15 |
15 // static | 16 // static |
16 gfx::Point Screen::GetCursorScreenPoint() { | 17 gfx::Point Screen::GetCursorScreenPoint() { |
17 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
18 POINT pt; | 19 POINT pt; |
19 GetCursorPos(&pt); | 20 GetCursorPos(&pt); |
20 return gfx::Point(pt); | 21 return gfx::Point(pt); |
21 #endif | 22 #endif |
(...skipping 28 matching lines...) Expand all Loading... |
50 gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) { | 51 gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) { |
51 return GetMonitorAreaOrWorkAreaNearestPoint(point, false); | 52 return GetMonitorAreaOrWorkAreaNearestPoint(point, false); |
52 } | 53 } |
53 | 54 |
54 gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { | 55 gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { |
55 NOTIMPLEMENTED(); | 56 NOTIMPLEMENTED(); |
56 return NULL; | 57 return NULL; |
57 } | 58 } |
58 | 59 |
59 } // namespace gfx | 60 } // namespace gfx |
OLD | NEW |