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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 // what is returned by the Windows API. For example, it should | 236 // what is returned by the Windows API. For example, it should |
237 // store VK_SHIFT instead of VK_RSHIFT. The location information | 237 // store VK_SHIFT instead of VK_RSHIFT. The location information |
238 // should be stored in |modifiers|. | 238 // should be stored in |modifiers|. |
239 int windowsKeyCode; | 239 int windowsKeyCode; |
240 | 240 |
241 // The actual key code genenerated by the platform. The DOM spec runs | 241 // The actual key code genenerated by the platform. The DOM spec runs |
242 // on Windows-equivalent codes (thus |windowsKeyCode| above) but it | 242 // on Windows-equivalent codes (thus |windowsKeyCode| above) but it |
243 // doesn't hurt to have this one around. | 243 // doesn't hurt to have this one around. |
244 int nativeKeyCode; | 244 int nativeKeyCode; |
245 | 245 |
| 246 // The DOM code enum of the key pressed as passed by the embedder. DOM |
| 247 // code enum are defined in ui/events/keycodes/dom4/keycode_converter_data.h
. |
| 248 int domCode; |
| 249 |
246 // This identifies whether this event was tagged by the system as being | 250 // This identifies whether this event was tagged by the system as being |
247 // a "system key" event (see | 251 // a "system key" event (see |
248 // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for | 252 // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for |
249 // details). Other platforms don't have this concept, but it's just | 253 // details). Other platforms don't have this concept, but it's just |
250 // easier to leave it always false than ifdef. | 254 // easier to leave it always false than ifdef. |
251 bool isSystemKey; | 255 bool isSystemKey; |
252 | 256 |
253 // |text| is the text generated by this keystroke. |unmodifiedText| is | 257 // |text| is the text generated by this keystroke. |unmodifiedText| is |
254 // |text|, but unmodified by an concurrently-held modifiers (except | 258 // |text|, but unmodified by an concurrently-held modifiers (except |
255 // shift). This is useful for working out shortcut keys. Linux and | 259 // shift). This is useful for working out shortcut keys. Linux and |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 , causesScrollingIfUncanceled(false) | 526 , causesScrollingIfUncanceled(false) |
523 { | 527 { |
524 } | 528 } |
525 }; | 529 }; |
526 | 530 |
527 #pragma pack(pop) | 531 #pragma pack(pop) |
528 | 532 |
529 } // namespace blink | 533 } // namespace blink |
530 | 534 |
531 #endif | 535 #endif |
OLD | NEW |