OLD | NEW |
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 #include "content/browser/renderer_host/ui_events_helper.h" | 5 #include "content/browser/renderer_host/ui_events_helper.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "content/browser/renderer_host/input/web_input_event_util.h" | 9 #include "content/browser/renderer_host/input/web_input_event_util.h" |
10 #include "content/common/input/web_touch_event_traits.h" | 10 #include "content/public/common/input/web_touch_event_traits.h" |
11 #include "third_party/WebKit/public/web/WebInputEvent.h" | 11 #include "third_party/WebKit/public/web/WebInputEvent.h" |
12 #include "ui/events/blink/blink_event_util.h" | 12 #include "ui/events/blink/blink_event_util.h" |
13 #include "ui/events/event.h" | 13 #include "ui/events/event.h" |
14 #include "ui/events/event_constants.h" | 14 #include "ui/events/event_constants.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 ui::EventType WebTouchPointStateToEventType( | 18 ui::EventType WebTouchPointStateToEventType( |
19 blink::WebTouchPoint::State state) { | 19 blink::WebTouchPoint::State state) { |
20 switch (state) { | 20 switch (state) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 88 } |
89 | 89 |
90 blink::WebGestureEvent MakeWebGestureEventFromUIEvent( | 90 blink::WebGestureEvent MakeWebGestureEventFromUIEvent( |
91 const ui::GestureEvent& event) { | 91 const ui::GestureEvent& event) { |
92 return ui::CreateWebGestureEvent(event.details(), event.time_stamp(), | 92 return ui::CreateWebGestureEvent(event.details(), event.time_stamp(), |
93 event.location_f(), event.root_location_f(), | 93 event.location_f(), event.root_location_f(), |
94 event.flags()); | 94 event.flags()); |
95 } | 95 } |
96 | 96 |
97 } // namespace content | 97 } // namespace content |
OLD | NEW |