OLD | NEW |
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 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1596 FileManager.prototype.onPopState_ = function(event) { | 1596 FileManager.prototype.onPopState_ = function(event) { |
1597 this.closeFilePopup_(); | 1597 this.closeFilePopup_(); |
1598 this.setupCurrentDirectory_(false /* page loading */); | 1598 this.setupCurrentDirectory_(false /* page loading */); |
1599 }; | 1599 }; |
1600 | 1600 |
1601 /** | 1601 /** |
1602 * Resize details and thumb views to fit the new window size. | 1602 * Resize details and thumb views to fit the new window size. |
1603 * @private | 1603 * @private |
1604 */ | 1604 */ |
1605 FileManager.prototype.onResize_ = function() { | 1605 FileManager.prototype.onResize_ = function() { |
1606 this.table_.relayout(); | 1606 if (this.listType_ == FileManager.ListType.THUMBNAIL) |
1607 this.grid_.relayout(); | 1607 this.grid_.relayout(); |
| 1608 else |
| 1609 this.table_.relayout(); |
1608 this.directoryTree_.relayout(); | 1610 this.directoryTree_.relayout(); |
1609 | 1611 |
1610 if (!util.platform.newUI()) { | 1612 if (!util.platform.newUI()) { |
1611 this.breadcrumbs_.truncate(); | 1613 this.breadcrumbs_.truncate(); |
1612 } else { | 1614 } else { |
1613 // TODO(mtomasz, yoshiki): Initialize volume list earlier, before | 1615 // TODO(mtomasz, yoshiki): Initialize volume list earlier, before |
1614 // file system is available. | 1616 // file system is available. |
1615 if (this.volumeList_) | 1617 if (this.volumeList_) |
1616 this.volumeList_.redraw(); | 1618 this.volumeList_.redraw(); |
1617 } | 1619 } |
(...skipping 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3896 * Set the flag expressing whether the ctrl key is pressed or not. | 3898 * Set the flag expressing whether the ctrl key is pressed or not. |
3897 * @param {boolean} flag New value of the flag | 3899 * @param {boolean} flag New value of the flag |
3898 * @private | 3900 * @private |
3899 */ | 3901 */ |
3900 FileManager.prototype.setCtrlKeyPressed_ = function(flag) { | 3902 FileManager.prototype.setCtrlKeyPressed_ = function(flag) { |
3901 this.ctrlKeyPressed_ = flag; | 3903 this.ctrlKeyPressed_ = flag; |
3902 this.document_.querySelector('#drive-clear-local-cache').canExecuteChange(); | 3904 this.document_.querySelector('#drive-clear-local-cache').canExecuteChange(); |
3903 this.document_.querySelector('#drive-reload').canExecuteChange(); | 3905 this.document_.querySelector('#drive-reload').canExecuteChange(); |
3904 }; | 3906 }; |
3905 })(); | 3907 })(); |
OLD | NEW |