Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: chrome/browser/resources/extensions/extensions.js

Issue 952053003: extensions: allow trash to have a focus outline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 16 matching lines...) Expand all
27 * profileIsSupervised: boolean, 27 * profileIsSupervised: boolean,
28 * promoteAppsDevTools: boolean}} 28 * promoteAppsDevTools: boolean}}
29 */ 29 */
30 var ExtensionDataResponse; 30 var ExtensionDataResponse;
31 31
32 // Used for observing function of the backend datasource for this page by 32 // Used for observing function of the backend datasource for this page by
33 // tests. 33 // tests.
34 var webuiResponded = false; 34 var webuiResponded = false;
35 35
36 cr.define('extensions', function() { 36 cr.define('extensions', function() {
37 var ExtensionsList = options.ExtensionsList; 37 var ExtensionList = extensions.ExtensionList;
38 38
39 // Implements the DragWrapper handler interface. 39 // Implements the DragWrapper handler interface.
40 var dragWrapperHandler = { 40 var dragWrapperHandler = {
41 /** @override */ 41 /** @override */
42 shouldAcceptDrag: function(e) { 42 shouldAcceptDrag: function(e) {
43 // We can't access filenames during the 'dragenter' event, so we have to 43 // We can't access filenames during the 'dragenter' event, so we have to
44 // wait until 'drop' to decide whether to do something with the file or 44 // wait until 'drop' to decide whether to do something with the file or
45 // not. 45 // not.
46 // See: http://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#concept-dnd-p 46 // See: http://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#concept-dnd-p
47 return (e.dataTransfer.types && 47 return (e.dataTransfer.types &&
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 var devControlsCheckbox = $('toggle-dev-on'); 329 var devControlsCheckbox = $('toggle-dev-on');
330 devControlsCheckbox.checked = extensionsData.developerMode; 330 devControlsCheckbox.checked = extensionsData.developerMode;
331 devControlsCheckbox.disabled = supervised; 331 devControlsCheckbox.disabled = supervised;
332 332
333 var instance = ExtensionSettings.getInstance(); 333 var instance = ExtensionSettings.getInstance();
334 instance.displayPromo_ = extensionsData.promoteAppsDevTools; 334 instance.displayPromo_ = extensionsData.promoteAppsDevTools;
335 instance.updateDevControlsVisibility_(false); 335 instance.updateDevControlsVisibility_(false);
336 336
337 $('load-unpacked').disabled = extensionsData.loadUnpackedDisabled; 337 $('load-unpacked').disabled = extensionsData.loadUnpackedDisabled;
338 338
339 ExtensionsList.prototype.data_ = extensionsData; 339 ExtensionList.prototype.data_ = extensionsData;
340 var extensionList = $('extension-settings-list'); 340 ExtensionList.decorate($('extension-settings-list'));
341 ExtensionsList.decorate(extensionList);
342 }; 341 };
343 342
344 // Indicate that warning |message| has occured for pack of |crx_path| and 343 // Indicate that warning |message| has occured for pack of |crx_path| and
345 // |pem_path| files. Ask if user wants override the warning. Send 344 // |pem_path| files. Ask if user wants override the warning. Send
346 // |overrideFlags| to repeated 'pack' call to accomplish the override. 345 // |overrideFlags| to repeated 'pack' call to accomplish the override.
347 ExtensionSettings.askToOverrideWarning = 346 ExtensionSettings.askToOverrideWarning =
348 function(message, crx_path, pem_path, overrideFlags) { 347 function(message, crx_path, pem_path, overrideFlags) {
349 var closeAlert = function() { 348 var closeAlert = function() {
350 ExtensionSettings.showOverlay(null); 349 ExtensionSettings.showOverlay(null);
351 }; 350 };
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 458
460 // Export 459 // Export
461 return { 460 return {
462 ExtensionSettings: ExtensionSettings 461 ExtensionSettings: ExtensionSettings
463 }; 462 };
464 }); 463 });
465 464
466 window.addEventListener('load', function(e) { 465 window.addEventListener('load', function(e) {
467 extensions.ExtensionSettings.getInstance().initialize(); 466 extensions.ExtensionSettings.getInstance().initialize();
468 }); 467 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698