Index: content/browser/renderer_host/web_input_event_aurawin.cc |
diff --git a/content/browser/renderer_host/web_input_event_aurawin.cc b/content/browser/renderer_host/web_input_event_aurawin.cc |
index 96e5825765454800c6e572542533cc1190441afe..97a542c3747e8c68ff56869e51239836b79e8dac 100644 |
--- a/content/browser/renderer_host/web_input_event_aurawin.cc |
+++ b/content/browser/renderer_host/web_input_event_aurawin.cc |
@@ -8,6 +8,7 @@ |
#include "base/logging.h" |
#include "base/time/time.h" |
#include "content/browser/renderer_host/input/web_input_event_builders_win.h" |
+#include "ui/events/base_event_utils.h" |
namespace content { |
@@ -16,31 +17,31 @@ namespace content { |
blink::WebMouseEvent MakeUntranslatedWebMouseEventFromNativeEvent( |
const base::NativeEvent& native_event, |
- const base::TimeDelta& time_stamp) { |
+ const base::TimeTicks& time_stamp) { |
return WebMouseEventBuilder::Build(native_event.hwnd, native_event.message, |
native_event.wParam, native_event.lParam, |
- time_stamp.InSecondsF()); |
+ ui::EventTimeStampToSeconds(time_stamp)); |
} |
blink::WebMouseWheelEvent MakeUntranslatedWebMouseWheelEventFromNativeEvent( |
const base::NativeEvent& native_event, |
- const base::TimeDelta& time_stamp) { |
+ const base::TimeTicks& time_stamp) { |
return WebMouseWheelEventBuilder::Build( |
native_event.hwnd, native_event.message, native_event.wParam, |
- native_event.lParam, time_stamp.InSecondsF()); |
+ native_event.lParam, ui::EventTimeStampToSeconds(time_stamp)); |
} |
blink::WebKeyboardEvent MakeWebKeyboardEventFromNativeEvent( |
const base::NativeEvent& native_event, |
- const base::TimeDelta& time_stamp) { |
+ const base::TimeTicks& time_stamp) { |
return WebKeyboardEventBuilder::Build( |
native_event.hwnd, native_event.message, native_event.wParam, |
- native_event.lParam, time_stamp.InSecondsF()); |
+ native_event.lParam, ui::EventTimeStampToSeconds(time_stamp)); |
} |
blink::WebGestureEvent MakeWebGestureEventFromNativeEvent( |
const base::NativeEvent& native_event, |
- const base::TimeDelta& time_stamp) { |
+ const base::TimeTicks& time_stamp) { |
// TODO: Create gestures from native event. |
NOTIMPLEMENTED(); |
return blink::WebGestureEvent(); |