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

Unified Diff: content/browser/web_contents/web_drag_source_gtk.cc

Issue 212693004: Merge 259353 "Mark drags starting in web content as tainted to a..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/src/
Patch Set: Created 6 years, 9 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_dest_mac.mm ('k') | content/public/common/drop_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_drag_source_gtk.cc
===================================================================
--- content/browser/web_contents/web_drag_source_gtk.cc (revision 259999)
+++ content/browser/web_contents/web_drag_source_gtk.cc (working copy)
@@ -79,7 +79,7 @@
return false;
}
- int targets_mask = 0;
+ int targets_mask = ui::RENDERER_TAINT;
if (!drop_data.text.string().empty())
targets_mask |= ui::TEXT_PLAIN;
@@ -285,6 +285,17 @@
break;
}
+ case ui::RENDERER_TAINT: {
+ static const char kPlaceholder[] = "x";
+ gtk_selection_data_set(
+ selection_data,
+ ui::GetAtomForTarget(ui::RENDERER_TAINT),
+ kBitsPerByte,
+ reinterpret_cast<const guchar*>(kPlaceholder),
+ strlen(kPlaceholder));
+ break;
+ }
+
default:
NOTREACHED();
}
« no previous file with comments | « content/browser/web_contents/web_drag_dest_mac.mm ('k') | content/public/common/drop_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698