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

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 7828044: [filebrowser] First step to image editor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/file_manager/js/file_manager.js
===================================================================
--- chrome/browser/resources/file_manager/js/file_manager.js (revision 98602)
+++ chrome/browser/resources/file_manager/js/file_manager.js (working copy)
@@ -64,6 +64,8 @@
this.confirm = new cr.ui.dialogs.ConfirmDialog(this.dialogDom_);
this.prompt = new cr.ui.dialogs.PromptDialog(this.dialogDom_);
+ this.gallery_ = new Gallery(this.dialogDom_);
+
// TODO(dgozman): This will be changed to LocaleInfo.
this.locale_ = new v8Locale(navigator.language);
@@ -1679,6 +1681,10 @@
task.title = str('MOUNT_ARCHIVE');
if (str('ENABLE_ARCHIVES') != 'true')
continue;
+ } else if (task_parts[1] == 'gallery') {
zel 2011/09/02 17:11:58 how's gallery different from the slideshow?
dgozman 2011/09/06 14:18:47 I will remove slideshow once this gallery will be
+ task.iconUrl =
+ chrome.extension.getURL('images/icon_preview_16x16.png');
+ task.title = str('GALLERY');
}
}
this.renderTaskButton_(task);
@@ -1866,6 +1872,8 @@
this.confirm.show(str('FORMATTING_WARNING'), function() {
chrome.fileBrowserPrivate.formatDevice(urls[0]);
});
+ } else if (id == 'gallery') {
+ this.gallery_.show(this.currentDirEntry_, details.entries);
}
};

Powered by Google App Engine
This is Rietveld 408576698