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

Issue 2097763004: MD Settings: Display: Add snapping and collisions (Closed)

Created:
4 years, 6 months ago by stevenjb
Modified:
4 years, 5 months ago
Reviewers:
michaelpg
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-settings_chromium.org, dbeam+watch-closure_chromium.org, stevenjb+watch-md-settings_chromium.org, jlklein+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@issue_547080_display_settings8a_drag
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Display: Add snapping and collisions Note: This does not correctly resolve children of dragged displays yet, it just carries them along which can result in overlapping. This also: * Moves the layout code into a separate behavior * Uses Map instead of Object for bounds and layout maps * Uses the id instead of the index when selecting a display (more robust) * Fixes the calculateVisualScale behavior BUG=547080 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/c7f3b6cec255c73f4f3b1473bc14c4da547c0399 Cr-Commit-Position: refs/heads/master@{#403500}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 18

Patch Set 4 : Feedback #

Total comments: 4

Patch Set 5 : Rebase + More Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+618 lines, -119 lines) Patch
M chrome/browser/resources/settings/device_page/compiled_resources2.gyp View 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/device_page/display.js View 1 1 chunk +7 lines, -8 lines 0 comments Download
M chrome/browser/resources/settings/device_page/display_layout.html View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/device_page/display_layout.js View 1 2 3 10 chunks +34 lines, -107 lines 0 comments Download
A chrome/browser/resources/settings/device_page/layout_behavior.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/settings/device_page/layout_behavior.js View 1 2 3 4 1 chunk +538 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/closure_compiler/externs/system_display.js View 1 chunk +8 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (6 generated)
stevenjb
Display layout 2/3 This is the biggest piece. The logic is *mostly* copied from display_layout_manager_multi.js, ...
4 years, 6 months ago (2016-06-24 21:24:53 UTC) #3
michaelpg
Awesome. Some nits, and I'm a little suspicious of the collision logic (but if it's ...
4 years, 5 months ago (2016-06-27 22:09:32 UTC) #5
stevenjb
So I did some extra testing to verify my cleanup of the snap logic and ...
4 years, 5 months ago (2016-06-27 23:25:47 UTC) #6
michaelpg
https://codereview.chromium.org/2097763004/diff/40001/chrome/browser/resources/settings/device_page/layout_behavior.js File chrome/browser/resources/settings/device_page/layout_behavior.js (right): https://codereview.chromium.org/2097763004/diff/40001/chrome/browser/resources/settings/device_page/layout_behavior.js#newcode85 chrome/browser/resources/settings/device_page/layout_behavior.js:85: // Snap to the closet edge On 2016/06/27 23:25:47, ...
4 years, 5 months ago (2016-06-29 16:42:08 UTC) #7
michaelpg
https://codereview.chromium.org/2097763004/diff/40001/chrome/browser/resources/settings/device_page/layout_behavior.js File chrome/browser/resources/settings/device_page/layout_behavior.js (right): https://codereview.chromium.org/2097763004/diff/40001/chrome/browser/resources/settings/device_page/layout_behavior.js#newcode99 chrome/browser/resources/settings/device_page/layout_behavior.js:99: if (layoutPosition != this.draglayoutPosition_ || dragLayoutPosition_ (as in properties) ...
4 years, 5 months ago (2016-06-29 19:58:46 UTC) #8
stevenjb
https://codereview.chromium.org/2097763004/diff/40001/chrome/browser/resources/settings/device_page/layout_behavior.js File chrome/browser/resources/settings/device_page/layout_behavior.js (right): https://codereview.chromium.org/2097763004/diff/40001/chrome/browser/resources/settings/device_page/layout_behavior.js#newcode85 chrome/browser/resources/settings/device_page/layout_behavior.js:85: // Snap to the closet edge On 2016/06/29 16:42:07, ...
4 years, 5 months ago (2016-06-29 22:34:41 UTC) #9
michaelpg
lgtm
4 years, 5 months ago (2016-07-01 18:11:52 UTC) #10
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/2097763004/80001
4 years, 5 months ago (2016-07-01 18:36:21 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-01 19:24:30 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-01 19:24:32 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-01 19:26:43 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c7f3b6cec255c73f4f3b1473bc14c4da547c0399
Cr-Commit-Position: refs/heads/master@{#403500}

Powered by Google App Engine
This is Rietveld 408576698