Chromium Code Reviews| Index: content/browser/renderer_host/web_input_event_aura.cc |
| diff --git a/content/browser/renderer_host/web_input_event_aura.cc b/content/browser/renderer_host/web_input_event_aura.cc |
| index e8936c6fb32a52a9620ceaf0d2065bd65bbbbd87..d60ec480670303cb022bc250948deda531702d6b 100644 |
| --- a/content/browser/renderer_host/web_input_event_aura.cc |
| +++ b/content/browser/renderer_host/web_input_event_aura.cc |
| @@ -6,7 +6,6 @@ |
| #include "build/build_config.h" |
| #include "content/browser/renderer_host/input/web_input_event_util.h" |
| -#include "content/browser/renderer_host/ui_events_helper.h" |
| #include "ui/aura/client/screen_position_client.h" |
| #include "ui/aura/window.h" |
| #include "ui/events/base_event_utils.h" |
| @@ -52,6 +51,16 @@ blink::WebPointerProperties::PointerType EventPointerTypeToWebPointerType( |
| return blink::WebPointerProperties::PointerType::Unknown; |
| } |
| +// Creates a WebGestureEvent from a ui::GestureEvent. Note that it does not |
| +// populate the event coordinates (i.e. |x|, |y|, |globalX|, and |globalY|). So |
| +// the caller must populate these fields. |
|
tapted
2016/06/27 00:18:38
(just noticed I'd misplaced this comment, but of c
|
| +blink::WebGestureEvent MakeWebGestureEventFromUIEvent( |
| + const ui::GestureEvent& event) { |
| + return ui::CreateWebGestureEvent( |
| + event.details(), event.time_stamp(), event.location_f(), |
| + event.root_location_f(), event.flags(), event.unique_touch_event_id()); |
| +} |
| + |
| } // namespace |
| #if defined(OS_WIN) |