diff options
author | dbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 06:49:49 +0000 |
---|---|---|
committer | dbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 06:49:49 +0000 |
commit | c061545ca42440933101bcba640f786f43d4b59f (patch) | |
tree | da8dc91a8d5290758c0d1996a787d2985a57822e | |
parent | d6d918b92daa9670016fa5c8380f207acc4798e8 (diff) | |
download | chromium_src-c061545ca42440933101bcba640f786f43d4b59f.zip chromium_src-c061545ca42440933101bcba640f786f43d4b59f.tar.gz chromium_src-c061545ca42440933101bcba640f786f43d4b59f.tar.bz2 |
Fixing drag issues for folders on OS X.
BUG=93343
R=estade@chromium.org
TEST=Drag and drop folders in the bookmarks page on NTP4 on OS X, verify they don't just die mid-drag.
Review URL: http://codereview.chromium.org/7839023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99928 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/ntp4/bookmarks_page.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/resources/ntp4/bookmarks_page.js b/chrome/browser/resources/ntp4/bookmarks_page.js index 75e1dc8..00fabc4 100644 --- a/chrome/browser/resources/ntp4/bookmarks_page.js +++ b/chrome/browser/resources/ntp4/bookmarks_page.js @@ -127,9 +127,11 @@ cr.define('ntp4', function() { * current drag. */ setDragData: function(dataTransfer) { - // We don't need to do anything here at the moment other than make sure - // this method exists. The default data given to us in the drag events are - // good enough. + // OS X requires extra data drag data to consider a drag useful, so we're + // appending some semi-useful data at the end to force drags to work on + // this OS. Don't use this data for anything -- this is just a hack to + // ensure drag works the same as on other platforms. + dataTransfer.setData('Text', this.data.id); }, /** |