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

Unified Diff: content/public/common/drop_data.h

Issue 1411913010: Propagate drag-and-drop key modifiers to WebView's guest renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/common/drag_traits.h ('k') | content/public/common/drop_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/drop_data.h
diff --git a/content/public/common/drop_data.h b/content/public/common/drop_data.h
index 3bc08df3a8d7475ee1961b69bdd3cc15baf7b154..610385aefc15e47ca624fc6083b77de9913b1004 100644
--- a/content/public/common/drop_data.h
+++ b/content/public/common/drop_data.h
@@ -36,6 +36,12 @@ struct CONTENT_EXPORT DropData {
// Whether this drag originated from a renderer.
bool did_originate_from_renderer;
+ // The key-modifiers present for this update, included here so BrowserPlugin
+ // can forward them to the guest renderer.
+ // TODO(wjmaclean): This can probably be removed when BrowserPlugin goes
+ // away, https://crbug.com/533069.
+ int key_modifiers;
Charlie Reis 2015/11/04 22:48:29 If this is temporary, maybe it should go at the en
wjmaclean 2015/11/05 15:08:07 Done. (I had chosen this location primarily to kee
+
// User is dragging a link into the webview.
GURL url;
base::string16 url_title; // The title associated with |url|.
@@ -72,6 +78,7 @@ struct CONTENT_EXPORT DropData {
std::string file_contents;
std::map<base::string16, base::string16> custom_data;
+
Charlie Reis 2015/11/04 22:48:29 nit: Not needed.
wjmaclean 2015/11/05 15:08:07 Done.
};
} // namespace content
« no previous file with comments | « content/common/drag_traits.h ('k') | content/public/common/drop_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698