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"> |
| 6 <include src="../../../../ui/webui/resources/js/cr/ui/focus_grid.js"> |
5 <include src="../uber/uber_utils.js"> | 7 <include src="../uber/uber_utils.js"> |
6 <include src="extension_code.js"> | 8 <include src="extension_code.js"> |
7 <include src="extension_commands_overlay.js"> | 9 <include src="extension_commands_overlay.js"> |
8 <include src="extension_error_overlay.js"> | 10 <include src="extension_error_overlay.js"> |
9 <include src="extension_focus_manager.js"> | 11 <include src="extension_focus_manager.js"> |
10 <include src="extension_list.js"> | 12 <include src="extension_list.js"> |
11 <include src="pack_extension_overlay.js"> | 13 <include src="pack_extension_overlay.js"> |
12 <include src="extension_loader.js"> | 14 <include src="extension_loader.js"> |
13 <include src="extension_options_overlay.js"> | 15 <include src="extension_options_overlay.js"> |
14 | 16 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 uber.setTitle(loadTimeData.getString('extensionSettings')); | 134 uber.setTitle(loadTimeData.getString('extensionSettings')); |
133 | 135 |
134 // This will request the data to show on the page and will get a response | 136 // This will request the data to show on the page and will get a response |
135 // back in returnExtensionsData. | 137 // back in returnExtensionsData. |
136 chrome.send('extensionSettingsRequestExtensionsData'); | 138 chrome.send('extensionSettingsRequestExtensionsData'); |
137 | 139 |
138 var extensionLoader = extensions.ExtensionLoader.getInstance(); | 140 var extensionLoader = extensions.ExtensionLoader.getInstance(); |
139 | 141 |
140 $('toggle-dev-on').addEventListener('change', function(e) { | 142 $('toggle-dev-on').addEventListener('change', function(e) { |
141 this.updateDevControlsVisibility_(true); | 143 this.updateDevControlsVisibility_(true); |
| 144 $('extension-settings-list').updateFocusableElements(); |
142 chrome.send('extensionSettingsToggleDeveloperMode', | 145 chrome.send('extensionSettingsToggleDeveloperMode', |
143 [$('toggle-dev-on').checked]); | 146 [$('toggle-dev-on').checked]); |
144 }.bind(this)); | 147 }.bind(this)); |
145 | 148 |
146 window.addEventListener('resize', function() { | 149 window.addEventListener('resize', function() { |
147 this.updateDevControlsVisibility_(false); | 150 this.updateDevControlsVisibility_(false); |
148 }.bind(this)); | 151 }.bind(this)); |
149 | 152 |
150 // Set up the three dev mode buttons (load unpacked, pack and update). | 153 // Set up the three dev mode buttons (load unpacked, pack and update). |
151 $('load-unpacked').addEventListener('click', function(e) { | 154 $('load-unpacked').addEventListener('click', function(e) { |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 | 462 |
460 // Export | 463 // Export |
461 return { | 464 return { |
462 ExtensionSettings: ExtensionSettings | 465 ExtensionSettings: ExtensionSettings |
463 }; | 466 }; |
464 }); | 467 }); |
465 | 468 |
466 window.addEventListener('load', function(e) { | 469 window.addEventListener('load', function(e) { |
467 extensions.ExtensionSettings.getInstance().initialize(); | 470 extensions.ExtensionSettings.getInstance().initialize(); |
468 }); | 471 }); |
OLD | NEW |