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

Side by Side Diff: chrome/browser/resources/chromeos/network_ui/network_ui.js

Issue 2627023006: WebUI: Remove i18n from cr_elements/network (Closed)
Patch Set: . Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var NetworkUI = (function() { 5 var NetworkUI = (function() {
6 'use strict'; 6 'use strict';
7 7
8 CrOncStrings = {
9 OncTypeCellular: loadTimeData.getString('OncTypeCellular'),
10 OncTypeEthernet: loadTimeData.getString('OncTypeEthernet'),
11 OncTypeVPN: loadTimeData.getString('OncTypeVPN'),
12 OncTypeWiFi: loadTimeData.getString('OncTypeWiFi'),
13 OncTypeWiMAX: loadTimeData.getString('OncTypeWiMAX'),
14 networkDisabled: loadTimeData.getString('networkDisabled'),
15 networkListItemConnected:
16 loadTimeData.getString('networkListItemConnected'),
17 networkListItemConnecting:
18 loadTimeData.getString('networkListItemConnecting'),
19 networkListItemNotConnected:
20 loadTimeData.getString('networkListItemNotConnected'),
21 vpnNameTemplate: loadTimeData.getString('vpnNameTemplate'),
22 };
23
8 // Properties to display in the network state table. Each entry can be either 24 // Properties to display in the network state table. Each entry can be either
9 // a single state field or an array of state fields. If more than one is 25 // a single state field or an array of state fields. If more than one is
10 // specified then the first non empty value is used. 26 // specified then the first non empty value is used.
11 var NETWORK_STATE_FIELDS = [ 27 var NETWORK_STATE_FIELDS = [
12 'GUID', 28 'GUID',
13 'service_path', 29 'service_path',
14 'Name', 30 'Name',
15 'Type', 31 'Type',
16 'ConnectionState', 32 'ConnectionState',
17 'connectable', 33 'connectable',
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 }); 364 });
349 365
350 document.addEventListener('custom-item-selected', function(event) { 366 document.addEventListener('custom-item-selected', function(event) {
351 chrome.send('addNetwork', [event.detail.customData]); 367 chrome.send('addNetwork', [event.detail.customData]);
352 }); 368 });
353 369
354 return { 370 return {
355 getShillPropertiesResult: getShillPropertiesResult 371 getShillPropertiesResult: getShillPropertiesResult
356 }; 372 };
357 })(); 373 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698