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

Issue 1648493002: Rely less on DisplayInfo in display_options.js (Closed)

Created:
4 years, 10 months ago by stevenjb
Modified:
4 years, 10 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rely less on DisplayInfo in display_options.js For extended desktop (non mirrored) layouts, |displays_| should only provide input parameters to the UI. Iteration over display layouts should occur in DisplayLayoutManager. This is necessary to support fake display layouts for testing (and provides a cleaner abstraction in general). This also fixes a couple of bugs related to changing the number of displays introduced in other recent re-factoring. BUG=576375 Committed: https://crrev.com/bbfe0d4e936fdc6277b733e33aa1aa7e8411b760 Cr-Commit-Position: refs/heads/master@{#371968}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -120 lines) Patch
M chrome/browser/resources/options/chromeos/display_layout_manager.js View 1 2 6 chunks +125 lines, -19 lines 0 comments Download
M chrome/browser/resources/options/chromeos/display_options.js View 1 10 chunks +42 lines, -101 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (7 generated)
stevenjb
4 years, 10 months ago (2016-01-27 23:13:35 UTC) #4
xiyuan
lgtm https://codereview.chromium.org/1648493002/diff/20001/chrome/browser/resources/options/chromeos/display_layout_manager.js File chrome/browser/resources/options/chromeos/display_layout_manager.js (right): https://codereview.chromium.org/1648493002/diff/20001/chrome/browser/resources/options/chromeos/display_layout_manager.js#newcode3 chrome/browser/resources/options/chromeos/display_layout_manager.js:3: */ remove? https://codereview.chromium.org/1648493002/diff/20001/chrome/browser/resources/options/chromeos/display_layout_manager.js#newcode177 chrome/browser/resources/options/chromeos/display_layout_manager.js:177: (div.offsetParent && layout.div == ...
4 years, 10 months ago (2016-01-28 00:13:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1648493002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1648493002/40001
4 years, 10 months ago (2016-01-28 01:04:07 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-01-28 02:23:39 UTC) #10
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/bbfe0d4e936fdc6277b733e33aa1aa7e8411b760 Cr-Commit-Position: refs/heads/master@{#371968}
4 years, 10 months ago (2016-01-28 02:24:45 UTC) #12
stevenjb
4 years, 10 months ago (2016-01-28 19:58:42 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1648493002/diff/20001/chrome/browser/resource...
File chrome/browser/resources/options/chromeos/display_layout_manager.js
(right):

https://codereview.chromium.org/1648493002/diff/20001/chrome/browser/resource...
chrome/browser/resources/options/chromeos/display_layout_manager.js:3: */
On 2016/01/28 00:13:35, xiyuan wrote:
> remove?

Something in my editor likes to add this but I haven't been able to figure out
when/why it's happening, argh. Removed.

https://codereview.chromium.org/1648493002/diff/20001/chrome/browser/resource...
chrome/browser/resources/options/chromeos/display_layout_manager.js:177:
(div.offsetParent && layout.div == div.offsetParent)) {
On 2016/01/28 00:13:35, xiyuan wrote:
> I wonder whether we need to recursively crawl up the Dom tree, in case we have
> more stuff put in the display div. findAncestor in utils.js [1] might be
useful
> if we need to do that.
> 
> [1]
>
https://code.google.com/p/chromium/codesearch#chromium/src/ui/webui/resources...

Noted for the new implementation. For this one, I'll keep it as-is for now.

Powered by Google App Engine
This is Rietveld 408576698