Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 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_ | |
| 7 | |
| 8 #include <windows.h> | |
| 9 | |
| 10 #include "third_party/WebKit/public/web/WebInputEvent.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 class WebKeyboardEventBuilder { | |
| 15 public: | |
| 16 static WebKit::WebKeyboardEvent Build(HWND hwnd, UINT message, | |
| 17 WPARAM wparam, LPARAM lparam); | |
| 18 }; | |
| 19 | |
| 20 class WebMouseEventBuilder { | |
| 21 public: | |
| 22 static WebKit::WebMouseEvent Build(HWND hwnd, UINT message, | |
| 23 WPARAM wparam, LPARAM lparam); | |
| 24 }; | |
| 25 | |
| 26 class WebMouseWheelEventBuilder { | |
| 27 public: | |
| 28 static WebKit::WebMouseWheelEvent Build(HWND hwnd, UINT message, | |
| 29 WPARAM wparam, LPARAM lparam); | |
| 30 }; | |
| 31 | |
| 32 // Windows only provides information on whether a click was a single or | |
| 33 // double click, while we need to know the click count past two. The | |
| 34 // WebInputEventFactory keeps internal state to allow it to synthesize | |
| 35 // that information. In some cases, like fast-running tests, that | |
| 36 // information is known to be stale and needs to be reset; that is the | |
| 37 // function of resetLastClickState(). | |
| 38 static void ResetLastClickState(); | |
|
darin (slow to review)
2013/07/23 23:29:11
nit: maybe this could be a static method on WebMou
| |
| 39 | |
| 40 } // namespace content | |
| 41 | |
| 42 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_BUILDERS_WIN_H_ | |
| OLD | NEW |