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

Unified Diff: content/browser/renderer_host/web_input_event_aurawin.cc

Issue 252083002: Use MSG.time for WebInputEvent timestamps on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix style Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/web_input_event_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 06e2dbf4592e82add507e017231da8d5f3c04cae..549e2f2bb1defff451e6eddb86ed09532931f155 100644
--- a/content/browser/renderer_host/web_input_event_aurawin.cc
+++ b/content/browser/renderer_host/web_input_event_aurawin.cc
@@ -14,31 +14,34 @@ namespace content {
// construct our pre-translated events.
blink::WebMouseEvent MakeUntranslatedWebMouseEventFromNativeEvent(
- base::NativeEvent native_event) {
+ const base::NativeEvent& native_event) {
return WebMouseEventBuilder::Build(native_event.hwnd,
native_event.message,
native_event.wParam,
- native_event.lParam);
+ native_event.lParam,
+ native_event.time);
}
blink::WebMouseWheelEvent MakeUntranslatedWebMouseWheelEventFromNativeEvent(
- base::NativeEvent native_event) {
+ const base::NativeEvent& native_event) {
return WebMouseWheelEventBuilder::Build(native_event.hwnd,
native_event.message,
native_event.wParam,
- native_event.lParam);
+ native_event.lParam,
+ native_event.time);
}
blink::WebKeyboardEvent MakeWebKeyboardEventFromNativeEvent(
- base::NativeEvent native_event) {
+ const base::NativeEvent& native_event) {
return WebKeyboardEventBuilder::Build(native_event.hwnd,
native_event.message,
native_event.wParam,
- native_event.lParam);
+ native_event.lParam,
+ native_event.time);
}
blink::WebGestureEvent MakeWebGestureEventFromNativeEvent(
- base::NativeEvent native_event) {
+ const base::NativeEvent& native_event) {
// TODO: Create gestures from native event.
NOTIMPLEMENTED();
return blink::WebGestureEvent();
« no previous file with comments | « content/browser/renderer_host/web_input_event_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698