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

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

Issue 12677002: Adds animation on a hovered directory/volume when dragging files in Files.app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « chrome/browser/resources/file_manager/css/file_manager.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/file_transfer_controller.js
diff --git a/chrome/browser/resources/file_manager/js/file_transfer_controller.js b/chrome/browser/resources/file_manager/js/file_transfer_controller.js
index 5e9be1ec7d96853cae60139c605690021fe907b1..16115682542aad6034da2c853d2387a3647f6bb3 100644
--- a/chrome/browser/resources/file_manager/js/file_transfer_controller.js
+++ b/chrome/browser/resources/file_manager/js/file_transfer_controller.js
@@ -450,7 +450,8 @@ FileTransferController.prototype = {
clearTimeout(this.navigateTimer_);
this.navigateTimer_ = undefined;
}
- if (domElement && isDirectory && opt_destinationPath) {
+ if (domElement && isDirectory && opt_destinationPath &&
+ this.canPasteOrDrop_(opt_dataTransfer, opt_destinationPath)) {
yoshiki 2013/03/08 08:10:38 ditto.
mtomasz 2013/03/11 03:17:50 Done.
this.navigateTimer_ = setTimeout(function() {
this.directoryModel_.changeDirectory(opt_destinationPath);
}.bind(this), 2000);
« no previous file with comments | « chrome/browser/resources/file_manager/css/file_manager.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698