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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 10377119: Plumb event flags (shift/alt/ctrl modifiers) for drag/drop events to WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error Created 8 years, 7 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
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 9213d8979f92a43d230fab11d8546cdd4cdbd1de..9ca385be5afc39193f7cf2cfe4711d7be3defa14 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -509,7 +509,8 @@ void RenderViewHostImpl::DragTargetDragEnter(
const WebDropData& drop_data,
const gfx::Point& client_pt,
const gfx::Point& screen_pt,
- WebDragOperationsMask operations_allowed) {
+ WebDragOperationsMask operations_allowed,
+ int key_modifiers) {
const int renderer_id = GetProcess()->GetID();
ChildProcessSecurityPolicyImpl* policy =
ChildProcessSecurityPolicyImpl::GetInstance();
@@ -552,14 +553,17 @@ void RenderViewHostImpl::DragTargetDragEnter(
filtered_data.filesystem_id = UTF8ToUTF16(filesystem_id);
Send(new DragMsg_TargetDragEnter(GetRoutingID(), filtered_data, client_pt,
- screen_pt, operations_allowed));
+ screen_pt, operations_allowed,
+ key_modifiers));
}
void RenderViewHostImpl::DragTargetDragOver(
- const gfx::Point& client_pt, const gfx::Point& screen_pt,
- WebDragOperationsMask operations_allowed) {
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ WebDragOperationsMask operations_allowed,
+ int key_modifiers) {
Send(new DragMsg_TargetDragOver(GetRoutingID(), client_pt, screen_pt,
- operations_allowed));
+ operations_allowed, key_modifiers));
}
void RenderViewHostImpl::DragTargetDragLeave() {
@@ -567,8 +571,11 @@ void RenderViewHostImpl::DragTargetDragLeave() {
}
void RenderViewHostImpl::DragTargetDrop(
- const gfx::Point& client_pt, const gfx::Point& screen_pt) {
- Send(new DragMsg_TargetDrop(GetRoutingID(), client_pt, screen_pt));
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ int key_modifiers) {
+ Send(new DragMsg_TargetDrop(GetRoutingID(), client_pt, screen_pt,
+ key_modifiers));
}
void RenderViewHostImpl::DesktopNotificationPermissionRequestDone(
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/browser/renderer_host/render_view_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698