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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1156 this.table_.list.addEventListener('blur', fileListBlurBound); | 1156 this.table_.list.addEventListener('blur', fileListBlurBound); |
1157 this.grid_.addEventListener('blur', fileListBlurBound); | 1157 this.grid_.addEventListener('blur', fileListBlurBound); |
1158 | 1158 |
1159 var dragStartBound = this.onDragStart_.bind(this); | 1159 var dragStartBound = this.onDragStart_.bind(this); |
1160 this.table_.list.addEventListener('dragstart', dragStartBound); | 1160 this.table_.list.addEventListener('dragstart', dragStartBound); |
1161 this.grid_.addEventListener('dragstart', dragStartBound); | 1161 this.grid_.addEventListener('dragstart', dragStartBound); |
1162 | 1162 |
1163 var dragEndBound = this.onDragEnd_.bind(this); | 1163 var dragEndBound = this.onDragEnd_.bind(this); |
1164 this.table_.list.addEventListener('dragend', dragEndBound); | 1164 this.table_.list.addEventListener('dragend', dragEndBound); |
1165 this.grid_.addEventListener('dragend', dragEndBound); | 1165 this.grid_.addEventListener('dragend', dragEndBound); |
1166 // This event is published by DragSelector because drag end event is not | |
1167 // published at the end of drag selection. | |
1168 this.table_.list.addEventListener('dragselectionend', dragEndBound); | |
yoshiki
2013/06/20 03:11:25
The grid should be handled as well, right?
hirono
2013/06/20 03:55:03
It is not needed yet.
Currently the grid view does
| |
1166 | 1169 |
1167 // TODO(mtomasz, yoshiki): Create sidebar earlier, and here just attach | 1170 // TODO(mtomasz, yoshiki): Create sidebar earlier, and here just attach |
1168 // the directory model. | 1171 // the directory model. |
1169 this.initSidebar_(); | 1172 this.initSidebar_(); |
1170 | 1173 |
1171 this.table_.addEventListener('column-resize-end', | 1174 this.table_.addEventListener('column-resize-end', |
1172 this.updateStartupPrefs_.bind(this)); | 1175 this.updateStartupPrefs_.bind(this)); |
1173 | 1176 |
1174 // Restore preferences. | 1177 // Restore preferences. |
1175 this.directoryModel_.sortFileList( | 1178 this.directoryModel_.sortFileList( |
(...skipping 2631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3807 * Set the flag to hide the selecting checkboxes. | 3810 * Set the flag to hide the selecting checkboxes. |
3808 * This is the alternative for about:flags and to be removed. | 3811 * This is the alternative for about:flags and to be removed. |
3809 * TODO(hirono): Remove this function after the user test. | 3812 * TODO(hirono): Remove this function after the user test. |
3810 * @param {boolean} flag If it's true, the selecting checkboxes are hidden. | 3813 * @param {boolean} flag If it's true, the selecting checkboxes are hidden. |
3811 */ | 3814 */ |
3812 window.setNoCheckboxesFlag = function(flag) { | 3815 window.setNoCheckboxesFlag = function(flag) { |
3813 fileManager.noCheckboxes_ = flag; | 3816 fileManager.noCheckboxes_ = flag; |
3814 fileManager.updateStartupPrefs_(); | 3817 fileManager.updateStartupPrefs_(); |
3815 }; | 3818 }; |
3816 })(); | 3819 })(); |
OLD | NEW |