| 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="../uber/uber_utils.js"></include> | 5 <include src="../uber/uber_utils.js"></include> |
| 6 <include src="extension_commands_overlay.js"></include> | 6 <include src="extension_commands_overlay.js"></include> |
| 7 <include src="extension_focus_manager.js"></include> | 7 <include src="extension_focus_manager.js"></include> |
| 8 <include src="extension_list.js"></include> | 8 <include src="extension_list.js"></include> |
| 9 <include src="pack_extension_overlay.js"></include> | 9 <include src="pack_extension_overlay.js"></include> |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 extensions.ExtensionFocusManager.getInstance().initialize(); | 118 extensions.ExtensionFocusManager.getInstance().initialize(); |
| 119 | 119 |
| 120 var path = document.location.pathname; | 120 var path = document.location.pathname; |
| 121 if (path.length > 1) { | 121 if (path.length > 1) { |
| 122 // Skip starting slash and remove trailing slash (if any). | 122 // Skip starting slash and remove trailing slash (if any). |
| 123 var overlayName = path.slice(1).replace(/\/$/, ''); | 123 var overlayName = path.slice(1).replace(/\/$/, ''); |
| 124 if (overlayName == 'configureCommands') | 124 if (overlayName == 'configureCommands') |
| 125 this.showExtensionCommandsConfigUi_(); | 125 this.showExtensionCommandsConfigUi_(); |
| 126 } | 126 } |
| 127 | 127 |
| 128 preventDefaultOnPoundLinkClicks(); // From shared/js/util.js. | 128 preventDefaultOnPoundLinkClicks(); // From webui/js/util.js. |
| 129 }, | 129 }, |
| 130 | 130 |
| 131 /** | 131 /** |
| 132 * Handles the Load Unpacked Extension button. | 132 * Handles the Load Unpacked Extension button. |
| 133 * @param {Event} e Change event. | 133 * @param {Event} e Change event. |
| 134 * @private | 134 * @private |
| 135 */ | 135 */ |
| 136 handleLoadUnpackedExtension_: function(e) { | 136 handleLoadUnpackedExtension_: function(e) { |
| 137 chrome.send('extensionSettingsLoadUnpackedExtension'); | 137 chrome.send('extensionSettingsLoadUnpackedExtension'); |
| 138 | 138 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 return { | 360 return { |
| 361 ExtensionSettings: ExtensionSettings | 361 ExtensionSettings: ExtensionSettings |
| 362 }; | 362 }; |
| 363 }); | 363 }); |
| 364 | 364 |
| 365 var ExtensionSettings = extensions.ExtensionSettings; | 365 var ExtensionSettings = extensions.ExtensionSettings; |
| 366 | 366 |
| 367 window.addEventListener('load', function(e) { | 367 window.addEventListener('load', function(e) { |
| 368 ExtensionSettings.getInstance().initialize(); | 368 ExtensionSettings.getInstance().initialize(); |
| 369 }); | 369 }); |
| OLD | NEW |