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

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

Issue 24026002: Files.app: FileManager.isFolderShortcutsEnabled() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_manager_commands.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'use strict'; 5 'use strict';
6 6
7 /** 7 /**
8 * This variable is checked in SelectFileDialogExtensionBrowserTest. 8 * This variable is checked in SelectFileDialogExtensionBrowserTest.
9 * @type {number} 9 * @type {number}
10 */ 10 */
(...skipping 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after
2126 // captureing mouse events. 2126 // captureing mouse events.
2127 this.enableDragOnTitleArea_(false); 2127 this.enableDragOnTitleArea_(false);
2128 this.shareDialog_.show(entries[0], function(result) { 2128 this.shareDialog_.show(entries[0], function(result) {
2129 this.enableDragOnTitleArea_(true); 2129 this.enableDragOnTitleArea_(true);
2130 if (result == ShareDialog.Result.NETWORK_ERROR) 2130 if (result == ShareDialog.Result.NETWORK_ERROR)
2131 this.error.show(str('SHARE_ERROR')); 2131 this.error.show(str('SHARE_ERROR'));
2132 }.bind(this)); 2132 }.bind(this));
2133 }; 2133 };
2134 2134
2135 /** 2135 /**
2136 * Folder shared feature is under development and hidden behind flag. This
2137 * method returns if the feature is explicitly enabled by the flag or not.
2138 * TODO(yoshiki): Remove this after launching folder feature feature.
2139 *
2140 * @return {boolena} True if the flag is enabled.
2141 */
2142 FileManager.prototype.isFolderShortcutsEnabled = function() {
2143 // TODO(yoshiki): Remove this method in M31.
2144 return true;
2145 };
2146
2147 /**
2148 * Creates a folder shortcut. 2136 * Creates a folder shortcut.
2149 * @param {string} path A shortcut which refers to |path| to be created. 2137 * @param {string} path A shortcut which refers to |path| to be created.
2150 */ 2138 */
2151 FileManager.prototype.createFolderShortcut = function(path) { 2139 FileManager.prototype.createFolderShortcut = function(path) {
2152 // Duplicate entry. 2140 // Duplicate entry.
2153 if (this.folderShortcutExists(path)) 2141 if (this.folderShortcutExists(path))
2154 return; 2142 return;
2155 2143
2156 this.folderShortcutsModel_.add(path); 2144 this.folderShortcutsModel_.add(path);
2157 }; 2145 };
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
3947 */ 3935 */
3948 FileManager.prototype.setCtrlKeyPressed_ = function(flag) { 3936 FileManager.prototype.setCtrlKeyPressed_ = function(flag) {
3949 this.ctrlKeyPressed_ = flag; 3937 this.ctrlKeyPressed_ = flag;
3950 // Before the DOM is constructed, the key event can be handled. 3938 // Before the DOM is constructed, the key event can be handled.
3951 var cacheClearCommand = 3939 var cacheClearCommand =
3952 this.document_.querySelector('#drive-clear-local-cache'); 3940 this.document_.querySelector('#drive-clear-local-cache');
3953 if (cacheClearCommand) 3941 if (cacheClearCommand)
3954 cacheClearCommand.canExecuteChange(); 3942 cacheClearCommand.canExecuteChange();
3955 }; 3943 };
3956 })(); 3944 })();
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_manager_commands.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698