OLD | NEW |
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 Loading... |
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(); | |
267 }.bind(this)); | 266 }.bind(this)); |
268 }, | 267 }, |
269 | 268 |
270 /** | 269 /** |
271 * Handles the Pack Extension button. | 270 * Handles the Pack Extension button. |
272 * @param {Event} e Change event. | 271 * @param {Event} e Change event. |
273 * @private | 272 * @private |
274 */ | 273 */ |
275 handlePackExtension_: function(e) { | 274 handlePackExtension_: function(e) { |
276 ExtensionSettings.showOverlay($('pack-extension-overlay')); | 275 ExtensionSettings.showOverlay($('pack-extension-overlay')); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 // Export | 441 // Export |
443 return { | 442 return { |
444 ExtensionSettings: ExtensionSettings | 443 ExtensionSettings: ExtensionSettings |
445 }; | 444 }; |
446 }); | 445 }); |
447 | 446 |
448 window.addEventListener('load', function(e) { | 447 window.addEventListener('load', function(e) { |
449 document.documentElement.classList.add('loading'); | 448 document.documentElement.classList.add('loading'); |
450 extensions.ExtensionSettings.getInstance().initialize(); | 449 extensions.ExtensionSettings.getInstance().initialize(); |
451 }); | 450 }); |
OLD | NEW |