summaryrefslogtreecommitdiffstats
path: root/views/screen_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/screen_win.cc')
-rw-r--r--views/screen_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/screen_win.cc b/views/screen_win.cc
index 82e95e6..4ddb7c1 100644
--- a/views/screen_win.cc
+++ b/views/screen_win.cc
@@ -46,5 +46,10 @@ gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) {
return gfx::Rect(mi.rcMonitor);
}
+gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() {
+ POINT location;
+ return GetCursorPos(&location) ? WindowFromPoint(location) : NULL;
+}
+
} // namespace