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

Issue 874283006: Add custom Polymer network icon element (Closed)

Created:
5 years, 10 months ago by stevenjb
Modified:
5 years, 10 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, dzhioev (left Google), tjsavage_google.com, arv (Not doing code reviews), Tyler Breisacher (Chromium), Evan Stade
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add custom Polymer network icon element Ths CL does the following: * Introduces a new network icon custom Polymer element * Adds a simple paper-button to chrome://network to test Polymer in WebUI * Uses the new custom element in the chrome://network UI BUG=455499 Committed: https://crrev.com/0b0e6ba504fea8c8db1108296386282224d0e751 Cr-Commit-Position: refs/heads/master@{#318114}

Patch Set 1 #

Total comments: 66

Patch Set 2 : Add cr-onc-data, move files, rebase #

Total comments: 34

Patch Set 3 : Feedback #

Patch Set 4 : Rebase + use CrOnc.NetworkConfigType #

Total comments: 34

Patch Set 5 : Feedback, fix secure image and layout #

Patch Set 6 : Rebase, rename files #

Total comments: 2

Patch Set 7 : Rebase, Alphabetize cr_elements_resources.grdp #

Patch Set 8 : Add externs, improve typing #

Total comments: 12

Patch Set 9 : More feedback #

Patch Set 10 : Spelling #

Total comments: 2

Patch Set 11 : Rebase + Elim extra div in icon #

Total comments: 87

Patch Set 12 : JS Formatting feedback. #

Total comments: 22

Patch Set 13 : More feedback #

Patch Set 14 : Rebase #

Total comments: 26

Patch Set 15 : Restore function(), more feedback #

Patch Set 16 : Rebase #

Patch Set 17 : Remove empty icon #

