summaryrefslogtreecommitdiffstats
path: root/ash/ui_controls_ash.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix the issue of cursor's device scale factor when using monitors with ↵mazda@chromium.org2012-10-181-13/+7
| | | | | | | | | | | | | | | | | | | | | | | | differnt device scale factor. The cursor's device scale factor is correctly set when cursor warps to another monitor. The original code was added for handling the case where moves to another monitor without warping when testing on desktop. But this caused adverse effects in some cases, so just deleting the code would be fine. This CL also adds regression tests for the following cases - cursor warps without dragging anything - cursor warps while dragging a window - cursor warps while dragging a tab TODO: Add a test case where cursor warps when a chromium menu is open (http://crbug.com/154377). This CL depends on http://codereview.chromium.org/11066045/. BUG=154183 TEST=MouseCursorEventFilterTest.CursorDeviceScaleFactor, WorkspaceWindowResizerTest.CursorDeviceScaleFactor, DifferentDeviceScaleFactorDisplayTabDragControllerTest.CursorDeviceScaleFactor Review URL: https://chromiumcodereview.appspot.com/11033038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162625 0039d316-1c4b-4281-b951-d872f2087c98
* Makes gfx::Screen an instance, rather than a collection of static methods.scottmg@chromium.org2012-10-121-3/+3
| | | | | | | | | | | | | | This is in support of supporting separate Screen implementations on Aura for desktop and metro on Windows. Some callsites are not yet correct, and noted with a reference to the http://crbug.com/133312. As-is those sites will behave the same as before this patch, but may not be correct once desktop/metro can run simultaneously. BUG=133312 Review URL: https://chromiumcodereview.appspot.com/11030017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161644 0039d316-1c4b-4281-b951-d872f2087c98
* Cancel drag if display configuration changes.oshima@chromium.org2012-09-111-21/+29
| | | | | | | | | | | | | | | | * Removed debug specific shortcut to emulate display change. * fixed ui_controls to use the correct position * a few minor clean ups (removing unnecessary namesapce, rename Monitor -> Display) BUG=14457 TEST=covered by test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155762 Review URL: https://chromiumcodereview.appspot.com/10909043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155975 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r14457 "Cancel drag if display configuration changes."oshima@chromium.org2012-09-101-29/+21
| | | | | | | | | | | | | | This reverts commit 116e78b0600dd591d2b54390e290e95b8ea0355b. link error in win_aura TBR=oshima@chromium.org BUG=14457 TEST=none Review URL: https://chromiumcodereview.appspot.com/10913174 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155770 0039d316-1c4b-4281-b951-d872f2087c98
* Cancel drag if display configuration changes.oshima@chromium.org2012-09-101-21/+29
| | | | | | | | | | | | | | | * Removed debug specific shortcut to emulate display change. * fixed ui_controls to use the correct position * a few minor clean ups (removing unnecessary namesapce, rename Monitor -> Display) BUG=14457 TEST=covered by test Review URL: https://chromiumcodereview.appspot.com/10909043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155762 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ui_controls with multiple displays. Currently the code uses the uisky@chromium.org2012-08-281-0/+8
| | | | | | | | | | | | | | | controls based on the rootwindow that contains the point we're moving to. This is wrong if a capture exists, since with capture the events are received from the root with capture. BUG=136919 TEST=none R=oshima@chromium.org Review URL: https://chromiumcodereview.appspot.com/10886019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153786 0039d316-1c4b-4281-b951-d872f2087c98
* Allow the cursor to warp even when a window is dragged.yusukes@google.com2012-08-061-1/+2
| | | | | | | | | | | This is the first step toward implementing crbug.com/136816 (Implement dragging window from one display to another). BUG=136816 TEST=try Review URL: https://chromiumcodereview.appspot.com/10835047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150116 0039d316-1c4b-4281-b951-d872f2087c98
* Add UIControlsAsh that works with multiple root windowsoshima@chromium.org2012-06-081-0/+131
I'll add test for this when I add multiple root window support, which should be soon. BUG=123160 TEST=none Review URL: https://chromiumcodereview.appspot.com/10545058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141170 0039d316-1c4b-4281-b951-d872f2087c98