OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // what is returned by the Windows API. For example, it should | 239 // what is returned by the Windows API. For example, it should |
240 // store VK_SHIFT instead of VK_RSHIFT. The location information | 240 // store VK_SHIFT instead of VK_RSHIFT. The location information |
241 // should be stored in |modifiers|. | 241 // should be stored in |modifiers|. |
242 int windowsKeyCode; | 242 int windowsKeyCode; |
243 | 243 |
244 // The actual key code genenerated by the platform. The DOM spec runs | 244 // The actual key code genenerated by the platform. The DOM spec runs |
245 // on Windows-equivalent codes (thus |windowsKeyCode| above) but it | 245 // on Windows-equivalent codes (thus |windowsKeyCode| above) but it |
246 // doesn't hurt to have this one around. | 246 // doesn't hurt to have this one around. |
247 int nativeKeyCode; | 247 int nativeKeyCode; |
248 | 248 |
| 249 // The usbCode for the key generated. USB code is then used to map to |
| 250 // code as per DOM3 Keyboard Code Specifications. |
| 251 // This code however is not used for testing, it relies on windowsKeyCode. |
| 252 int usbCode; |
| 253 |
249 // This identifies whether this event was tagged by the system as being | 254 // This identifies whether this event was tagged by the system as being |
250 // a "system key" event (see | 255 // a "system key" event (see |
251 // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for | 256 // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for |
252 // details). Other platforms don't have this concept, but it's just | 257 // details). Other platforms don't have this concept, but it's just |
253 // easier to leave it always false than ifdef. | 258 // easier to leave it always false than ifdef. |
254 // See comment at the top of the file for why an int is used here. | 259 // See comment at the top of the file for why an int is used here. |
255 bool isSystemKey; | 260 bool isSystemKey; |
256 | 261 |
257 // |text| is the text generated by this keystroke. |unmodifiedText| is | 262 // |text| is the text generated by this keystroke. |unmodifiedText| is |
258 // |text|, but unmodified by an concurrently-held modifiers (except | 263 // |text|, but unmodified by an concurrently-held modifiers (except |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 , cancelable(true) | 507 , cancelable(true) |
503 { | 508 { |
504 } | 509 } |
505 }; | 510 }; |
506 | 511 |
507 #pragma pack(pop) | 512 #pragma pack(pop) |
508 | 513 |
509 } // namespace blink | 514 } // namespace blink |
510 | 515 |
511 #endif | 516 #endif |
OLD | NEW |