| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "webkit/glue/webinputevent.h" | 7 #include "webkit/glue/webinputevent.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 webkit_glue::GetKeyIdentifierForWindowsKeyCode(windows_key_code); | 329 webkit_glue::GetKeyIdentifierForWindowsKeyCode(windows_key_code); |
| 330 base::strlcpy(key_identifier, key_identifier_str.c_str(), | 330 base::strlcpy(key_identifier, key_identifier_str.c_str(), |
| 331 kIdentifierLengthCap); | 331 kIdentifierLengthCap); |
| 332 } | 332 } |
| 333 | 333 |
| 334 if (GetKeyState(VK_SHIFT) & 0x8000) | 334 if (GetKeyState(VK_SHIFT) & 0x8000) |
| 335 modifiers |= SHIFT_KEY; | 335 modifiers |= SHIFT_KEY; |
| 336 if (GetKeyState(VK_CONTROL) & 0x8000) | 336 if (GetKeyState(VK_CONTROL) & 0x8000) |
| 337 modifiers |= CTRL_KEY; | 337 modifiers |= CTRL_KEY; |
| 338 if (GetKeyState(VK_MENU) & 0x8000) | 338 if (GetKeyState(VK_MENU) & 0x8000) |
| 339 modifiers |= (ALT_KEY | META_KEY); | 339 modifiers |= ALT_KEY; |
| 340 | 340 |
| 341 if (LOWORD(lparam) > 1) | 341 if (LOWORD(lparam) > 1) |
| 342 modifiers |= IS_AUTO_REPEAT; | 342 modifiers |= IS_AUTO_REPEAT; |
| 343 if (IsKeyPad(wparam, lparam)) | 343 if (IsKeyPad(wparam, lparam)) |
| 344 modifiers |= IS_KEYPAD; | 344 modifiers |= IS_KEYPAD; |
| 345 } | 345 } |
| OLD | NEW |