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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "third_party/WebKit/public/web/WebInputEvent.h" | 11 #include "third_party/WebKit/public/web/WebInputEvent.h" |
12 #include "ui/events/keycodes/keyboard_codes.h" | 12 #include "ui/events/keycodes/keyboard_codes.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 enum class DomCode; | 15 enum class DomCode; |
16 struct GestureEventData; | 16 struct GestureEventData; |
17 struct GestureEventDetails; | 17 struct GestureEventDetails; |
18 class MotionEvent; | 18 class MotionEvent; |
19 } | 19 } |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 int WebEventModifiersToEventFlags(int modifiers); | 23 int WebEventModifiersToEventFlags(int modifiers); |
24 | 24 |
25 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( | 25 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( |
26 ui::DomCode code); | 26 ui::DomCode code); |
27 | 27 |
28 CONTENT_EXPORT scoped_ptr<blink::WebInputEvent> ConvertWebInputEventToViewport( | |
29 const blink::WebInputEvent& event, | |
30 float scale); | |
31 | |
32 } // namespace content | 28 } // namespace content |
33 | 29 |
34 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ | 30 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ |
OLD | NEW |