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

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

Issue 2467123003: Settings: Internet: Update proxy controlled indicator and fields. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 a list of proxy exclusions. 6 * @fileoverview Polymer element for displaying a list of proxy exclusions.
7 * Includes UI for adding, changing, and removing entries. 7 * Includes UI for adding, changing, and removing entries.
8 */ 8 */
9 9
10 (function() { 10 (function() {
11 11
12 Polymer({ 12 Polymer({
13 is: 'network-proxy-exclusions', 13 is: 'network-proxy-exclusions',
14 14
15 properties: { 15 properties: {
16 /** Whether or not the proxy values can be edited. */
17 editable: {
18 type: Boolean,
19 value: false,
20 },
21
16 /** 22 /**
17 * The list of exclusions. 23 * The list of exclusions.
18 * @type {!Array<string>} 24 * @type {!Array<string>}
19 */ 25 */
20 exclusions: { 26 exclusions: {
21 type: Array, 27 type: Array,
22 value: function() { return []; }, 28 value: function() { return []; },
23 notify: true 29 notify: true
24 } 30 }
25 }, 31 },
26 32
27 /** 33 /**
28 * Event triggered when an item is removed. 34 * Event triggered when an item is removed.
29 * @param {!{model: !{index: number}}} event 35 * @param {!{model: !{index: number}}} event
30 * @private 36 * @private
31 */ 37 */
32 onRemoveTap_: function(event) { 38 onRemoveTap_: function(event) {
33 var index = event.model.index; 39 var index = event.model.index;
34 this.splice('exclusions', index, 1); 40 this.splice('exclusions', index, 1);
35 this.fire('proxy-change'); 41 this.fire('proxy-change');
36 } 42 }
37 }); 43 });
38 })(); 44 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698