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

Side by Side Diff: ui/events/blink/blink_event_util.h

Issue 2234023002: Refactor WebInputEventAura to ui/events/blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months 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
« no previous file with comments | « ui/events/blink/DEPS ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 5 #ifndef UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
6 #define UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 6 #define UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "third_party/WebKit/public/web/WebInputEvent.h" 10 #include "third_party/WebKit/public/platform/WebInputEvent.h"
11 #include "ui/events/gesture_detection/motion_event.h" 11 #include "ui/events/gesture_detection/motion_event.h"
12 12
13 namespace base { 13 namespace base {
14 class TimeDelta; 14 class TimeDelta;
15 } 15 }
16 16
17 namespace blink { 17 namespace blink {
18 class WebGestureEvent; 18 class WebGestureEvent;
19 class WebInputEvent; 19 class WebInputEvent;
20 class WebTouchEvent; 20 class WebTouchEvent;
21 } 21 }
22 22
23 namespace gfx { 23 namespace gfx {
24 class PointF; 24 class PointF;
25 } 25 }
26 26
27 namespace ui { 27 namespace ui {
28 enum class DomCode;
28 struct GestureEventData; 29 struct GestureEventData;
29 struct GestureEventDetails; 30 struct GestureEventDetails;
30 class MotionEvent; 31 class MotionEvent;
31 32
32 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( 33 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent(
33 const MotionEvent& event, 34 const MotionEvent& event,
34 bool may_cause_scrolling); 35 bool may_cause_scrolling);
35 36
36 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details, 37 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details,
37 base::TimeTicks timestamp, 38 base::TimeTicks timestamp,
38 const gfx::PointF& location, 39 const gfx::PointF& location,
39 const gfx::PointF& raw_location, 40 const gfx::PointF& raw_location,
40 int flags, 41 int flags,
41 uint32_t unique_touch_event_id); 42 uint32_t unique_touch_event_id);
42 43
43 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|. 44 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|.
44 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( 45 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData(
45 const GestureEventData& data); 46 const GestureEventData& data);
46 47
47 int EventFlagsToWebEventModifiers(int flags); 48 int EventFlagsToWebEventModifiers(int flags);
48 49
49 std::unique_ptr<blink::WebInputEvent> ScaleWebInputEvent( 50 std::unique_ptr<blink::WebInputEvent> ScaleWebInputEvent(
50 const blink::WebInputEvent& event, 51 const blink::WebInputEvent& event,
51 float scale); 52 float scale);
52 53
53 blink::WebPointerProperties::PointerType ToWebPointerType( 54 blink::WebPointerProperties::PointerType ToWebPointerType(
54 MotionEvent::ToolType tool_type); 55 MotionEvent::ToolType tool_type);
55 56
57 int WebEventModifiersToEventFlags(int modifiers);
58
59 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers(
60 ui::DomCode code);
61
56 } // namespace ui 62 } // namespace ui
57 63
58 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 64 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
OLDNEW
« no previous file with comments | « ui/events/blink/DEPS ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698