Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: content/renderer/pepper/usb_key_code_conversion.h

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_RENDERER_PEPPER_USB_KEY_CODE_CONVERSION_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_USB_KEY_CODE_CONVERSION_H_
6 #define CONTENT_RENDERER_PEPPER_USB_KEY_CODE_CONVERSION_H_ 6 #define CONTENT_RENDERER_PEPPER_USB_KEY_CODE_CONVERSION_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 9
10 namespace WebKit { 10 namespace blink {
11 class WebKeyboardEvent; 11 class WebKeyboardEvent;
12 } // namespace WebKit 12 } // namespace blink
13 13
14 namespace content { 14 namespace content {
15 15
16 // Returns a 32-bit "USB Key Code" for the key identifier by the supplied 16 // Returns a 32-bit "USB Key Code" for the key identifier by the supplied
17 // WebKeyboardEvent. The supplied event must be a KeyDown or KeyUp. 17 // WebKeyboardEvent. The supplied event must be a KeyDown or KeyUp.
18 // The code consists of the USB Page (in the high-order 16-bit word) and 18 // The code consists of the USB Page (in the high-order 16-bit word) and
19 // USB Usage Id of the key. If no translation can be performed then zero 19 // USB Usage Id of the key. If no translation can be performed then zero
20 // is returned. 20 // is returned.
21 uint32_t UsbKeyCodeForKeyboardEvent(const WebKit::WebKeyboardEvent& key_event); 21 uint32_t UsbKeyCodeForKeyboardEvent(const blink::WebKeyboardEvent& key_event);
22 22
23 // Returns a string that represents the UI Event |code| parameter as specified 23 // Returns a string that represents the UI Event |code| parameter as specified
24 // in http://www.w3.org/TR/uievents/ 24 // in http://www.w3.org/TR/uievents/
25 const char* CodeForKeyboardEvent(const WebKit::WebKeyboardEvent& key_event); 25 const char* CodeForKeyboardEvent(const blink::WebKeyboardEvent& key_event);
26 26
27 } // namespace content 27 } // namespace content
28 28
29 #endif // CONTENT_RENDERER_PEPPER_USB_KEY_CODE_CONVERSION_H_ 29 #endif // CONTENT_RENDERER_PEPPER_USB_KEY_CODE_CONVERSION_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/url_response_info_util.cc ('k') | content/renderer/pepper/usb_key_code_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698