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

Unified Diff: webkit/tools/test_shell/keyboard_unittest.cc

Issue 519030: bsds: views/ and webkit/ support for FreeBSD/OpenBSD (Closed)
Patch Set: Created 11 years 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: webkit/tools/test_shell/keyboard_unittest.cc
diff --git a/webkit/tools/test_shell/keyboard_unittest.cc b/webkit/tools/test_shell/keyboard_unittest.cc
index 65ac39b8c098bfea332478c364c28acffc1924f0..6c0e139e7312b108e9ee56b4f53dce8ab7c2d6fc 100644
--- a/webkit/tools/test_shell/keyboard_unittest.cc
+++ b/webkit/tools/test_shell/keyboard_unittest.cc
@@ -64,10 +64,10 @@ class KeyboardTest : public testing::Test {
// platforms, but meta (command) on Mac.
const char* InterpretOSModifierKeyPress(char key_code) {
WebKeyboardEvent keyboard_event;
-#if defined(OS_WIN) || defined(OS_LINUX)
- WebInputEvent::Modifiers os_modifier = WebInputEvent::ControlKey;
-#elif defined(OS_MACOSX)
+#if defined(OS_MACOSX)
WebInputEvent::Modifiers os_modifier = WebInputEvent::MetaKey;
+#else
+ WebInputEvent::Modifiers os_modifier = WebInputEvent::ControlKey;
#endif
SetupKeyDownEvent(&keyboard_event, key_code, os_modifier);
return InterpretKeyEvent(keyboard_event, PlatformKeyboardEvent::RawKeyDown);

Powered by Google App Engine
This is Rietveld 408576698