| Index: ui/gfx/screen_win.cc
|
| diff --git a/ui/gfx/screen_win.cc b/ui/gfx/screen_win.cc
|
| index 530cebee13fa6611c9f695269ba13fbfcc149a5c..2873b72114d35ea9ae74086e2a10d7a3398df433 100644
|
| --- a/ui/gfx/screen_win.cc
|
| +++ b/ui/gfx/screen_win.cc
|
| @@ -54,9 +54,21 @@ gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) {
|
| return GetMonitorAreaOrWorkAreaNearestPoint(point, false);
|
| }
|
|
|
| +// static
|
| gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() {
|
| POINT location;
|
| return GetCursorPos(&location) ? WindowFromPoint(location) : NULL;
|
| }
|
|
|
| +// static
|
| +gfx::Size Screen::GetPrimaryMonitorSize() {
|
| + return gfx::Size(GetSystemMetrics(SM_CXSCREEN),
|
| + GetSystemMetrics(SM_CYSCREEN));
|
| +}
|
| +
|
| +// static
|
| +int Screen::GetNumMonitors() {
|
| + return GetSystemMetrics(SM_CMONITORS);
|
| +}
|
| +
|
| } // namespace gfx
|
|
|