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

Issue 1758973002: MD Settings: Creating a <settings-dialog> element. (Closed)

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

Description

MD Settings: Creating a <settings-dialog> element. The new element uses the Light DOM to get populated. Example <my-new-dialog> <settings-dialog> <div class='title'>Title goes here</div> <div class='body'>Dialog body goes here</div> <div class='button-container'>buttons go here</div> <div class='footer'>footer content goes here</div> <settings-dialog> </my-new-dialog> Using the new dialog achieves code re-use for 1) Positioning title, body and button-container and footer. 2) Providing an 'x' close button at the top right. BUG=591585 Committed: https://crrev.com/c671afb138abe2e0c7e2bc69df1fb9da9e224c89 Cr-Commit-Position: refs/heads/master@{#379369}

Patch Set 1 #

Patch Set 2 : Refactoring more dialogs #

Patch Set 3 : Resolve conflicts. #

Patch Set 4 : Nits. #

Total comments: 2

Patch Set 5 : Remove paper-dialog, fix tests. #

Patch Set 6 : Fix ChromeOS test. #

Patch Set 7 : Resolve conflicts. #

Total comments: 2

Patch Set 8 : Inline styles #

Patch Set 9 : Remove obsolete include #

Total comments: 2

Patch Set 10 : Remove extra blank line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -211 lines) Patch
M chrome/browser/resources/settings/on_startup_page/startup_urls_page.html View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -27 lines 0 comments Download
M chrome/browser/resources/settings/reset_page/powerwash_dialog.html View 1 2 3 1 chunk +17 lines, -26 lines 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_page_dialog.css View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_profile_dialog.css View 1 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_profile_dialog.html View 1 2 3 2 chunks +18 lines, -27 lines 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_profile_dialog.js View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html View 1 2 3 1 chunk +27 lines, -38 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
A chrome/browser/resources/settings/settings_dialog.html View 1 2 3 4 5 6 7 8 9 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/settings_dialog.js View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_dialog_css.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -65 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/test/data/webui/settings/reset_page_test.js View 1 2 3 4 5 6 chunks +18 lines, -12 lines 0 comments Download
M chrome/test/data/webui/settings/search_engines_page_test.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (11 generated)
dpapad
This change is a refactoring of all dialogs that used settings_dialog_css.html, there should be no ...
4 years, 9 months ago (2016-03-03 02:13:36 UTC) #6
michaelpg
https://codereview.chromium.org/1758973002/diff/80001/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html File chrome/browser/resources/settings/reset_page/reset_profile_dialog.html (right): https://codereview.chromium.org/1758973002/diff/80001/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html#newcode14 chrome/browser/resources/settings/reset_page/reset_profile_dialog.html:14: <settings-dialog id="dialog"> so now our dialogs will wrap a ...
4 years, 9 months ago (2016-03-03 02:28:05 UTC) #8
dpapad
https://codereview.chromium.org/1758973002/diff/80001/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html File chrome/browser/resources/settings/reset_page/reset_profile_dialog.html (right): https://codereview.chromium.org/1758973002/diff/80001/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html#newcode14 chrome/browser/resources/settings/reset_page/reset_profile_dialog.html:14: <settings-dialog id="dialog"> On 2016/03/03 at 02:28:04, michaelpg wrote: > ...
4 years, 9 months ago (2016-03-03 19:25:47 UTC) #9
dschuyler
This new dialog may already work with dialog-dismiss and dialog-confirm. Please give them a try ...
4 years, 9 months ago (2016-03-04 02:29:48 UTC) #12
dpapad
I just tried dialog-dismiss, dialog-confirm and they work as expected (as documented). Clicking on a ...
4 years, 9 months ago (2016-03-04 02:45:58 UTC) #13
dschuyler
LGTM with a nit about an extra blank line. https://codereview.chromium.org/1758973002/diff/180001/chrome/browser/resources/settings/settings_dialog.html File chrome/browser/resources/settings/settings_dialog.html (right): https://codereview.chromium.org/1758973002/diff/180001/chrome/browser/resources/settings/settings_dialog.html#newcode62 chrome/browser/resources/settings/settings_dialog.html:62: ...
4 years, 9 months ago (2016-03-04 19:25:58 UTC) #14
dpapad
https://codereview.chromium.org/1758973002/diff/180001/chrome/browser/resources/settings/settings_dialog.html File chrome/browser/resources/settings/settings_dialog.html (right): https://codereview.chromium.org/1758973002/diff/180001/chrome/browser/resources/settings/settings_dialog.html#newcode62 chrome/browser/resources/settings/settings_dialog.html:62: On 2016/03/04 at 19:25:58, dschuyler wrote: > There is ...
4 years, 9 months ago (2016-03-04 20:08:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1758973002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1758973002/200001
4 years, 9 months ago (2016-03-04 20:10:37 UTC) #18
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 9 months ago (2016-03-04 21:50:59 UTC) #19
commit-bot: I haz the power
4 years, 9 months ago (2016-03-04 21:52:21 UTC) #21
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c671afb138abe2e0c7e2bc69df1fb9da9e224c89
Cr-Commit-Position: refs/heads/master@{#379369}

Powered by Google App Engine
This is Rietveld 408576698