Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Issue 2206033002: mash: Migrate ash::DragImageView to wm common types (Closed)

Created:
4 years, 4 months ago by James Cook
Modified:
4 years, 4 months ago
Reviewers:
msw
CC:
chromium-reviews, kalyank, sadrul, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -321 lines) Patch
M ash/ash.gyp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
A + ash/common/drag_drop/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + ash/common/drag_drop/drag_image_view.h View 1 2 4 chunks +11 lines, -6 lines 0 comments Download
A + ash/common/drag_drop/drag_image_view.cc View 1 2 chunks +23 lines, -21 lines 0 comments Download
M ash/drag_drop/drag_drop_controller.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M ash/drag_drop/drag_drop_controller.cc View 1 2 3 4 5 4 chunks +14 lines, -2 lines 0 comments Download
M ash/drag_drop/drag_drop_controller_unittest.cc View 1 2 3 4 5 2 chunks +42 lines, -1 line 0 comments Download
D ash/drag_drop/drag_image_view.h View 1 chunk +0 lines, -88 lines 0 comments Download
D ash/drag_drop/drag_image_view.cc View 1 chunk +0 lines, -187 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 3 5 chunks +13 lines, -14 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
James Cook
msw, please take a look. With this change I think we're down to a single ...
4 years, 4 months ago (2016-08-05 19:00:15 UTC) #10
msw
lgtm with minor nits. https://codereview.chromium.org/2206033002/diff/60001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): https://codereview.chromium.org/2206033002/diff/60001/ash/drag_drop/drag_drop_controller.cc#newcode206 ash/drag_drop/drag_drop_controller.cc:206: WmWindowAura::Get(source_window)->GetRootWindow(), source)); nit: comment here ...
4 years, 4 months ago (2016-08-05 19:32:59 UTC) #11
James Cook
https://codereview.chromium.org/2206033002/diff/60001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): https://codereview.chromium.org/2206033002/diff/60001/ash/drag_drop/drag_drop_controller.cc#newcode206 ash/drag_drop/drag_drop_controller.cc:206: WmWindowAura::Get(source_window)->GetRootWindow(), source)); On 2016/08/05 19:32:58, msw wrote: > nit: ...
4 years, 4 months ago (2016-08-05 20:10:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2206033002/100001
4 years, 4 months ago (2016-08-05 20:10:38 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-05 21:14:51 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 21:17:05 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/035dc06b3166034bcf3a06a97304f8d80b04f06c
Cr-Commit-Position: refs/heads/master@{#410161}

Powered by Google App Engine
This is Rietveld 408576698