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

Side by Side Diff: chrome/browser/resources/settings/internet_page/network_summary_item.js

Issue 2699713007: MD-Settings: Add a11y label for network summary items. (Closed)
Patch Set: Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** 5 /**
6 * @fileoverview Polymer element for displaying the network state for a specific 6 * @fileoverview Polymer element for displaying the network state for a specific
7 * type and a list of networks for that type. 7 * type and a list of networks for that type.
8 */ 8 */
9 9
10 /** @typedef {chrome.networkingPrivate.DeviceStateProperties} */ 10 /** @typedef {chrome.networkingPrivate.DeviceStateProperties} */
(...skipping 13 matching lines...) Expand all
24 type: Object, 24 type: Object,
25 observer: 'deviceStateChanged_', 25 observer: 'deviceStateChanged_',
26 }, 26 },
27 27
28 /** 28 /**
29 * Network state for the active network. 29 * Network state for the active network.
30 * @type {!CrOnc.NetworkStateProperties|undefined} 30 * @type {!CrOnc.NetworkStateProperties|undefined}
31 */ 31 */
32 activeNetworkState: Object, 32 activeNetworkState: Object,
33 33
34 /** String for a11y purposes. */
35 itemName: String,
36
34 /** 37 /**
35 * List of all network state data for the network type. 38 * List of all network state data for the network type.
36 * @type {!Array<!CrOnc.NetworkStateProperties>} 39 * @type {!Array<!CrOnc.NetworkStateProperties>}
37 */ 40 */
38 networkStateList: { 41 networkStateList: {
39 type: Array, 42 type: Array,
40 value: function() { 43 value: function() {
41 return []; 44 return [];
42 }, 45 },
43 }, 46 },
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 */ 315 */
313 onDeviceEnabledTap_: function(event) { 316 onDeviceEnabledTap_: function(event) {
314 var deviceIsEnabled = this.deviceIsEnabled_(this.deviceState); 317 var deviceIsEnabled = this.deviceIsEnabled_(this.deviceState);
315 var type = this.deviceState ? this.deviceState.Type : ''; 318 var type = this.deviceState ? this.deviceState.Type : '';
316 this.fire( 319 this.fire(
317 'device-enabled-toggled', {enabled: !deviceIsEnabled, type: type}); 320 'device-enabled-toggled', {enabled: !deviceIsEnabled, type: type});
318 // Make sure this does not propagate to onDetailsTap_. 321 // Make sure this does not propagate to onDetailsTap_.
319 event.stopPropagation(); 322 event.stopPropagation();
320 }, 323 },
321 }); 324 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698