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

Unified Diff: Source/web/WebInputEvent.cpp

Issue 1352283002: Remove PlatformKeyboardEvents requirement to have located virtual keycode information. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/platform/PlatformEvent.h ('k') | Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebInputEvent.cpp
diff --git a/Source/web/WebInputEvent.cpp b/Source/web/WebInputEvent.cpp
index a6632b14d8862b7a03afb30089a4d388351151a1..bd556fbb339433d2f115364452bb260919dd4e2c 100644
--- a/Source/web/WebInputEvent.cpp
+++ b/Source/web/WebInputEvent.cpp
@@ -198,41 +198,4 @@ void WebKeyboardEvent::setKeyIdentifierFromWindowsKeyCode()
snprintf(keyIdentifier, sizeof(keyIdentifier), "U+%04X", toupper(windowsKeyCode));
}
-// static
-int WebKeyboardEvent::windowsKeyCodeWithoutLocation(int keycode)
-{
- switch (keycode) {
- case VK_LCONTROL:
- case VK_RCONTROL:
- return VK_CONTROL;
- case VK_LSHIFT:
- case VK_RSHIFT:
- return VK_SHIFT;
- case VK_LMENU:
- case VK_RMENU:
- return VK_MENU;
- default:
- return keycode;
- }
-}
-
-// static
-int WebKeyboardEvent::locationModifiersFromWindowsKeyCode(int keycode)
-{
- switch (keycode) {
- case VK_LCONTROL:
- case VK_LSHIFT:
- case VK_LMENU:
- case VK_LWIN:
- return IsLeft;
- case VK_RCONTROL:
- case VK_RSHIFT:
- case VK_RMENU:
- case VK_RWIN:
- return IsRight;
- default:
- return 0;
- }
-}
-
} // namespace blink
« no previous file with comments | « Source/platform/PlatformEvent.h ('k') | Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698