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

Issue 986843002: Scaffold for MD-Settings, inside chrome://md-settings. (Closed)

Created:
5 years, 9 months ago by michaelpg
Modified:
5 years, 9 months ago
Reviewers:
CC:
chromium-reviews, khorimoto+watch-md-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, jhawkins+watch-md-settings_chromium.org, orenb+watch-md-settings_chromium.org, arv+watch_chromium.org, stevenjb+watch-md-settings_chromium.org, jlklein+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

## Not ready for review -- dependent on https://codereview.chromium.org/981203007 Scaffold for MD-Settings, inside chrome://md-settings. This (Patch 6) is the add-on to issue 981203007 (Patch 5). It updates a11y_page, adds dummy_page, adds everything to Chrome and exposes cr-settings from chrome://md-settings. BUG=464979

Patch Set 1 #

Patch Set 2 : Add to chrome://md-settings #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : Add to chrome://md-settings #

Patch Set 5 : Same as 981203007 patch #5 #

Patch Set 6 : Expand scaffold and add to chrome://md-settings (point of this CL) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+639 lines, -166 lines) Patch
M chrome/browser/resources/md_settings/md_settings.html View 1 3 5 1 chunk +2 lines, -58 lines 0 comments Download
M chrome/browser/resources/settings/a11y_page/a11y_page.css View 1 3 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/a11y_page/a11y_page.html View 1 2 3 4 5 1 chunk +71 lines, -66 lines 0 comments Download
M chrome/browser/resources/settings/a11y_page/a11y_page.js View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A + chrome/browser/resources/settings/demo.css View 1 2 3 4 5 2 chunks +0 lines, -12 lines 0 comments Download
A chrome/browser/resources/settings/demo.html View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/dummy_page/dummy_page.html View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/dummy_page/dummy_page.js View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A + chrome/browser/resources/settings/help_pane/help_pane.css View 1 2 3 4 5 1 chunk +9 lines, -2 lines 0 comments Download
A chrome/browser/resources/settings/help_pane/help_pane.html View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/help_pane/help_pane.js View 5 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/settings.html View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/settings.js View 1 2 3 5 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_drawer/settings_drawer.html View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_drawer/settings_drawer.js View 1 2 3 4 5 3 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/resources/settings/settings_main/settings_main.css View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_main/settings_main.html View 1 2 3 4 5 1 chunk +17 lines, -5 lines 0 comments Download
M chrome/browser/resources/settings/settings_main/settings_main.js View 1 2 3 4 5 6 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/settings_menu/settings_menu.html View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_menu/settings_menu.js View 1 2 3 4 5 3 chunks +12 lines, -3 lines 0 comments Download
A chrome/browser/resources/settings/settings_page/settings_page.css View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/settings_page/settings_page.html View 3 5 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/settings_page/settings_page.js View 1 2 3 4 5 1 chunk +75 lines, -0 lines 0 comments Download
A + chrome/browser/resources/settings/settings_page/settings_page_header.css View 3 5 1 chunk +6 lines, -4 lines 0 comments Download
A chrome/browser/resources/settings/settings_page/settings_page_header.html View 3 5 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/settings_page/settings_page_header.js View 3 5 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 2 3 4 5 1 chunk +81 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_ui/settings_ui.html View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_ui/settings_ui.js View 1 2 3 4 5 2 chunks +11 lines, -2 lines 0 comments Download
A chrome/browser/resources/settings/utils/platform_info.js View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/utils/utils.html View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/webui/resources/polymer_resources.grdp View 1 5 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
Jeremy Klein
Just a first pass. I'm sure I missed a bunch here. Big +1 to splitting ...
5 years, 9 months ago (2015-03-07 23:55:14 UTC) #2
michaelpg
Sorry Jeremy, this is just an FYI patch! The one that up for review is ...
5 years, 9 months ago (2015-03-08 01:13:01 UTC) #3
Jeremy Klein
On 2015/03/08 01:13:01, michaelpg wrote: > Sorry Jeremy, this is just an FYI patch! The ...
5 years, 9 months ago (2015-03-08 01:20:08 UTC) #4
michaelpg
5 years, 9 months ago (2015-03-08 04:22:47 UTC) #5
https://codereview.chromium.org/986843002/diff/20001/chrome/browser/resources...
File chrome/browser/resources/settings/settings_page/settings_page.js (right):

https://codereview.chromium.org/986843002/diff/20001/chrome/browser/resources...
chrome/browser/resources/settings/settings_page/settings_page.js:27: prefs:
null,
Good stuff! This isn't out for review yet, but I wanted to respond.

On 2015/03/07 23:55:14, Jeremy Klein wrote:
> I don't think that all pages will need a prefs in the long run. This is one of
> the downfalls of inheritance IMO.

Agreed. The models will need to be included on a page-by-page basis. We could
have the individual pages include them, like how components can include
<app-globals> in Polymer examples.

> I think I'd prefer adding a
> cr-settings-page-metadata element for the titles, icon, and help. Each of the
> pages could have a metadata element, thus exposing a shared interface to the
> page container.

Putting shared properties in a metadata object provides an interface for the
container like you say, so we can use type annotations for closure, but then it
feels like we're letting closure dictate our design. Like, "pageTitle" is a core
property of what a page is, so giving a page a title via composition doesn't
seem natural. Can we look for a better compromise?

"shared interface" sounds good -- is there a way we could just do that, without
doing class-like inheritance or metadata elements? Would "@implements" help
here?

> I think this would make things less tightly coupled while also
> being more flexible in the transition to 0.8. WDYT?

I've been assuming 0.8 doesn't intend to *ship* without inheritance just because
the preview doesn't have it yet. Because it's a core part of the web component
spec and it's used throughout core-elements and paper-elements. IOW, we should
take advantage of inheritance where it makes sense -- not saying it does, here,
or necessarily will anywhere, but IMHO parity with a work-in-progress isn't
worth handicapping ourselves.

I'll write up these concerns in a design doc so we can talk about this in a more
permanent place.

Powered by Google App Engine
This is Rietveld 408576698