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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 879333002: Support buttons attribute for drag event (blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« Source/core/page/EventHandler.cpp ('K') | « Source/core/page/EventHandler.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 06e1c3efd3a9d6a137123b869811287b1502407b..4cea0dc13af1c44ce4b6fa863bb28d9241d45ae3 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -244,6 +244,12 @@ static int webInputEventKeyStateToPlatformEventKeyState(int webInputEventKeyStat
platformEventKeyState = platformEventKeyState | PlatformEvent::AltKey;
if (webInputEventKeyState & WebInputEvent::MetaKey)
platformEventKeyState = platformEventKeyState | PlatformEvent::MetaKey;
+ if (webInputEventKeyState & WebInputEvent::LeftButtonDown)
+ platformEventKeyState = platformEventKeyState | PlatformEvent::LeftButtonDown;
+ if (webInputEventKeyState & WebInputEvent::MiddleButtonDown)
+ platformEventKeyState = platformEventKeyState | PlatformEvent::MiddleButtonDown;
+ if (webInputEventKeyState & WebInputEvent::RightButtonDown)
+ platformEventKeyState = platformEventKeyState | PlatformEvent::RightButtonDown;
return platformEventKeyState;
}
« Source/core/page/EventHandler.cpp ('K') | « Source/core/page/EventHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698