OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "third_party/WebKit/public/web/WebInputEvent.h" | 10 #include "third_party/WebKit/public/web/WebInputEvent.h" |
11 #include "ui/events/keycodes/keyboard_codes.h" | 11 #include "ui/events/keycodes/keyboard_codes.h" |
12 | 12 |
13 namespace ui { | 13 namespace ui { |
14 enum class DomCode; | |
15 struct GestureEventData; | 14 struct GestureEventData; |
16 struct GestureEventDetails; | 15 struct GestureEventDetails; |
17 class MotionEvent; | 16 class MotionEvent; |
18 } | 17 } |
19 | 18 |
20 namespace content { | 19 namespace content { |
21 | 20 |
22 // Update |event|'s windowsKeyCode and keyIdentifer properties using the | 21 // Update |event|'s windowsKeyCode and keyIdentifer properties using the |
23 // provided |windows_key_code|. | 22 // provided |windows_key_code|. |
24 CONTENT_EXPORT void UpdateWindowsKeyCodeAndKeyIdentifier( | 23 CONTENT_EXPORT void UpdateWindowsKeyCodeAndKeyIdentifier( |
25 blink::WebKeyboardEvent* event, | 24 blink::WebKeyboardEvent* event, |
26 ui::KeyboardCode windows_key_code); | 25 ui::KeyboardCode windows_key_code); |
27 | 26 |
28 int WebEventModifiersToEventFlags(int modifiers); | 27 int WebEventModifiersToEventFlags(int modifiers); |
29 | 28 |
30 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( | |
31 ui::DomCode code); | |
32 | |
33 } // namespace content | 29 } // namespace content |
34 | 30 |
35 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ | 31 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ |
OLD | NEW |