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

Side by Side Diff: chrome/browser/resources/options/pref_ui.js

Issue 560563004: Compile chrome://settings, part 5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_make_public
Patch Set: fixed assert errors 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', function() { 5 cr.define('options', function() {
6 6
7 var Preferences = options.Preferences; 7 var Preferences = options.Preferences;
8 8
9 /** 9 /**
10 * Allows an element to be disabled for several reasons. 10 * Allows an element to be disabled for several reasons.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 cr.defineProperty(PrefInputElement, 'controlledBy', cr.PropertyKind.ATTR); 148 cr.defineProperty(PrefInputElement, 'controlledBy', cr.PropertyKind.ATTR);
149 149
150 /** 150 /**
151 * The user metric string. 151 * The user metric string.
152 */ 152 */
153 cr.defineProperty(PrefInputElement, 'metric', cr.PropertyKind.ATTR); 153 cr.defineProperty(PrefInputElement, 'metric', cr.PropertyKind.ATTR);
154 154
155 ///////////////////////////////////////////////////////////////////////////// 155 /////////////////////////////////////////////////////////////////////////////
156 // PrefCheckbox class: 156 // PrefCheckbox class:
157 157
158 // Define a constructor that uses an input element as its underlying element. 158 /**
159 * Define a constructor that uses an input element as its underlying element.
160 * @constructor
161 * @extends {options.PrefInputElement}
162 */
159 var PrefCheckbox = cr.ui.define('input'); 163 var PrefCheckbox = cr.ui.define('input');
160 164
161 PrefCheckbox.prototype = { 165 PrefCheckbox.prototype = {
162 // Set up the prototype chain 166 // Set up the prototype chain
163 __proto__: PrefInputElement.prototype, 167 __proto__: PrefInputElement.prototype,
164 168
165 /** 169 /**
166 * Initialization function for the cr.ui framework. 170 * Initialization function for the cr.ui framework.
167 */ 171 */
168 decorate: function() { 172 decorate: function() {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 */ 278 */
275 updateStateFromPref_: function(event) { 279 updateStateFromPref_: function(event) {
276 if (!this.customPrefChangeHandler(event)) 280 if (!this.customPrefChangeHandler(event))
277 this.checked = this.value == String(event.value.value); 281 this.checked = this.value == String(event.value.value);
278 }, 282 },
279 }; 283 };
280 284
281 ///////////////////////////////////////////////////////////////////////////// 285 /////////////////////////////////////////////////////////////////////////////
282 // PrefRange class: 286 // PrefRange class:
283 287
284 // Define a constructor that uses an input element as its underlying element. 288 /**
289 * Define a constructor that uses an input element as its underlying element.
290 * @constructor
291 * @extends {options.PrefInputElement}
292 */
285 var PrefRange = cr.ui.define('input'); 293 var PrefRange = cr.ui.define('input');
286 294
287 PrefRange.prototype = { 295 PrefRange.prototype = {
288 // Set up the prototype chain 296 // Set up the prototype chain
289 __proto__: PrefInputElement.prototype, 297 __proto__: PrefInputElement.prototype,
290 298
291 /** 299 /**
292 * The map from slider position to corresponding pref value. 300 * The map from slider position to corresponding pref value.
293 */ 301 */
294 valueMap: undefined, 302 valueMap: undefined,
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 PrefNumber: PrefNumber, 578 PrefNumber: PrefNumber,
571 PrefRadio: PrefRadio, 579 PrefRadio: PrefRadio,
572 PrefRange: PrefRange, 580 PrefRange: PrefRange,
573 PrefSelect: PrefSelect, 581 PrefSelect: PrefSelect,
574 PrefTextField: PrefTextField, 582 PrefTextField: PrefTextField,
575 PrefPortNumber: PrefPortNumber, 583 PrefPortNumber: PrefPortNumber,
576 PrefButton: PrefButton 584 PrefButton: PrefButton
577 }; 585 };
578 586
579 }); 587 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/password_manager_list.js ('k') | chrome/browser/resources/options/startup_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698