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

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

Issue 10790100: [File Manager] Support HiDPI images in action picker and default action picker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 5 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 | Annotate | Revision Log
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 /** 5 /**
6 * FileManager constructor. 6 * FileManager constructor.
7 * 7 *
8 * FileManager objects encapsulate the functionality of the file selector 8 * FileManager objects encapsulate the functionality of the file selector
9 * dialogs, as well as the full screen file manager application (though the 9 * dialogs, as well as the full screen file manager application (though the
10 * latter is not yet implemented). 10 * latter is not yet implemented).
(...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 if (match) { 2531 if (match) {
2532 var ext = match[1].toUpperCase(); 2532 var ext = match[1].toUpperCase();
2533 if (extensions.indexOf(ext) == -1) { 2533 if (extensions.indexOf(ext) == -1) {
2534 extensions.push(ext); 2534 extensions.push(ext);
2535 } 2535 }
2536 } 2536 }
2537 } 2537 }
2538 2538
2539 var format = ''; 2539 var format = '';
2540 2540
2541 if (extensions.length != 1) { 2541 if (extensions.length == 1) {
2542 format = extensions[0]; 2542 format = extensions[0];
2543 } 2543 }
2544 2544
2545 // Change default was clicked. We should open "change default" dialog. 2545 // Change default was clicked. We should open "change default" dialog.
2546 this.defaultTaskPicker.show( 2546 this.defaultTaskPicker.show(
2547 strf('CHANGE_DEFAULT_CAPTION', format), 2547 strf('CHANGE_DEFAULT_CAPTION', format),
2548 event.item.items, event.item.defaultIdx, 2548 event.item.items, event.item.defaultIdx,
2549 this.onDefaultTaskDone_.bind(this)); 2549 this.onDefaultTaskDone_.bind(this));
2550 } 2550 }
2551 }; 2551 };
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
4130 this.defaultActionMenuItem_.taskId = taskItem.taskId; 4130 this.defaultActionMenuItem_.taskId = taskItem.taskId;
4131 } 4131 }
4132 4132
4133 var defaultActionSeparator = 4133 var defaultActionSeparator =
4134 this.dialogDom_.querySelector('#default-action-separator'); 4134 this.dialogDom_.querySelector('#default-action-separator');
4135 4135
4136 this.defaultActionMenuItem_.hidden = !taskItem; 4136 this.defaultActionMenuItem_.hidden = !taskItem;
4137 defaultActionSeparator.hidden = !taskItem; 4137 defaultActionSeparator.hidden = !taskItem;
4138 } 4138 }
4139 })(); 4139 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698