Chromium Code Reviews
Descriptionmash: Migrate ash::DragImageView to wm common types
It is a dependency of ShelfView, which we're trying to convert.
* Change context parameter to be a WmWindow root_window.
* Initialize Widget using wm common utils.
* Use display::Display to get the device scale factor to size the image.
* Explicitly cancel a drag when a monitor is disconnected. This used to be
handled by marking the aura::Window as not owned by its parent. However,
drags are canceled anyway when monitor disconnects occur -- this just makes
it explicit.
* Added unit test for monitor disconnect during drag.
The DragDropController is not changed because it will likely need to be
refactored or replaced for mus. The new test is written with aura windows
for the same reason.
BUG=633324
TEST=ash_unittests
Committed: https://crrev.com/035dc06b3166034bcf3a06a97304f8d80b04f06c
Cr-Commit-Position: refs/heads/master@{#410161}
Patch Set 1 #Patch Set 2 : cleanup includes #Patch Set 3 : handle monitor disconnect #Patch Set 4 : cleanup WmWindowAura #
Total comments: 6
Patch Set 5 : rebase #Patch Set 6 : nits #
Messages
Total messages: 21 (15 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||