summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-08 19:15:13 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-08 19:15:13 +0000
commit1fa45d0021580083ff7f47c63fedf010c2d7253e (patch)
treea8c78a2d5b0879737c61bb5e5c0f682a6bfb6715 /ash
parentfb9f74aed245dba49164c7f1ccd0b5e253fd2dc8 (diff)
downloadchromium_src-1fa45d0021580083ff7f47c63fedf010c2d7253e.zip
chromium_src-1fa45d0021580083ff7f47c63fedf010c2d7253e.tar.gz
chromium_src-1fa45d0021580083ff7f47c63fedf010c2d7253e.tar.bz2
Use GetCursorPos to return the current cursor position in windows ASH instead of relying on the last mouse
coordinates. This is needed because some of the real estate in Windows 8 ASH belongs to Windows, i.e. we don't receive mouse events for portions of the top/top left/top right/bottom parts of the ASH screen. This fixes the issue with not being able to exit from the fullscreen mode in ASH. BUG=179988 R=sky@chromium.org TEST=Manual for Windows ASH at this point. There is work underway to run browser tests for ASH which has fullscreen tests. Review URL: https://codereview.chromium.org/15047004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198959 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r--ash/screen_ash.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/screen_ash.cc b/ash/screen_ash.cc
index 6155d54..b713e05 100644
--- a/ash/screen_ash.cc
+++ b/ash/screen_ash.cc
@@ -107,6 +107,11 @@ bool ScreenAsh::IsDIPEnabled() {
}
gfx::Point ScreenAsh::GetCursorScreenPoint() {
+#if defined(OS_WIN)
+ POINT pt = {0};
+ GetCursorPos(&pt);
+ return gfx::Point(pt);
+#endif
return aura::Env::GetInstance()->last_mouse_location();
}