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

Side by Side Diff: content/browser/renderer_host/input/web_input_event_builders_win.h

Issue 252083002: Use MSG.time for WebInputEvent timestamps on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually pass in the timestamp... Created 6 years, 7 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 | « no previous file | content/browser/renderer_host/input/web_input_event_builders_win.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "third_party/WebKit/public/web/WebInputEvent.h" 10 #include "third_party/WebKit/public/web/WebInputEvent.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class WebKeyboardEventBuilder { 14 class WebKeyboardEventBuilder {
15 public: 15 public:
16 static blink::WebKeyboardEvent Build(HWND hwnd, UINT message, 16 static blink::WebKeyboardEvent Build(HWND hwnd,
17 WPARAM wparam, LPARAM lparam); 17 UINT message,
18 WPARAM wparam,
19 LPARAM lparam,
20 DWORD time_ms);
18 }; 21 };
19 22
20 class WebMouseEventBuilder { 23 class WebMouseEventBuilder {
21 public: 24 public:
22 static blink::WebMouseEvent Build(HWND hwnd, UINT message, 25 static blink::WebMouseEvent Build(HWND hwnd,
23 WPARAM wparam, LPARAM lparam); 26 UINT message,
27 WPARAM wparam,
28 LPARAM lparam,
29 DWORD time_ms);
24 }; 30 };
25 31
26 class WebMouseWheelEventBuilder { 32 class WebMouseWheelEventBuilder {
27 public: 33 public:
28 static blink::WebMouseWheelEvent Build(HWND hwnd, UINT message, 34 static blink::WebMouseWheelEvent Build(HWND hwnd,
29 WPARAM wparam, LPARAM lparam); 35 UINT message,
36 WPARAM wparam,
37 LPARAM lparam,
38 DWORD time_Ms);
tdresser 2014/04/29 13:33:36 time_Ms -> time_ms
30 }; 39 };
31 40
32 } // namespace content 41 } // namespace content
33 42
34 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_BUILDERS_WIN_H_ 43 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_BUILDERS_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/web_input_event_builders_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698