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"> | 5 <include src="../uber/uber_utils.js"> |
6 <include src="extension_code.js"> | 6 <include src="extension_code.js"> |
7 <include src="extension_commands_overlay.js"> | 7 <include src="extension_commands_overlay.js"> |
8 <include src="extension_error_overlay.js"> | 8 <include src="extension_error_overlay.js"> |
9 <include src="extension_focus_manager.js"> | 9 <include src="extension_focus_manager.js"> |
10 <include src="extension_list.js"> | 10 <include src="extension_list.js"> |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 extensions.ExtensionFocusManager.getInstance().initialize(); | 189 extensions.ExtensionFocusManager.getInstance().initialize(); |
190 | 190 |
191 var path = document.location.pathname; | 191 var path = document.location.pathname; |
192 if (path.length > 1) { | 192 if (path.length > 1) { |
193 // Skip starting slash and remove trailing slash (if any). | 193 // Skip starting slash and remove trailing slash (if any). |
194 var overlayName = path.slice(1).replace(/\/$/, ''); | 194 var overlayName = path.slice(1).replace(/\/$/, ''); |
195 if (overlayName == 'configureCommands') | 195 if (overlayName == 'configureCommands') |
196 this.showExtensionCommandsConfigUi_(); | 196 this.showExtensionCommandsConfigUi_(); |
197 } | 197 } |
198 | |
199 preventDefaultOnPoundLinkClicks(); // From webui/js/util.js. | |
200 }, | 198 }, |
201 | 199 |
202 /** | 200 /** |
203 * Updates the Chrome Apps and Extensions Developer Tools promotion's | 201 * Updates the Chrome Apps and Extensions Developer Tools promotion's |
204 * visibility. | 202 * visibility. |
205 * @private | 203 * @private |
206 */ | 204 */ |
207 updatePromoVisibility_: function() { | 205 updatePromoVisibility_: function() { |
208 var extensionSettings = $('extension-settings'); | 206 var extensionSettings = $('extension-settings'); |
209 var visible = extensionSettings.classList.contains('dev-mode') && | 207 var visible = extensionSettings.classList.contains('dev-mode') && |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 | 455 |
458 // Export | 456 // Export |
459 return { | 457 return { |
460 ExtensionSettings: ExtensionSettings | 458 ExtensionSettings: ExtensionSettings |
461 }; | 459 }; |
462 }); | 460 }); |
463 | 461 |
464 window.addEventListener('load', function(e) { | 462 window.addEventListener('load', function(e) { |
465 extensions.ExtensionSettings.getInstance().initialize(); | 463 extensions.ExtensionSettings.getInstance().initialize(); |
466 }); | 464 }); |
OLD | NEW |