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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_manager.js

Issue 821003002: Files.app: Fix TaskController so that it calls correct default task. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Licence Created 6 years 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: ui/file_manager/file_manager/foreground/js/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index 6026d45a949b73425ca4830c98c9deb34e5f7381..512378b475d03a6f5b014dc4f61fb72e26997a7b 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -350,67 +350,6 @@ FileManager.prototype = /** @struct */ {
}
};
-/**
- * List of dialog types.
- *
- * Keep this in sync with FileManagerDialog::GetDialogTypeAsString, except
- * FULL_PAGE which is specific to this code.
- *
- * @enum {string}
- * @const
- */
-var DialogType = {
- SELECT_FOLDER: 'folder',
- SELECT_UPLOAD_FOLDER: 'upload-folder',
- SELECT_SAVEAS_FILE: 'saveas-file',
- SELECT_OPEN_FILE: 'open-file',
- SELECT_OPEN_MULTI_FILE: 'open-multi-file',
- FULL_PAGE: 'full-page'
-};
-
-/**
- * @param {DialogType} type Dialog type.
- * @return {boolean} Whether the type is modal.
- */
-DialogType.isModal = function(type) {
- return type == DialogType.SELECT_FOLDER ||
- type == DialogType.SELECT_UPLOAD_FOLDER ||
- type == DialogType.SELECT_SAVEAS_FILE ||
- type == DialogType.SELECT_OPEN_FILE ||
- type == DialogType.SELECT_OPEN_MULTI_FILE;
-};
-
-/**
- * @param {DialogType} type Dialog type.
- * @return {boolean} Whether the type is open dialog.
- */
-DialogType.isOpenDialog = function(type) {
- return type == DialogType.SELECT_OPEN_FILE ||
- type == DialogType.SELECT_OPEN_MULTI_FILE ||
- type == DialogType.SELECT_FOLDER ||
- type == DialogType.SELECT_UPLOAD_FOLDER;
-};
-
-/**
- * @param {DialogType} type Dialog type.
- * @return {boolean} Whether the type is open dialog for file(s).
- */
-DialogType.isOpenFileDialog = function(type) {
- return type == DialogType.SELECT_OPEN_FILE ||
- type == DialogType.SELECT_OPEN_MULTI_FILE;
-};
-
-/**
- * @param {DialogType} type Dialog type.
- * @return {boolean} Whether the type is folder selection dialog.
- */
-DialogType.isFolderDialog = function(type) {
- return type == DialogType.SELECT_FOLDER ||
- type == DialogType.SELECT_UPLOAD_FOLDER;
-};
-
-Object.freeze(DialogType);
-
// Anonymous "namespace".
(function() {
FileManager.prototype.initSettings_ = function(callback) {
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/dialog_type.js ('k') | ui/file_manager/file_manager/foreground/js/file_tasks.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698