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

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

Issue 10854117: Files app should not reload when images are dragged into it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 /** 5 /**
6 * FileManager constructor. 6 * FileManager constructor.
7 * 7 *
8 * FileManager objects encapsulate the functionality of the file selector 8 * FileManager objects encapsulate the functionality of the file selector
9 * dialogs, as well as the full screen file manager application (though the 9 * dialogs, as well as the full screen file manager application (though the
10 * latter is not yet implemented). 10 * latter is not yet implemented).
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 this.confirm = new d.ConfirmDialog(this.dialogDom_); 555 this.confirm = new d.ConfirmDialog(this.dialogDom_);
556 this.prompt = new d.PromptDialog(this.dialogDom_); 556 this.prompt = new d.PromptDialog(this.dialogDom_);
557 this.defaultTaskPicker = 557 this.defaultTaskPicker =
558 new cr.filebrowser.DefaultActionDialog(this.dialogDom_); 558 new cr.filebrowser.DefaultActionDialog(this.dialogDom_);
559 }; 559 };
560 560
561 /** 561 /**
562 * One-time initialization of various DOM nodes. 562 * One-time initialization of various DOM nodes.
563 */ 563 */
564 FileManager.prototype.initDom_ = function() { 564 FileManager.prototype.initDom_ = function() {
565 this.dialogDom_.addEventListener('drop', function(e) {
dgozman 2012/08/13 13:00:30 Do we have a separate drop listener to handle file
SeRya 2012/08/13 13:21:37 Sure we do. It placed into FileTransferController.
566 // Prevent opening an URL by dropping it onto the page.
567 e.preventDefault();
568 });
565 // Cache nodes we'll be manipulating. 569 // Cache nodes we'll be manipulating.
566 this.previewThumbnails_ = 570 this.previewThumbnails_ =
567 this.dialogDom_.querySelector('.preview-thumbnails'); 571 this.dialogDom_.querySelector('.preview-thumbnails');
568 this.previewPanel_ = this.dialogDom_.querySelector('.preview-panel'); 572 this.previewPanel_ = this.dialogDom_.querySelector('.preview-panel');
569 this.previewSummary_ = this.dialogDom_.querySelector('.preview-summary'); 573 this.previewSummary_ = this.dialogDom_.querySelector('.preview-summary');
570 this.filenameInput_ = this.dialogDom_.querySelector( 574 this.filenameInput_ = this.dialogDom_.querySelector(
571 '#filename-input-box input'); 575 '#filename-input-box input');
572 this.taskItems_ = this.dialogDom_.querySelector('#tasks'); 576 this.taskItems_ = this.dialogDom_.querySelector('#tasks');
573 this.okButton_ = this.dialogDom_.querySelector('.ok'); 577 this.okButton_ = this.dialogDom_.querySelector('.ok');
574 this.cancelButton_ = this.dialogDom_.querySelector('.cancel'); 578 this.cancelButton_ = this.dialogDom_.querySelector('.cancel');
(...skipping 3605 matching lines...) Expand 10 before | Expand all | Expand 10 after
4180 } 4184 }
4181 4185
4182 var defaultActionSeparator = 4186 var defaultActionSeparator =
4183 this.dialogDom_.querySelector('#default-action-separator'); 4187 this.dialogDom_.querySelector('#default-action-separator');
4184 4188
4185 this.defaultActionMenuItem_.hidden = !taskItem; 4189 this.defaultActionMenuItem_.hidden = !taskItem;
4186 defaultActionSeparator.hidden = !taskItem; 4190 defaultActionSeparator.hidden = !taskItem;
4187 } 4191 }
4188 })(); 4192 })();
4189 4193
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698