| 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="../shared/js/cr/ui/drag_wrapper.js"></include> | 5 <include src="../shared/js/cr/ui/drag_wrapper.js"></include> |
| 6 <include src="../uber/uber_utils.js"></include> | 6 <include src="../uber/uber_utils.js"></include> |
| 7 <include src="extension_list.js"></include> | 7 <include src="extension_list.js"></include> |
| 8 <include src="pack_extension_overlay.js"></include> | 8 <include src="pack_extension_overlay.js"></include> |
| 9 | 9 |
| 10 // Used for observing function of the backend datasource for this page by | 10 // Used for observing function of the backend datasource for this page by |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 // Set up the three dev mode buttons (load unpacked, pack and update). | 88 // Set up the three dev mode buttons (load unpacked, pack and update). |
| 89 $('load-unpacked').addEventListener('click', | 89 $('load-unpacked').addEventListener('click', |
| 90 this.handleLoadUnpackedExtension_.bind(this)); | 90 this.handleLoadUnpackedExtension_.bind(this)); |
| 91 $('pack-extension').addEventListener('click', | 91 $('pack-extension').addEventListener('click', |
| 92 this.handlePackExtension_.bind(this)); | 92 this.handlePackExtension_.bind(this)); |
| 93 $('update-extensions-now').addEventListener('click', | 93 $('update-extensions-now').addEventListener('click', |
| 94 this.handleUpdateExtensionNow_.bind(this)); | 94 this.handleUpdateExtensionNow_.bind(this)); |
| 95 | 95 |
| 96 if (!loadTimeData.getBoolean('offStoreInstallEnabled')) { | 96 if (!loadTimeData.getBoolean('offStoreInstallEnabled')) { |
| 97 this.dragWrapper_ = | 97 this.dragWrapper_ = new cr.ui.DragWrapper(document.documentElement, |
| 98 new cr.ui.DragWrapper(document.body, dragWrapperHandler); | 98 dragWrapperHandler); |
| 99 } | 99 } |
| 100 | 100 |
| 101 var packExtensionOverlay = extensions.PackExtensionOverlay.getInstance(); | 101 var packExtensionOverlay = extensions.PackExtensionOverlay.getInstance(); |
| 102 packExtensionOverlay.initializePage(); | 102 packExtensionOverlay.initializePage(); |
| 103 | 103 |
| 104 cr.ui.overlay.setupOverlay($('dropTargetOverlay')); | 104 cr.ui.overlay.setupOverlay($('dropTargetOverlay')); |
| 105 }, | 105 }, |
| 106 | 106 |
| 107 /** | 107 /** |
| 108 * Handles the Load Unpacked Extension button. | 108 * Handles the Load Unpacked Extension button. |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 return { | 289 return { |
| 290 ExtensionSettings: ExtensionSettings | 290 ExtensionSettings: ExtensionSettings |
| 291 }; | 291 }; |
| 292 }); | 292 }); |
| 293 | 293 |
| 294 var ExtensionSettings = extensions.ExtensionSettings; | 294 var ExtensionSettings = extensions.ExtensionSettings; |
| 295 | 295 |
| 296 window.addEventListener('load', function(e) { | 296 window.addEventListener('load', function(e) { |
| 297 ExtensionSettings.getInstance().initialize(); | 297 ExtensionSettings.getInstance().initialize(); |
| 298 }); | 298 }); |
| OLD | NEW |