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); |
} |
}; |