| 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(); |
| 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 Loading... |
| 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 }); |
| OLD | NEW |