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

Side by Side Diff: chrome/browser/resources/extensions/extension_list.js

Issue 780773002: Fix some closure compilation issues 8n order to update compiler.jar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: roll back *.jar Created 6 years 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 <include src="extension_error.js"> 5 <include src="extension_error.js">
6 6
7 /** 7 /**
8 * The type of the extension data object. The definition is based on 8 * The type of the extension data object. The definition is based on
9 * chrome/browser/ui/webui/extensions/extension_basic_info.cc 9 * chrome/browser/ui/webui/extensions/extension_basic_info.cc
10 * and 10 * and
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 /** 97 /**
98 * Indicates whether an embedded options page that was navigated to through 98 * Indicates whether an embedded options page that was navigated to through
99 * the '?options=' URL query has been shown to the user. This is necessary 99 * the '?options=' URL query has been shown to the user. This is necessary
100 * to prevent showExtensionNodes_ from opening the options more than once. 100 * to prevent showExtensionNodes_ from opening the options more than once.
101 * @type {boolean} 101 * @type {boolean}
102 * @private 102 * @private
103 */ 103 */
104 optionsShown_: false, 104 optionsShown_: false,
105 105
106 /** @override */
107 decorate: function() { 106 decorate: function() {
108 this.textContent = ''; 107 this.textContent = '';
109 108
110 this.showExtensionNodes_(); 109 this.showExtensionNodes_();
111 }, 110 },
112 111
113 getIdQueryParam_: function() { 112 getIdQueryParam_: function() {
114 return parseQueryParams(document.location)['id']; 113 return parseQueryParams(document.location)['id'];
115 }, 114 },
116 115
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 extension.suspiciousInstall || 362 extension.suspiciousInstall ||
364 extension.corruptInstall || 363 extension.corruptInstall ||
365 extension.updateRequiredByPolicy || 364 extension.updateRequiredByPolicy ||
366 extension.dependentExtensions.length > 0; 365 extension.dependentExtensions.length > 0;
367 enable.querySelector('input').disabled = enableCheckboxDisabled; 366 enable.querySelector('input').disabled = enableCheckboxDisabled;
368 367
369 if (extension.managedInstall) { 368 if (extension.managedInstall) {
370 var indicator = new cr.ui.ControlledIndicator(); 369 var indicator = new cr.ui.ControlledIndicator();
371 indicator.classList.add('controlled-extension-indicator'); 370 indicator.classList.add('controlled-extension-indicator');
372 indicator.setAttribute('controlled-by', 'policy'); 371 indicator.setAttribute('controlled-by', 'policy');
373 indicator.setAttribute('textpolicy', extension.policyText); 372 indicator.setAttribute('textpolicy', extension.policyText || '');
374 node.querySelector('.enable-controls').appendChild(indicator); 373 node.querySelector('.enable-controls').appendChild(indicator);
375 } 374 }
376 375
377 if (!enableCheckboxDisabled) { 376 if (!enableCheckboxDisabled) {
378 enable.addEventListener('click', function(e) { 377 enable.addEventListener('click', function(e) {
379 // When e.target is the label instead of the checkbox, it doesn't 378 // When e.target is the label instead of the checkbox, it doesn't
380 // have the checked property and the state of the checkbox is 379 // have the checked property and the state of the checkbox is
381 // left unchanged. 380 // left unchanged.
382 var checked = e.target.checked; 381 var checked = e.target.checked;
383 if (checked == undefined) 382 if (checked == undefined)
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 $('overlay').addEventListener('cancelOverlay', function() { 578 $('overlay').addEventListener('cancelOverlay', function() {
580 this.optionsShown_ = false; 579 this.optionsShown_ = false;
581 }.bind(this)); 580 }.bind(this));
582 }, 581 },
583 }; 582 };
584 583
585 return { 584 return {
586 ExtensionsList: ExtensionsList 585 ExtensionsList: ExtensionsList
587 }; 586 };
588 }); 587 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/extensions/extension_error.js ('k') | chrome/browser/resources/ntp4/dot_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698