Chromium Code Reviews| Index: content/browser/renderer_host/input/web_input_event_builders_win.h |
| diff --git a/content/browser/renderer_host/input/web_input_event_builders_win.h b/content/browser/renderer_host/input/web_input_event_builders_win.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6e81f413e96031e25333f605688caefc10817ddc |
| --- /dev/null |
| +++ b/content/browser/renderer_host/input/web_input_event_builders_win.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_WIN_H_ |
| +#define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_WIN_H_ |
| + |
| +#include <windows.h> |
| + |
| +#include "third_party/WebKit/public/web/WebInputEvent.h" |
| + |
| +namespace content { |
| + |
| +class WebKeyboardEventBuilder { |
| + public: |
| + static WebKit::WebKeyboardEvent Build(HWND hwnd, UINT message, |
| + WPARAM wparam, LPARAM lparam); |
| +}; |
| + |
| +class WebMouseEventBuilder { |
| + public: |
| + static WebKit::WebMouseEvent Build(HWND hwnd, UINT message, |
| + WPARAM wparam, LPARAM lparam); |
| +}; |
| + |
| +class WebMouseWheelEventBuilder { |
| + public: |
| + static WebKit::WebMouseWheelEvent Build(HWND hwnd, UINT message, |
| + WPARAM wparam, LPARAM lparam); |
| +}; |
| + |
| +// Windows only provides information on whether a click was a single or |
| +// double click, while we need to know the click count past two. The |
| +// WebInputEventFactory keeps internal state to allow it to synthesize |
| +// that information. In some cases, like fast-running tests, that |
| +// information is known to be stale and needs to be reset; that is the |
| +// function of resetLastClickState(). |
| +static void ResetLastClickState(); |
|
darin (slow to review)
2013/07/23 23:29:11
nit: maybe this could be a static method on WebMou
|
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_BUILDERS_WIN_H_ |