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

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

Issue 1094553002: Revert "Speculative revert by sheriff" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 <include src="../../../../ui/webui/resources/js/cr/ui/focus_row.js"> 5 <include src="../../../../ui/webui/resources/js/cr/ui/focus_row.js">
6 <include src="../../../../ui/webui/resources/js/cr/ui/focus_grid.js"> 6 <include src="../../../../ui/webui/resources/js/cr/ui/focus_grid.js">
7 <include src="../uber/uber_utils.js"> 7 <include src="../uber/uber_utils.js">
8 <include src="extension_code.js"> 8 <include src="extension_code.js">
9 <include src="extension_commands_overlay.js"> 9 <include src="extension_commands_overlay.js">
10 <include src="extension_error_overlay.js"> 10 <include src="extension_error_overlay.js">
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 window.clearTimeout(this.loadingTimeout_); 256 window.clearTimeout(this.loadingTimeout_);
257 document.documentElement.classList.add('loading'); 257 document.documentElement.classList.add('loading');
258 this.loadingTimeout_ = window.setTimeout(function() { 258 this.loadingTimeout_ = window.setTimeout(function() {
259 document.documentElement.classList.remove('loading'); 259 document.documentElement.classList.remove('loading');
260 }, 0); 260 }, 0);
261 261
262 /** @const */ 262 /** @const */
263 var hasExtensions = extensionList.getNumExtensions() != 0; 263 var hasExtensions = extensionList.getNumExtensions() != 0;
264 $('no-extensions').hidden = hasExtensions; 264 $('no-extensions').hidden = hasExtensions;
265 $('extension-list-wrapper').hidden = !hasExtensions; 265 $('extension-list-wrapper').hidden = !hasExtensions;
266 $('extension-settings-list').updateFocusableElements();
266 }.bind(this)); 267 }.bind(this));
267 }, 268 },
268 269
269 /** 270 /**
270 * Handles the Pack Extension button. 271 * Handles the Pack Extension button.
271 * @param {Event} e Change event. 272 * @param {Event} e Change event.
272 * @private 273 * @private
273 */ 274 */
274 handlePackExtension_: function(e) { 275 handlePackExtension_: function(e) {
275 ExtensionSettings.showOverlay($('pack-extension-overlay')); 276 ExtensionSettings.showOverlay($('pack-extension-overlay'));
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 // Export 443 // Export
443 return { 444 return {
444 ExtensionSettings: ExtensionSettings 445 ExtensionSettings: ExtensionSettings
445 }; 446 };
446 }); 447 });
447 448
448 window.addEventListener('load', function(e) { 449 window.addEventListener('load', function(e) {
449 document.documentElement.classList.add('loading'); 450 document.documentElement.classList.add('loading');
450 extensions.ExtensionSettings.getInstance().initialize(); 451 extensions.ExtensionSettings.getInstance().initialize();
451 }); 452 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/extensions/extension_list.js ('k') | chrome/browser/resources/settings/a11y_page/a11y_page.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698