Patch Set 18 : Merge fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+595 lines, -59 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/network_ui/compiled_resources.gyp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/network_ui/network_ui.css View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +34 lines, -4 lines 0 comments Download
M chrome/browser/resources/chromeos/network_ui/network_ui.html View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/network_ui/network_ui.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +120 lines, -53 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/network_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +47 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +11 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +158 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon_externs.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +26 lines, -0 lines 0 comments Download
A + ui/webui/resources/cr_elements/cr_network_icon/ethernet.png View 1 Binary file 0 comments Download
A + ui/webui/resources/cr_elements/cr_network_icon/mobile.png View 1 Binary file 0 comments Download
A ui/webui/resources/cr_elements/cr_network_icon/secure.png View 1 2 3 4 5 Binary file 0 comments Download
A + ui/webui/resources/cr_elements/cr_network_icon/vpn.png View 1 Binary file 0 comments Download
A + ui/webui/resources/cr_elements/cr_network_icon/wifi.png View 1 Binary file 0 comments Download
A ui/webui/resources/cr_elements/cr_onc/cr_onc_data.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_onc/cr_onc_data.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +52 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_onc/cr_onc_data_externs.js View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +53 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements_images.grdp View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M ui/webui/resources/cr_elements_resources.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +18 lines, -0 lines 0 comments Download
M ui/webui/resources/webui_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 96 (22 generated)
stevenjb
Please consider this an extremely early draft of a chrome custom element. At minimum we ...
5 years, 10 months ago (2015-02-05 01:45:46 UTC) #2
Jeremy Klein
On 2015/02/05 01:45:46, stevenjb wrote: > Please consider this an extremely early draft of a ...
5 years, 10 months ago (2015-02-05 05:05:21 UTC) #3
Jeremy Klein
https://codereview.chromium.org/874283006/diff/1/ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js File ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js (right): https://codereview.chromium.org/874283006/diff/1/ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js#newcode20 ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js:20: /** @const */ var kResourceImageBase = nit: @const {string} ...
5 years, 10 months ago (2015-02-05 05:05:30 UTC) #4
michaelpg
On 2015/02/05 05:05:21, jlklein wrote: > On 2015/02/05 01:45:46, stevenjb wrote: > > Please consider ...
5 years, 10 months ago (2015-02-05 06:45:52 UTC) #5
Jeremy Klein
https://codereview.chromium.org/874283006/diff/1/ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js File ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js (right): https://codereview.chromium.org/874283006/diff/1/ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js#newcode20 ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js:20: /** @const */ var kResourceImageBase = On 2015/02/05 06:45:52, ...
5 years, 10 months ago (2015-02-05 07:30:36 UTC) #6
Jeremy Klein
https://codereview.chromium.org/874283006/diff/1/chrome/browser/resources/chromeos/network_ui/network_ui.js File chrome/browser/resources/chromeos/network_ui/network_ui.js (right): https://codereview.chromium.org/874283006/diff/1/chrome/browser/resources/chromeos/network_ui/network_ui.js#newcode61 chrome/browser/resources/chromeos/network_ui/network_ui.js:61: * @return {DOMElement} The created td element that displays ...
5 years, 10 months ago (2015-02-05 18:45:56 UTC) #7
Dan Beam
https://codereview.chromium.org/874283006/diff/1/chrome/browser/resources/chromeos/network_ui/network_ui.js File chrome/browser/resources/chromeos/network_ui/network_ui.js (right): https://codereview.chromium.org/874283006/diff/1/chrome/browser/resources/chromeos/network_ui/network_ui.js#newcode61 chrome/browser/resources/chromeos/network_ui/network_ui.js:61: * @return {DOMElement} The created td element that displays ...
5 years, 10 months ago (2015-02-05 18:54:14 UTC) #8
stevenjb
First round of feedback, mostly small changes. I am putting together a separate model for ...
5 years, 10 months ago (2015-02-05 22:41:35 UTC) #9
stevenjb
On 2015/02/05 05:05:21, Jeremy Klein wrote: > On 2015/02/05 01:45:46, stevenjb wrote: > > Please ...
5 years, 10 months ago (2015-02-05 22:42:49 UTC) #10
Dan Beam
https://codereview.chromium.org/874283006/diff/1/ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js File ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js (right): https://codereview.chromium.org/874283006/diff/1/ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js#newcode18 ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js:18: var IconParams_; On 2015/02/05 22:41:33, stevenjb wrote: > On ...
5 years, 10 months ago (2015-02-05 22:52:35 UTC) #11
michaelpg
https://codereview.chromium.org/874283006/diff/1/chrome/browser/resources/chromeos/network_ui/network_ui.html File chrome/browser/resources/chromeos/network_ui/network_ui.html (right): https://codereview.chromium.org/874283006/diff/1/chrome/browser/resources/chromeos/network_ui/network_ui.html#newcode10 chrome/browser/resources/chromeos/network_ui/network_ui.html:10: <link rel="import" href="chrome://resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.html"> On 2015/02/05 22:41:32, stevenjb wrote: > ...
5 years, 10 months ago (2015-02-06 18:52:38 UTC) #13
James Hawkins
https://codereview.chromium.org/874283006/diff/1/ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js File ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js (right): https://codereview.chromium.org/874283006/diff/1/ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js#newcode134 ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js:134: if (params.showDisconnected && !params.connected) { On 2015/02/06 18:52:38, michaelpg ...
5 years, 10 months ago (2015-02-06 18:58:45 UTC) #14
stevenjb
PTAL
5 years, 10 months ago (2015-02-06 21:31:26 UTC) #15
James Hawkins
https://codereview.chromium.org/874283006/diff/20001/chrome/browser/resources/chromeos/network_ui/network_ui.js File chrome/browser/resources/chromeos/network_ui/network_ui.js (right): https://codereview.chromium.org/874283006/diff/20001/chrome/browser/resources/chromeos/network_ui/network_ui.js#newcode40 chrome/browser/resources/chromeos/network_ui/network_ui.js:40: /** @type {cr-onc-data} */ document.createElement('cr-onc-data'); /** @type {..} */ ...
5 years, 10 months ago (2015-02-06 21:37:37 UTC) #16
Jeremy Klein
https://codereview.chromium.org/874283006/diff/20001/chrome/browser/resources/chromeos/network_ui/network_ui.js File chrome/browser/resources/chromeos/network_ui/network_ui.js (right): https://codereview.chromium.org/874283006/diff/20001/chrome/browser/resources/chromeos/network_ui/network_ui.js#newcode40 chrome/browser/resources/chromeos/network_ui/network_ui.js:40: /** @type {cr-onc-data} */ document.createElement('cr-onc-data'); On 2015/02/06 21:37:37, James ...
5 years, 10 months ago (2015-02-09 18:16:31 UTC) #17
michaelpg
https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_elements/cr_network_icon/cr-network-icon.js File ui/webui/resources/cr_elements/cr_network_icon/cr-network-icon.js (right): https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_elements/cr_network_icon/cr-network-icon.js#newcode20 ui/webui/resources/cr_elements/cr_network_icon/cr-network-icon.js:20: var IconParams_; Still think this should neither be @private ...
5 years, 10 months ago (2015-02-09 19:38:54 UTC) #18
Jeremy Klein
https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_elements/cr_network_icon/cr-network-icon.js File ui/webui/resources/cr_elements/cr_network_icon/cr-network-icon.js (right): https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_elements/cr_network_icon/cr-network-icon.js#newcode20 ui/webui/resources/cr_elements/cr_network_icon/cr-network-icon.js:20: var IconParams_; On 2015/02/09 19:38:54, michaelpg wrote: > Still ...
5 years, 10 months ago (2015-02-09 19:45:49 UTC) #19
stevenjb
PTAL I ensured that this still compiles with the inclusion of cr-onc-types.js. https://codereview.chromium.org/874283006/diff/20001/chrome/browser/resources/chromeos/network_ui/network_ui.js File chrome/browser/resources/chromeos/network_ui/network_ui.js ...
5 years, 10 months ago (2015-02-10 00:22:04 UTC) #21
Jeremy Klein
https://codereview.chromium.org/874283006/diff/20001/chrome/browser/resources/chromeos/network_ui/network_ui.js File chrome/browser/resources/chromeos/network_ui/network_ui.js (right): https://codereview.chromium.org/874283006/diff/20001/chrome/browser/resources/chromeos/network_ui/network_ui.js#newcode40 chrome/browser/resources/chromeos/network_ui/network_ui.js:40: /** @type {cr-onc-data} */ document.createElement('cr-onc-data'); On 2015/02/10 00:22:04, stevenjb ...
5 years, 10 months ago (2015-02-10 00:31:09 UTC) #22
stevenjb
https://codereview.chromium.org/874283006/diff/20001/chrome/browser/resources/chromeos/network_ui/network_ui.js File chrome/browser/resources/chromeos/network_ui/network_ui.js (right): https://codereview.chromium.org/874283006/diff/20001/chrome/browser/resources/chromeos/network_ui/network_ui.js#newcode40 chrome/browser/resources/chromeos/network_ui/network_ui.js:40: /** @type {cr-onc-data} */ document.createElement('cr-onc-data'); On 2015/02/10 00:31:09, Jeremy ...
5 years, 10 months ago (2015-02-10 03:21:14 UTC) #23
michaelpg
Ugh, I just realized we're mixing underscores and dashes in the same directory: ui/webui/resources/cr_elements/cr_network_icon/cr-network-icon.js ui/webui/resources/cr_elements/cr_network_icon/info_64.png ...
5 years, 10 months ago (2015-02-10 08:11:26 UTC) #24
James Hawkins
On 2015/02/10 08:11:26, michaelpg wrote: > Ugh, I just realized we're mixing underscores and dashes ...
5 years, 10 months ago (2015-02-10 15:27:43 UTC) #25
Jeremy Klein
On 2015/02/10 15:27:43, James Hawkins wrote: > On 2015/02/10 08:11:26, michaelpg wrote: > > Ugh, ...
5 years, 10 months ago (2015-02-10 17:44:11 UTC) #26
James Hawkins
On 2015/02/10 17:44:11, Jeremy Klein wrote: > On 2015/02/10 15:27:43, James Hawkins wrote: > > ...
5 years, 10 months ago (2015-02-10 17:52:11 UTC) #27
stevenjb
PTAL https://codereview.chromium.org/874283006/diff/80001/chrome/browser/resources/chromeos/network_ui/network_ui.css File chrome/browser/resources/chromeos/network_ui/network_ui.css (right): https://codereview.chromium.org/874283006/diff/80001/chrome/browser/resources/chromeos/network_ui/network_ui.css#newcode35 chrome/browser/resources/chromeos/network_ui/network_ui.css:35: padding-left: 8px; On 2015/02/10 08:11:24, michaelpg wrote: > ...
5 years, 10 months ago (2015-02-11 00:16:12 UTC) #28
stevenjb
(Rebased and renamed consistently with the toggle button CL)
5 years, 10 months ago (2015-02-11 00:16:57 UTC) #29
Jeremy Klein
I'd like to put in one more urge to make "Element" type docs more specific ...
5 years, 10 months ago (2015-02-11 00:31:30 UTC) #30
stevenjb
I am totally OK with using something other than "Element", and this CL is not ...
5 years, 10 months ago (2015-02-11 00:39:58 UTC) #31
chromium-reviews
Ok, let's talk about it on Thursday. I can explain in more detail then. On ...
5 years, 10 months ago (2015-02-11 00:42:15 UTC) #32
michaelpg
https://codereview.chromium.org/874283006/diff/80001/chrome/browser/resources/chromeos/network_ui/network_ui.js File chrome/browser/resources/chromeos/network_ui/network_ui.js (right): https://codereview.chromium.org/874283006/diff/80001/chrome/browser/resources/chromeos/network_ui/network_ui.js#newcode62 chrome/browser/resources/chromeos/network_ui/network_ui.js:62: var dict = /** @type {!Object} */ (networkState); On ...
5 years, 10 months ago (2015-02-11 00:47:29 UTC) #33
James Hawkins
https://codereview.chromium.org/874283006/diff/80001/chrome/browser/resources/chromeos/network_ui/network_ui.js File chrome/browser/resources/chromeos/network_ui/network_ui.js (right): https://codereview.chromium.org/874283006/diff/80001/chrome/browser/resources/chromeos/network_ui/network_ui.js#newcode62 chrome/browser/resources/chromeos/network_ui/network_ui.js:62: var dict = /** @type {!Object} */ (networkState); On ...
5 years, 10 months ago (2015-02-11 00:48:34 UTC) #34
michaelpg
On 2015/02/11 00:48:34, James Hawkins wrote: > https://codereview.chromium.org/874283006/diff/80001/chrome/browser/resources/chromeos/network_ui/network_ui.js > File chrome/browser/resources/chromeos/network_ui/network_ui.js (right): > > https://codereview.chromium.org/874283006/diff/80001/chrome/browser/resources/chromeos/network_ui/network_ui.js#newcode62 ...
5 years, 10 months ago (2015-02-11 00:56:04 UTC) #35
stevenjb
https://codereview.chromium.org/874283006/diff/120001/ui/webui/resources/cr_elements_resources.grdp File ui/webui/resources/cr_elements_resources.grdp (right): https://codereview.chromium.org/874283006/diff/120001/ui/webui/resources/cr_elements_resources.grdp#newcode30 ui/webui/resources/cr_elements_resources.grdp:30: <structure name="IDR_CR_ELEMENTS_ONC_DATA_HTML" On 2015/02/11 00:47:28, michaelpg wrote: > optional ...
5 years, 10 months ago (2015-02-11 01:12:33 UTC) #36
stevenjb
Now with more better type checking! PTAL.
5 years, 10 months ago (2015-02-13 19:41:19 UTC) #37
Jeremy Klein
Much nicer. Thanks Steven! https://codereview.chromium.org/874283006/diff/160001/chrome/browser/resources/chromeos/network_ui/compiled_resources.gyp File chrome/browser/resources/chromeos/network_ui/compiled_resources.gyp (right): https://codereview.chromium.org/874283006/diff/160001/chrome/browser/resources/chromeos/network_ui/compiled_resources.gyp#newcode17 chrome/browser/resources/chromeos/network_ui/compiled_resources.gyp:17: '../../../../../ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js', This one should just ...
5 years, 10 months ago (2015-02-13 19:56:41 UTC) #38
stevenjb
PTAL https://codereview.chromium.org/874283006/diff/160001/chrome/browser/resources/chromeos/network_ui/compiled_resources.gyp File chrome/browser/resources/chromeos/network_ui/compiled_resources.gyp (right): https://codereview.chromium.org/874283006/diff/160001/chrome/browser/resources/chromeos/network_ui/compiled_resources.gyp#newcode17 chrome/browser/resources/chromeos/network_ui/compiled_resources.gyp:17: '../../../../../ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js', On 2015/02/13 19:56:40, Jeremy Klein wrote: > ...
5 years, 10 months ago (2015-02-13 21:12:58 UTC) #39
Jeremy Klein
lgtm We'll definitely need to work on accessibility for this before launching it, but this ...
5 years, 10 months ago (2015-02-13 21:38:50 UTC) #40
Nikita (slow)
cc: dzhioev@
5 years, 10 months ago (2015-02-16 08:23:19 UTC) #42
stevenjb
Ping. Any more feedback before we commit this? James, I think I need at least ...
5 years, 10 months ago (2015-02-17 18:26:32 UTC) #44
James Hawkins
On 2015/02/17 18:26:32, stevenjb wrote: > Ping. Any more feedback before we commit this? > ...
5 years, 10 months ago (2015-02-17 18:36:34 UTC) #45
stevenjb
dbeam@ - would you mind taking another look at this? Since it will to some ...
5 years, 10 months ago (2015-02-17 18:39:44 UTC) #47
Dan Beam
i don't see anything majorly wrong with how you're using polymer, but I haven't done ...
5 years, 10 months ago (2015-02-20 01:02:44 UTC) #51
Jeremy Klein
https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js File ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js (right): https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js#newcode70 ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js:70: * @type string On 2015/02/20 01:02:43, Dan Beam wrote: ...
5 years, 10 months ago (2015-02-20 01:24:00 UTC) #52
Jeremy Klein
https://codereview.chromium.org/874283006/diff/220001/chrome/browser/resources/chromeos/network_ui/network_ui.html File chrome/browser/resources/chromeos/network_ui/network_ui.html (right): https://codereview.chromium.org/874283006/diff/220001/chrome/browser/resources/chromeos/network_ui/network_ui.html#newcode11 chrome/browser/resources/chromeos/network_ui/network_ui.html:11: <link rel="import" href="chrome://resources/cr_elements/cr_network_icon/cr_network_icon.html"> On 2015/02/20 01:02:42, Dan Beam wrote: ...
5 years, 10 months ago (2015-02-20 02:10:52 UTC) #53
Jeremy Klein
https://codereview.chromium.org/874283006/diff/220001/chrome/browser/resources/chromeos/network_ui/network_ui.html File chrome/browser/resources/chromeos/network_ui/network_ui.html (right): https://codereview.chromium.org/874283006/diff/220001/chrome/browser/resources/chromeos/network_ui/network_ui.html#newcode11 chrome/browser/resources/chromeos/network_ui/network_ui.html:11: <link rel="import" href="chrome://resources/cr_elements/cr_network_icon/cr_network_icon.html"> On 2015/02/20 02:10:52, Jeremy Klein wrote: ...
5 years, 10 months ago (2015-02-20 02:15:38 UTC) #54
stevenjb
Thanks for reviewing Dan, PTAL. Also, there are some questions in there for everyone. https://codereview.chromium.org/874283006/diff/220001/chrome/browser/resources/chromeos/network_ui/network_ui.css ...
5 years, 10 months ago (2015-02-20 02:22:48 UTC) #55
Dan Beam
https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js File ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js (right): https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js#newcode44 ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js:44: } On 2015/02/20 02:22:47, stevenjb wrote: > On 2015/02/20 ...
5 years, 10 months ago (2015-02-20 04:01:24 UTC) #56
michaelpg
https://codereview.chromium.org/874283006/diff/220001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/874283006/diff/220001/chrome/app/chromeos_strings.grdp#newcode5869 chrome/app/chromeos_strings.grdp:5869: Default Network: <ph name="NETWORK">$1<ex>Linksys</ex></ph> State: <ph name="STATE">$2<ex>Connected</ex></ph> Just curious, ...
5 years, 10 months ago (2015-02-20 10:00:17 UTC) #57
Jeremy Klein
https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js File ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js (right): https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js#newcode87 ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js:87: On 2015/02/20 10:00:17, michaelpg wrote: > On 2015/02/20 02:22:47, ...
5 years, 10 months ago (2015-02-20 18:32:26 UTC) #58
stevenjb
On 2015/02/20 18:32:26, Jeremy Klein wrote: > https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js > File ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js (right): > > https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js#newcode87 ...
5 years, 10 months ago (2015-02-20 19:48:13 UTC) #59
Jeremy Klein
On 2015/02/20 19:48:13, stevenjb wrote: > On 2015/02/20 18:32:26, Jeremy Klein wrote: > > > ...
5 years, 10 months ago (2015-02-20 22:08:50 UTC) #60
Dan Beam
lgtm as far as I'm concerned... https://codereview.chromium.org/874283006/diff/240001/chrome/browser/resources/chromeos/network_ui/network_ui.css File chrome/browser/resources/chromeos/network_ui/network_ui.css (right): https://codereview.chromium.org/874283006/diff/240001/chrome/browser/resources/chromeos/network_ui/network_ui.css#newcode9 chrome/browser/resources/chromeos/network_ui/network_ui.css:9: color: rgb(255, 255, ...
5 years, 10 months ago (2015-02-21 01:07:57 UTC) #61
stevenjb
Responses to PS 11 (apologies, these never got sent). https://codereview.chromium.org/874283006/diff/220001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/874283006/diff/220001/chrome/app/chromeos_strings.grdp#newcode5869 chrome/app/chromeos_strings.grdp:5869: ...
5 years, 10 months ago (2015-02-23 19:23:08 UTC) #62
Dan Beam
lgtm https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js File ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js (right): https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js#newcode5 ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js:5: On 2015/02/23 19:23:08, stevenjb wrote: > On 2015/02/20 ...
5 years, 10 months ago (2015-02-23 19:27:59 UTC) #63
Dan Beam
https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js File ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js (right): https://codereview.chromium.org/874283006/diff/220001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js#newcode44 ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js:44: } On 2015/02/23 19:23:08, stevenjb wrote: > On 2015/02/20 ...
5 years, 10 months ago (2015-02-23 19:43:02 UTC) #64
Tyler Breisacher (Chromium)
https://codereview.chromium.org/874283006/diff/1/ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js File ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js (right): https://codereview.chromium.org/874283006/diff/1/ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js#newcode20 ui/webui/resources/js/cr/polymer_elements/cr_network_icon/cr-network-icon.js:20: /** @const */ var kResourceImageBase = On 2015/02/05 06:45:52, ...
5 years, 10 months ago (2015-02-23 20:50:52 UTC) #66
stevenjb
Changes from last round of comments. PTAL the changes to cr_network_icon.js since I removed the ...
5 years, 10 months ago (2015-02-23 21:31:58 UTC) #67
stevenjb
Note: Now that 42 has branched I'm hoping to get this in soon. With two ...
5 years, 10 months ago (2015-02-23 22:19:12 UTC) #68
Dan Beam
still lgtm https://codereview.chromium.org/874283006/diff/280001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js File ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js (right): https://codereview.chromium.org/874283006/diff/280001/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js#newcode29 ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js:29: IconParams: {}, unless these change, make them ...
5 years, 10 months ago (2015-02-24 01:02:48 UTC) #69
michaelpg
I am become Dan, the destroyer of --worlds-- style errors. LGTM https://codereview.chromium.org/874283006/diff/280001/chrome/browser/resources/chromeos/network_ui/network_ui.js File chrome/browser/resources/chromeos/network_ui/network_ui.js (right): ...
5 years, 10 months ago (2015-02-24 07:24:58 UTC) #70
stevenjb
OK, I restored the function() wrapper, but without the extra indentation, which I think matches ...
5 years, 10 months ago (2015-02-24 19:28:01 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874283006/300001
5 years, 10 months ago (2015-02-24 19:28:53 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/61658)
5 years, 10 months ago (2015-02-24 19:34:25 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874283006/320001
5 years, 10 months ago (2015-02-24 19:51:14 UTC) #79
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/61670)
5 years, 10 months ago (2015-02-24 19:56:48 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874283006/340001
5 years, 10 months ago (2015-02-24 22:21:30 UTC) #84
commit-bot: I haz the power
Try jobs failed on following builders: android_rel_tests_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_rel_tests_recipe/builds/5446)
5 years, 10 months ago (2015-02-24 23:27:56 UTC) #86
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/874283006/360001
5 years, 10 months ago (2015-02-25 18:14:21 UTC) #89
commit-bot: I haz the power
Committed patchset #18 (id:360001)
5 years, 10 months ago (2015-02-25 21:09:17 UTC) #90
commit-bot: I haz the power
Patchset 18 (id:??) landed as https://crrev.com/0b0e6ba504fea8c8db1108296386282224d0e751 Cr-Commit-Position: refs/heads/master@{#318114}
5 years, 10 months ago (2015-02-25 21:09:48 UTC) #91
pneubeck (no reviews)
https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html File ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html (right): https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html#newcode3 ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html:3: <polymer-element name="cr-onc-data"> Out of curiosity, could someone please explain ...
5 years, 10 months ago (2015-02-26 09:10:37 UTC) #93
stevenjb
https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html File ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html (right): https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html#newcode3 ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html:3: <polymer-element name="cr-onc-data"> On 2015/02/26 09:10:36, pneubeck wrote: > Out ...
5 years, 10 months ago (2015-02-26 18:04:05 UTC) #94
michaelpg
https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html File ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html (right): https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html#newcode3 ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html:3: <polymer-element name="cr-onc-data"> On 2015/02/26 18:04:05, stevenjb wrote: > On ...
5 years, 10 months ago (2015-02-27 04:12:16 UTC) #95
pneubeck (no reviews)
5 years, 10 months ago (2015-02-27 11:29:55 UTC) #96
Message was sent while issue was closed.
On 2015/02/27 04:12:16, michaelpg wrote:
>
https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_el...
> File ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html (right):
> 
>
https://codereview.chromium.org/874283006/diff/20001/ui/webui/resources/cr_el...
> ui/webui/resources/cr_elements/cr_onc/cr-onc-data.html:3: <polymer-element
> name="cr-onc-data">
> On 2015/02/26 18:04:05, stevenjb wrote:
> > On 2015/02/26 09:10:36, pneubeck wrote:
> > > Out of curiosity, could someone please explain why cr-onc-data is defined
as
> a
> > > DOM element although it is a collection of functions that has no relation
to
> > DOM
> > > at all?
> > It does have a relationship to the DOM, just not as a -visible- element.
> > 
> > We need this to be a polymer element to take advantage of data binding, e.g.
> > here we assign a cr-onc-data element to the networkState property of a
> > cr-network-icon element:
> > 
> >
>
https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/res...
> > 
> 
> TL;DR: I don't think we have a great reason. We aren't using anything
> Polymer-specific.
> 
> This isn't actually data binding -- that refers to binding some DOM within a
> Polymer template to some JS object. 
> 
> In this case, we're using two things:
>     1. a changed watcher on the networkState property of the Polymer object
> cr-network-icon;
>     2. a Polymer element which defines the cr-onc-data prototype and lets us
> construct cr-onc-data objects using document.createElement
> 
> 1) The changed watcher works either way; we could just as well set the
> networkState property of the cr-network-icon element to a plain old object,
and
> Polymer would still call networkStateChanged when we set that property.
> 
> 2) Using a Polymer element for non-UI "class" can be convenient. Examples: we
> don't have to come up with our own "cr.define"-type syntax, we can hook into
> Polymer's lifecycle management, Polymer can set up property changed watchers
> (including specifying changed watchers for "deep" sub-properties before the
> property itself is even set) without us manually calling Object.observe, we
can
> use computed properties.
> 
> If we have no plans to make this data element more complicated, having it be a
> native object would be fine. We need to weigh the wins (e.g. if we wanted to
use
> lifecycle management) against the losses (cycles for DOM operations).

Thanks for the explanation.

Powered by Google App Engine
This is Rietveld 408576698