Chromium Code Reviews| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 230 // what is returned by the Windows API. For example, it should | 230 // what is returned by the Windows API. For example, it should |
| 231 // store VK_SHIFT instead of VK_RSHIFT. The location information | 231 // store VK_SHIFT instead of VK_RSHIFT. The location information |
| 232 // should be stored in |modifiers|. | 232 // should be stored in |modifiers|. |
| 233 int windowsKeyCode; | 233 int windowsKeyCode; |
| 234 | 234 |
| 235 // The actual key code genenerated by the platform. The DOM spec runs | 235 // The actual key code genenerated by the platform. The DOM spec runs |
| 236 // on Windows-equivalent codes (thus |windowsKeyCode| above) but it | 236 // on Windows-equivalent codes (thus |windowsKeyCode| above) but it |
| 237 // doesn't hurt to have this one around. | 237 // doesn't hurt to have this one around. |
| 238 int nativeKeyCode; | 238 int nativeKeyCode; |
| 239 | 239 |
| 240 // The enum code value of the key pressed as passed by the embedder. | |
|
Rick Byers
2015/01/23 20:38:30
Please add a comment saying where exactly the enum
Rick Byers
2015/01/23 20:38:30
nit: maybe "DOM code enum value" just to be precis
Habib Virji
2015/01/26 11:32:35
Done.
Habib Virji
2015/01/26 11:32:35
Done.
| |
| 241 int domCode; | |
| 242 | |
| 240 // This identifies whether this event was tagged by the system as being | 243 // This identifies whether this event was tagged by the system as being |
| 241 // a "system key" event (see | 244 // a "system key" event (see |
| 242 // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for | 245 // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for |
| 243 // details). Other platforms don't have this concept, but it's just | 246 // details). Other platforms don't have this concept, but it's just |
| 244 // easier to leave it always false than ifdef. | 247 // easier to leave it always false than ifdef. |
| 245 bool isSystemKey; | 248 bool isSystemKey; |
| 246 | 249 |
| 247 // |text| is the text generated by this keystroke. |unmodifiedText| is | 250 // |text| is the text generated by this keystroke. |unmodifiedText| is |
| 248 // |text|, but unmodified by an concurrently-held modifiers (except | 251 // |text|, but unmodified by an concurrently-held modifiers (except |
| 249 // shift). This is useful for working out shortcut keys. Linux and | 252 // shift). This is useful for working out shortcut keys. Linux and |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 516 , causesScrollingIfUncanceled(false) | 519 , causesScrollingIfUncanceled(false) |
| 517 { | 520 { |
| 518 } | 521 } |
| 519 }; | 522 }; |
| 520 | 523 |
| 521 #pragma pack(pop) | 524 #pragma pack(pop) |
| 522 | 525 |
| 523 } // namespace blink | 526 } // namespace blink |
| 524 | 527 |
| 525 #endif | 528 #endif |
| OLD | NEW |