summaryrefslogtreecommitdiffstats
path: root/ash/display/display_info.cc
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-20 14:40:23 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-20 14:40:23 +0000
commited44e7227cdb483f3377ac49289eaab837467c39 (patch)
treeece9a1b6bf453f849edb9cf2a768873ce32f4a9b /ash/display/display_info.cc
parent2202cf7b4ea5334b7b3f88bd59c57e33350c2474 (diff)
downloadchromium_src-ed44e7227cdb483f3377ac49289eaab837467c39.zip
chromium_src-ed44e7227cdb483f3377ac49289eaab837467c39.tar.gz
chromium_src-ed44e7227cdb483f3377ac49289eaab837467c39.tar.bz2
Use floored value for screen size and mouse location for consistency.
This is causing mismatch between expected bounds and actual mouse position in auto-hide code. - don't synthesize mouse event if the current location is outside of root window. This happens when dragging window and unnecessary to handle. - Fix system location in synthesized event. It's using screen coordinates instead of system coordinates. BUG=222137 TEST=updated the test. Tested manually. see bug. Review URL: https://chromiumcodereview.appspot.com/12579012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/display/display_info.cc')
-rw-r--r--ash/display/display_info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/display/display_info.cc b/ash/display/display_info.cc
index 7715c82..b46dceb 100644
--- a/ash/display/display_info.cc
+++ b/ash/display/display_info.cc
@@ -177,7 +177,7 @@ void DisplayInfo::UpdateDisplaySize() {
size_in_pixel_.SetSize(size_in_pixel_.height(), size_in_pixel_.width());
gfx::SizeF size_f(size_in_pixel_);
size_f.Scale(ui_scale_);
- size_in_pixel_ = gfx::ToRoundedSize(size_f);
+ size_in_pixel_ = gfx::ToFlooredSize(size_f);
}
void DisplayInfo::SetOverscanInsets(bool custom,