OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/gfx/screen.h" |
| 6 |
| 7 #include <windows.h> |
| 8 |
| 9 #include "base/logging.h" |
| 10 |
| 11 namespace gfx { |
| 12 |
| 13 // static |
| 14 gfx::Point Screen::GetCursorScreenPoint() { |
| 15 #if defined(OS_WIN) |
| 16 POINT pt; |
| 17 GetCursorPos(&pt); |
| 18 return gfx::Point(pt); |
| 19 #endif |
| 20 } |
| 21 |
| 22 // static |
| 23 gfx::Rect Screen::GetMonitorWorkAreaNearestWindow(gfx::NativeWindow window) { |
| 24 NOTIMPLEMENTED(); |
| 25 return gfx::Rect(); |
| 26 } |
| 27 |
| 28 // static |
| 29 gfx::Rect Screen::GetMonitorAreaNearestWindow(gfx::NativeWindow window) { |
| 30 NOTIMPLEMENTED(); |
| 31 return gfx::Rect(); |
| 32 } |
| 33 |
| 34 static gfx::Rect GetMonitorAreaOrWorkAreaNearestPoint(const gfx::Point& point, |
| 35 bool work_area) { |
| 36 NOTIMPLEMENTED(); |
| 37 return gfx::Rect(); |
| 38 } |
| 39 |
| 40 // static |
| 41 gfx::Rect Screen::GetMonitorWorkAreaNearestPoint(const gfx::Point& point) { |
| 42 return GetMonitorAreaOrWorkAreaNearestPoint(point, true); |
| 43 } |
| 44 |
| 45 // static |
| 46 gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) { |
| 47 return GetMonitorAreaOrWorkAreaNearestPoint(point, false); |
| 48 } |
| 49 |
| 50 gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { |
| 51 NOTIMPLEMENTED(); |
| 52 return NULL; |
| 53 } |
| 54 |
| 55 } // namespace gfx |
OLD | NEW |