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

Side by Side Diff: chrome/browser/resources/md_bookmarks/dnd_manager.js

Issue 2853973002: [MD Bookmarks] Fix Drag and drop timer. (Closed)
Patch Set: Created 3 years, 7 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
« 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 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
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
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 });
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