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

Side by Side Diff: chrome/browser/resources/options/chromeos/proxy_rules_list.js

Issue 553573003: Compile chrome://settings, part 3: 167 proper errors left (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@G_options_errors_1
Patch Set: rebase Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.define('options.proxyexceptions', function() { 5 cr.define('options.proxyexceptions', function() {
6 /** @const */ var List = cr.ui.List; 6 /** @const */ var List = cr.ui.List;
7 /** @const */ var ListItem = cr.ui.ListItem; 7 /** @const */ var ListItem = cr.ui.ListItem;
8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
9 9
10 /** 10 /**
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (e.button == 0) { 76 if (e.button == 0) {
77 var el = e.target; 77 var el = e.target;
78 if (el.className == 'remove-exception-button') { 78 if (el.className == 'remove-exception-button') {
79 this.removeException(el.parentNode.exception); 79 this.removeException(el.parentNode.exception);
80 } 80 }
81 } 81 }
82 }, 82 },
83 83
84 /** 84 /**
85 * Loads given exception list. 85 * Loads given exception list.
86 * @param {Array} exceptions An array of exception object. 86 * @param {!Array} exceptions An array of exception object.
87 */ 87 */
88 load_: function(exceptions) { 88 load_: function(exceptions) {
89 this.dataModel = new ArrayDataModel(exceptions); 89 this.dataModel = new ArrayDataModel(exceptions);
90 }, 90 },
91 91
92 /** 92 /**
93 * Updates backend. 93 * Updates backend.
94 */ 94 */
95 updateBackend_: function() { 95 updateBackend_: function() {
96 Preferences.setListPref(this.pref, this.dataModel.slice(), true); 96 Preferences.setListPref(this.pref, this.dataModel.slice(), true);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 labelException.className = ''; 131 labelException.className = '';
132 labelException.textContent = this.exception; 132 labelException.textContent = this.exception;
133 this.appendChild(labelException); 133 this.appendChild(labelException);
134 } 134 }
135 }; 135 };
136 136
137 return { 137 return {
138 ProxyExceptions: ProxyExceptions 138 ProxyExceptions: ProxyExceptions
139 }; 139 };
140 }); 140 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/chromeos/preferred_networks.js ('k') | chrome/browser/resources/options/confirm_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698