Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
|
Sergey Ulanov
2012/02/15 01:08:12
2012
garykac
2012/02/16 21:12:56
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_PLUGINS_PPAPI_USB_SCAN_CODE_CONVERSION_H_ | |
| 6 #define WEBKIT_PLUGINS_PPAPI_USB_SCAN_CODE_CONVERSION_H_ | |
| 7 | |
| 8 #include "ppapi/c/pp_stdint.h" | |
| 9 | |
| 10 namespace WebKit { | |
| 11 class WebKeyboardEvent; | |
| 12 } | |
|
Sergey Ulanov
2012/02/15 01:08:12
// namespace WebKit
garykac
2012/02/16 21:12:56
Done.
| |
| 13 | |
| 14 namespace webkit { | |
| 15 namespace ppapi { | |
| 16 | |
| 17 // Returns a 32-bit "USB Scan Code" for the key identifier by the supplied | |
| 18 // WebKeyboardEvent. The supplied event must be a KeyDown or KeyUp. | |
| 19 // The code consists of the USB Page (in the high-order 16-bit word) and | |
| 20 // USB Usage Id of the key. If no translation can be performed then zero | |
| 21 // is returned. | |
| 22 uint32_t UsbScanCodeForKeyboardEvent(const WebKit::WebKeyboardEvent& key_event); | |
| 23 | |
| 24 } // namespace ppapi | |
| 25 } // namespace webkit | |
| 26 | |
| 27 #endif // WEBKIT_PLUGINS_PPAPI_USB_SCAN_CODE_CONVERSION_H_ | |
| OLD | NEW |