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

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

Issue 878413003: Support buttons attribute for drag event (chromium side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 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 | « no previous file | content/browser/web_contents/web_drag_dest_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index da9af68e420cdc09215582c10653ba5f9c4bb620..22c953f20ccfdace6bb4b7facebfa3bab02db9bc 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -456,6 +456,12 @@ int ConvertAuraEventFlagsToWebInputEventModifiers(int aura_event_flags) {
web_input_event_modifiers |= blink::WebInputEvent::AltKey;
if (aura_event_flags & ui::EF_COMMAND_DOWN)
web_input_event_modifiers |= blink::WebInputEvent::MetaKey;
+ if (aura_event_flags & ui::EF_LEFT_MOUSE_BUTTON)
+ web_input_event_modifiers |= blink::WebInputEvent::LeftButtonDown;
+ if (aura_event_flags & ui::EF_MIDDLE_MOUSE_BUTTON)
+ web_input_event_modifiers |= blink::WebInputEvent::MiddleButtonDown;
+ if (aura_event_flags & ui::EF_RIGHT_MOUSE_BUTTON)
+ web_input_event_modifiers |= blink::WebInputEvent::RightButtonDown;
return web_input_event_modifiers;
}
« no previous file with comments | « no previous file | content/browser/web_contents/web_drag_dest_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698