| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 cr.define('bookmarks', function() { | 5 cr.define('bookmarks', function() { |
| 6 /** | 6 /** |
| 7 * @param {BookmarkElement} element | 7 * @param {BookmarkElement} element |
| 8 * @return {boolean} | 8 * @return {boolean} |
| 9 */ | 9 */ |
| 10 function isBookmarkItem(element) { | 10 function isBookmarkItem(element) { |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 /** @private {bookmarks.DropIndicator} */ | 280 /** @private {bookmarks.DropIndicator} */ |
| 281 this.dropIndicator_ = null; | 281 this.dropIndicator_ = null; |
| 282 | 282 |
| 283 /** @private {Object<string, function(!Event)>} */ | 283 /** @private {Object<string, function(!Event)>} */ |
| 284 this.documentListeners_ = null; | 284 this.documentListeners_ = null; |
| 285 | 285 |
| 286 /** | 286 /** |
| 287 * Used to instantly clearDragData in tests. | 287 * Used to instantly clearDragData in tests. |
| 288 * @private {function((Function|null|string), number)} | 288 * @private {function((Function|null|string), number)} |
| 289 */ | 289 */ |
| 290 this.setTimeout = window.setTimeout.bind(window); | 290 this.setTimeout_ = window.setTimeout.bind(window); |
| 291 } | 291 } |
| 292 | 292 |
| 293 DNDManager.prototype = { | 293 DNDManager.prototype = { |
| 294 init: function() { | 294 init: function() { |
| 295 this.dragInfo_ = new DragInfo(); | 295 this.dragInfo_ = new DragInfo(); |
| 296 this.dropIndicator_ = new DropIndicator(); | 296 this.dropIndicator_ = new DropIndicator(); |
| 297 this.autoExpander_ = new AutoExpander(); | 297 this.autoExpander_ = new AutoExpander(); |
| 298 | 298 |
| 299 this.documentListeners_ = { | 299 this.documentListeners_ = { |
| 300 'dragstart': this.onDragStart_.bind(this), | 300 'dragstart': this.onDragStart_.bind(this), |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 this.dropIndicator_.setTimeout = this.setTimeout_; | 627 this.dropIndicator_.setTimeout = this.setTimeout_; |
| 628 } | 628 } |
| 629 }; | 629 }; |
| 630 | 630 |
| 631 return { | 631 return { |
| 632 DNDManager: DNDManager, | 632 DNDManager: DNDManager, |
| 633 DragInfo: DragInfo, | 633 DragInfo: DragInfo, |
| 634 DropIndicator: DropIndicator, | 634 DropIndicator: DropIndicator, |
| 635 }; | 635 }; |
| 636 }); | 636 }); |
| OLD | NEW |