OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 * Drag selector used on the file list or the grid table. | 8 * Drag selector used on the file list or the grid table. |
9 * TODO(hirono): Support drag selection for grid view. crbug.com/224832 | 9 * TODO(hirono): Support drag selection for grid view. crbug.com/224832 |
10 * @constructor | 10 * @constructor |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 'mousemove', this.onMouseMoveBound_, true); | 235 'mousemove', this.onMouseMoveBound_, true); |
236 this.target_.ownerDocument.removeEventListener( | 236 this.target_.ownerDocument.removeEventListener( |
237 'mouseup', this.onMouseUpBound_, true); | 237 'mouseup', this.onMouseUpBound_, true); |
238 cr.dispatchSimpleEvent(this.target_, 'dragselectionend'); | 238 cr.dispatchSimpleEvent(this.target_, 'dragselectionend'); |
239 this.target_.cachedBounds = null; | 239 this.target_.cachedBounds = null; |
240 this.target_ = null; | 240 this.target_ = null; |
241 // The target may select an item by reacting to the mouseup event. | 241 // The target may select an item by reacting to the mouseup event. |
242 // This suppress to the selecting behavior. | 242 // This suppress to the selecting behavior. |
243 event.stopPropagation(); | 243 event.stopPropagation(); |
244 }; | 244 }; |
OLD | NEW |