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

Issue 902053003: Add cr-toggle-button to Chrome (Closed)

Created:
5 years, 10 months ago by michaelpg
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, 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

Add cr-toggle-button to Chrome Adds the chrome://resources/cr_elements URL, adding the custom elements in ui/webui/resources/cr_elements. Sample in chrome://md-settings. Also creates cr-events to forward events that don't cross the shadow root on their own. BUG=456284 Committed: https://crrev.com/43dff8c48a305f4212a753d2afb58ed1cdbdbbd8 Cr-Commit-Position: refs/heads/master@{#315455}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Renames, expand cr-events, style cr-toggle-button #

Total comments: 5

Patch Set 3 : more renames; add to chrome://md-settings #

Total comments: 9

Patch Set 4 : change cr-events api #

Total comments: 10

Patch Set 5 : #hex->rgb #

Patch Set 6 : jsdoc spacing #

Patch Set 7 : closure linter fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -1 line) Patch
M chrome/browser/resources/md_settings/md_settings.html View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/webui/shared_resources_data_source.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A ui/webui/resources/cr_elements/cr_events/cr-events.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_events/cr-events.js View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_toggle_button/cr-toggle-button.css View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_toggle_button/cr-toggle-button.html View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_toggle_button/cr-toggle-button.js View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements_resources.grdp View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M ui/webui/resources/polymer_resources.grdp View 1 2 chunks +24 lines, -0 lines 0 comments Download
M ui/webui/resources/webui_resources.grd View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (7 generated)
michaelpg
5 years, 10 months ago (2015-02-05 23:17:39 UTC) #2
michaelpg
5 years, 10 months ago (2015-02-05 23:17:39 UTC) #3
James Hawkins
Would you mind posting a screenshot?
5 years, 10 months ago (2015-02-05 23:22:22 UTC) #4
stevenjb
I like the location of ui/webui/resources/custom_elements/cr/ better than ui/webui/resources/js/cr/polymer_elements/, but I think I would prefer ...
5 years, 10 months ago (2015-02-05 23:36:21 UTC) #5
Jeremy Klein
https://codereview.chromium.org/902053003/diff/1/ui/webui/resources/custom_element_resources.grdp File ui/webui/resources/custom_element_resources.grdp (right): https://codereview.chromium.org/902053003/diff/1/ui/webui/resources/custom_element_resources.grdp#newcode18 ui/webui/resources/custom_element_resources.grdp:18: </grit-part> On 2015/02/05 23:36:21, stevenjb wrote: > This is ...
5 years, 10 months ago (2015-02-05 23:42:11 UTC) #6
michaelpg
https://codereview.chromium.org/902053003/diff/1/content/browser/webui/shared_resources_data_source.cc File content/browser/webui/shared_resources_data_source.cc (right): https://codereview.chromium.org/902053003/diff/1/content/browser/webui/shared_resources_data_source.cc#newcode32 content/browser/webui/shared_resources_data_source.cc:32: {"../../webui/resources/custom_elements/", "custom-elements/"} On 2015/02/05 23:36:21, stevenjb wrote: > This ...
5 years, 10 months ago (2015-02-06 08:55:43 UTC) #8
James Hawkins
https://codereview.chromium.org/902053003/diff/40001/ui/webui/resources/cr_element_resources.grdp File ui/webui/resources/cr_element_resources.grdp (right): https://codereview.chromium.org/902053003/diff/40001/ui/webui/resources/cr_element_resources.grdp#newcode3 ui/webui/resources/cr_element_resources.grdp:3: <structure name="IDR_CR_ELEMENTS_TOGGLE_BUTTON_CR_TOGGLE_BUTTON_CSS" The IDR name is long enough to ...
5 years, 10 months ago (2015-02-06 15:19:10 UTC) #9
stevenjb
It seems like the directory name should be: ui/webui/resources/cr_elements/cr_toggle_button/ i.e. use _ instead of - ...
5 years, 10 months ago (2015-02-06 17:50:30 UTC) #10
michaelpg
On 2015/02/06 17:50:30, stevenjb wrote: > It seems like the directory name should be: > ...
5 years, 10 months ago (2015-02-06 19:13:09 UTC) #11
michaelpg
On 2015/02/06 17:50:30, stevenjb wrote: > It seems like the directory name should be: > ...
5 years, 10 months ago (2015-02-06 21:32:02 UTC) #12
Jeremy Klein
On 2015/02/06 21:32:02, michaelpg wrote: > On 2015/02/06 17:50:30, stevenjb wrote: > > It seems ...
5 years, 10 months ago (2015-02-06 21:35:47 UTC) #13
Jeremy Klein
lgtm https://codereview.chromium.org/902053003/diff/60001/chrome/browser/resources/md_settings/md_settings.html File chrome/browser/resources/md_settings/md_settings.html (right): https://codereview.chromium.org/902053003/diff/60001/chrome/browser/resources/md_settings/md_settings.html#newcode18 chrome/browser/resources/md_settings/md_settings.html:18: <p> Nit: Not that it matters at this ...
5 years, 10 months ago (2015-02-09 18:24:51 UTC) #14
Oren Blasberg
https://codereview.chromium.org/902053003/diff/60001/chrome/browser/resources/md_settings/md_settings.html File chrome/browser/resources/md_settings/md_settings.html (right): https://codereview.chromium.org/902053003/diff/60001/chrome/browser/resources/md_settings/md_settings.html#newcode18 chrome/browser/resources/md_settings/md_settings.html:18: <p> On 2015/02/09 18:24:51, Jeremy Klein wrote: > Nit: ...
5 years, 10 months ago (2015-02-09 18:27:32 UTC) #15
stevenjb
https://codereview.chromium.org/902053003/diff/40001/ui/webui/resources/cr_element_resources.grdp File ui/webui/resources/cr_element_resources.grdp (right): https://codereview.chromium.org/902053003/diff/40001/ui/webui/resources/cr_element_resources.grdp#newcode3 ui/webui/resources/cr_element_resources.grdp:3: <structure name="IDR_CR_ELEMENTS_TOGGLE_BUTTON_CR_TOGGLE_BUTTON_CSS" On 2015/02/06 17:50:30, stevenjb wrote: > On ...
5 years, 10 months ago (2015-02-09 18:33:01 UTC) #16
Jeremy Klein
lgtm https://codereview.chromium.org/902053003/diff/60001/ui/webui/resources/cr_elements/cr_toggle_button/cr-toggle-button.js File ui/webui/resources/cr_elements/cr_toggle_button/cr-toggle-button.js (right): https://codereview.chromium.org/902053003/diff/60001/ui/webui/resources/cr_elements/cr_toggle_button/cr-toggle-button.js#newcode6 ui/webui/resources/cr_elements/cr_toggle_button/cr-toggle-button.js:6: * @fileoverview Should we make it the convention ...
5 years, 10 months ago (2015-02-09 19:20:25 UTC) #17
Jeremy Klein
lgtm
5 years, 10 months ago (2015-02-09 19:20:26 UTC) #18
michaelpg
Hope to get this in today. https://codereview.chromium.org/902053003/diff/40001/ui/webui/resources/cr_element_resources.grdp File ui/webui/resources/cr_element_resources.grdp (right): https://codereview.chromium.org/902053003/diff/40001/ui/webui/resources/cr_element_resources.grdp#newcode3 ui/webui/resources/cr_element_resources.grdp:3: <structure name="IDR_CR_ELEMENTS_TOGGLE_BUTTON_CR_TOGGLE_BUTTON_CSS" On ...
5 years, 10 months ago (2015-02-09 22:11:19 UTC) #21
michaelpg
On 2015/02/05 23:22:22, James Hawkins wrote: > Would you mind posting a screenshot? http://i.imgur.com/duj2oOe.png I ...
5 years, 10 months ago (2015-02-09 22:13:56 UTC) #22
James Hawkins
LGTM with nits. I'm still concerned about the need for cr-events, but I want to ...
5 years, 10 months ago (2015-02-09 22:24:35 UTC) #23
stevenjb
lgtm
5 years, 10 months ago (2015-02-09 22:34:16 UTC) #24
michaelpg
https://codereview.chromium.org/902053003/diff/80001/ui/webui/resources/cr_elements/cr_events/cr-events.js File ui/webui/resources/cr_elements/cr_events/cr-events.js (right): https://codereview.chromium.org/902053003/diff/80001/ui/webui/resources/cr_elements/cr_events/cr-events.js#newcode31 ui/webui/resources/cr_elements/cr_events/cr-events.js:31: /** On 2015/02/09 22:24:34, James Hawkins wrote: > nit: ...
5 years, 10 months ago (2015-02-09 22:40:05 UTC) #26
James Hawkins
https://codereview.chromium.org/902053003/diff/80001/ui/webui/resources/cr_elements/cr_events/cr-events.js File ui/webui/resources/cr_elements/cr_events/cr-events.js (right): https://codereview.chromium.org/902053003/diff/80001/ui/webui/resources/cr_elements/cr_events/cr-events.js#newcode31 ui/webui/resources/cr_elements/cr_events/cr-events.js:31: /** On 2015/02/09 22:40:04, michaelpg wrote: > On 2015/02/09 ...
5 years, 10 months ago (2015-02-09 22:46:23 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/902053003/140001
5 years, 10 months ago (2015-02-09 23:07:33 UTC) #29
michaelpg
On 2015/02/09 22:24:35, James Hawkins wrote: > LGTM with nits. > > I'm still concerned ...
5 years, 10 months ago (2015-02-09 23:08:31 UTC) #30
Dan Beam
https://codereview.chromium.org/902053003/diff/80001/ui/webui/resources/cr_elements/cr_events/cr-events.js File ui/webui/resources/cr_elements/cr_events/cr-events.js (right): https://codereview.chromium.org/902053003/diff/80001/ui/webui/resources/cr_elements/cr_events/cr-events.js#newcode31 ui/webui/resources/cr_elements/cr_events/cr-events.js:31: /** On 2015/02/09 22:46:23, James Hawkins wrote: > On ...
5 years, 10 months ago (2015-02-10 00:23:38 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 10 months ago (2015-02-10 00:46:09 UTC) #32
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/43dff8c48a305f4212a753d2afb58ed1cdbdbbd8 Cr-Commit-Position: refs/heads/master@{#315455}
5 years, 10 months ago (2015-02-10 00:47:02 UTC) #33
stevenjb
Based on comments from https://codereview.chromium.org/874283006/, should we do a follow-up patch replacing - with _ ...
5 years, 10 months ago (2015-02-10 17:16:49 UTC) #34
James Hawkins
5 years, 10 months ago (2015-02-10 17:50:45 UTC) #35
Message was sent while issue was closed.
On 2015/02/10 17:16:49, stevenjb wrote:
> Based on comments from https://codereview.chromium.org/874283006/, should we
do
> a follow-up patch replacing - with _ in filenames?

Yes, please!

Powered by Google App Engine
This is Rietveld 408576698