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

Issue 1030963003: Use networkingPrivate types in JS (Closed)

Created:
5 years, 9 months ago by stevenjb
Modified:
5 years, 8 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, michaelpg+watch-options_chromium.org, khorimoto+watch-md-settings_chromium.org, nkostylev+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, jhawkins+watch-md-settings_chromium.org, jlklein+watch-md-settings_chromium.org, orenb+watch-md-settings_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, vitalyp+closure_chromium.org, stevenjb+watch_chromium.org, dbeam+watch-closure_chromium.org, asargent_no_longer_on_chrome
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use networkingPrivate types in JS This CL: * Eliminates cr_onc_types.js, using networkingPrivate types instead * Uses networkingPrivate types where possible in internet_detail.js Note: Some ONC types are invalid JS tags, e.g. WEP-PSK or 8021x. As such, we can not currently use them as enum values in the IDL. These types are treated as strings for now. This is arguably a minor regression from using CrOncTypes, but preferable to maintaining the extra JS module. The types (DOMString) still match and can be checked by the closure compiler. BUG=470262

Patch Set 1 #

Patch Set 2 : Extract unrelated chnages #

Total comments: 6

Patch Set 3 : Extract IDL changes #

Patch Set 4 : Rebase with IDL changes #

Patch Set 5 : Rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -243 lines) Patch
M chrome/browser/resources/chromeos/network_ui/compiled_resources.gyp View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/network_ui/network_ui.js View 1 2 3 8 chunks +20 lines, -16 lines 1 comment Download
M chrome/browser/resources/options/chromeos/internet_detail.js View 20 chunks +53 lines, -45 lines 1 comment Download
M chrome/browser/resources/options/chromeos/network_list.js View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/options/compiled_resources.gyp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/closure_compiler/externs/chrome_extensions.js View 1 2 3 6 chunks +115 lines, -38 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.js View 1 3 chunks +22 lines, -22 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon_externs.js View 1 chunk +1 line, -1 line 0 comments Download
M ui/webui/resources/cr_elements/cr_onc/cr_onc_data.html View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_onc/cr_onc_data.js View 5 chunks +16 lines, -13 lines 1 comment Download
M ui/webui/resources/cr_elements/cr_onc/cr_onc_data_externs.js View 1 chunk +1 line, -1 line 0 comments Download
D ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js View 1 2 1 chunk +0 lines, -95 lines 0 comments Download
M ui/webui/resources/cr_elements_resources.grdp View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
stevenjb
This is ready for review. +asargent@, ptal at networking_private.idl. I copied the existing (sparse) documentation. ...
5 years, 9 months ago (2015-03-25 22:29:28 UTC) #4
Dan Beam
https://codereview.chromium.org/1030963003/diff/40001/third_party/closure_compiler/externs/chrome_extensions.js File third_party/closure_compiler/externs/chrome_extensions.js (left): https://codereview.chromium.org/1030963003/diff/40001/third_party/closure_compiler/externs/chrome_extensions.js#oldcode8237 third_party/closure_compiler/externs/chrome_extensions.js:8237: /** please update this internally first/as well
5 years, 9 months ago (2015-03-25 22:34:17 UTC) #5
stevenjb
https://codereview.chromium.org/1030963003/diff/40001/third_party/closure_compiler/externs/chrome_extensions.js File third_party/closure_compiler/externs/chrome_extensions.js (left): https://codereview.chromium.org/1030963003/diff/40001/third_party/closure_compiler/externs/chrome_extensions.js#oldcode8237 third_party/closure_compiler/externs/chrome_extensions.js:8237: /** On 2015/03/25 22:34:17, Dan Beam wrote: > please ...
5 years, 9 months ago (2015-03-25 22:37:27 UTC) #6
pneubeck (no reviews)
just a few early comments. https://codereview.chromium.org/1030963003/diff/40001/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (right): https://codereview.chromium.org/1030963003/diff/40001/chrome/browser/resources/options/chromeos/internet_detail.js#newcode547 chrome/browser/resources/options/chromeos/internet_detail.js:547: var source = (onc ...
5 years, 9 months ago (2015-03-26 16:56:47 UTC) #7
stevenjb
I've extracted the IDL changes into https://codereview.chromium.org/1038873004/ and https://codereview.chromium.org/1036033002/ Once those are reviewed and committed, ...
5 years, 9 months ago (2015-03-26 18:38:43 UTC) #9
stevenjb
This has been rebased with the recent changes to networking_private.idl. It is ready for review ...
5 years, 8 months ago (2015-03-30 22:27:46 UTC) #10
michaelpg
re substituting strings for CrOnc types -- so we just have to be really careful ...
5 years, 8 months ago (2015-03-31 19:18:46 UTC) #11
stevenjb
5 years, 8 months ago (2015-04-17 16:45:51 UTC) #12
Closing this issue. There is active work on auto generating ALL_CAPS enums for
extension APIs. We will need to add support for { _8021X: '8021x' } but {
FOO_BAR: 'foo-bar' } should already be working. Once __8021X is supported we
should be good to go. Note, this is not a priority at this point.

Powered by Google App Engine
This is Rietveld 408576698