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

Unified Diff: ui/base/dragdrop/cocoa_dnd_util.h

Issue 13758002: Fix dropping images into content editable divs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac.mm ('k') | ui/base/dragdrop/cocoa_dnd_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dragdrop/cocoa_dnd_util.h
diff --git a/ui/base/dragdrop/cocoa_dnd_util.h b/ui/base/dragdrop/cocoa_dnd_util.h
index 66ed1a21b84dd63530731607c888bffeb2e47463..8b4d116b2ce2b3cbfdcd606092d88296831bfac3 100644
--- a/ui/base/dragdrop/cocoa_dnd_util.h
+++ b/ui/base/dragdrop/cocoa_dnd_util.h
@@ -22,6 +22,13 @@ namespace ui {
// associated with it.
UI_EXPORT extern NSString* const kChromeDragDummyPboardType;
+// Mail.app and TextEdit accept drags that have both HTML and image flavors on
+// them, but don't process them correctly <http://crbug.com/55879>. Therefore,
+// if there is an image flavor, don't put the HTML data on as HTML, but rather
+// put it on as this Chrome-only flavor. External apps won't see HTML but
+// Chrome will know enough to read it as HTML. <http://crbug.com/55879>
+UI_EXPORT extern NSString* const kChromeDragImageHTMLPboardType;
+
// Populates the |url| and |title| with URL data in |pboard|. There may be more
// than one, but we only handle dropping the first. |url| must not be |NULL|;
// |title| is an optional parameter. Returns |YES| if URL data was obtained from
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac.mm ('k') | ui/base/dragdrop/cocoa_dnd_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698