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

Side by Side Diff: chrome/browser/resources/ntp4/drag_wrapper.js

Issue 7889002: Normalizing .dropEffect across platforms (specifically Windows). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: incorporating csilv's changes Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/tile_page.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 /** 5 /**
6 * @fileoverview DragWrapper 6 * @fileoverview DragWrapper
7 * A class for simplifying HTML5 drag and drop. Classes should use this to 7 * A class for simplifying HTML5 drag and drop. Classes should use this to
8 * handle the nitty gritty of nested drag enters and leaves. 8 * handle the nitty gritty of nested drag enters and leaves.
9 */ 9 */
10 var DragWrapper = (function() { 10 var DragWrapper = (function() {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 /** 101 /**
102 * Thunk for dragleave events fired on |target_|. 102 * Thunk for dragleave events fired on |target_|.
103 * @param {Event} e A MouseEvent for the drag. 103 * @param {Event} e A MouseEvent for the drag.
104 * @private 104 * @private
105 */ 105 */
106 onDragLeave_: function(e) { 106 onDragLeave_: function(e) {
107 if (--this.dragEnters_ > 0) 107 if (--this.dragEnters_ > 0)
108 return; 108 return;
109 109
110 this.target_.classList.remove('drag-target'); 110 this.target_.classList.remove('drag-target');
111 this.handler_.doDragLeave(); 111 this.handler_.doDragLeave(e);
112 }, 112 },
113 }; 113 };
114 114
115 return DragWrapper; 115 return DragWrapper;
116 })(); 116 })();
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/tile_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698