From 8ada5e06e95dd941314a0665da2948448fefa820 Mon Sep 17 00:00:00 2001 From: "jianli@chromium.org" Date: Fri, 19 Feb 2010 00:36:58 +0000 Subject: Support dragging a virtual file out of the browser on Linux. This is based on the discussion of drag-out feature on whatwg: http://list.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-August/022122.html BUG=none TEST=To test, drag an element that adds the DownloadURL format data via event.DataTransfer.setData, to the desktop or a folder. Review URL: http://codereview.chromium.org/600154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39405 0039d316-1c4b-4281-b951-d872f2087c98 --- app/gtk_dnd_util.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/gtk_dnd_util.h') diff --git a/app/gtk_dnd_util.h b/app/gtk_dnd_util.h index 4b6155e..efa249c 100644 --- a/app/gtk_dnd_util.h +++ b/app/gtk_dnd_util.h @@ -31,7 +31,11 @@ class GtkDndUtil { // apps. NETSCAPE_URL = 1 << 7, - INVALID_TARGET = 1 << 8, + // Used for drag-out download. + TEXT_PLAIN_NO_CHARSET = 1 << 8, + DIRECT_SAVE_FILE = 1 << 9, + + INVALID_TARGET = 1 << 10, }; // Get the atom for a given target (of the above enum type). Will return NULL -- cgit v1.1