| OLD | NEW |
| 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 "content/common/content_export.h" |
| 10 #include "third_party/WebKit/public/web/WebInputEvent.h" | 11 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 | 14 |
| 14 class WebKeyboardEventBuilder { | 15 class CONTENT_EXPORT WebKeyboardEventBuilder { |
| 15 public: | 16 public: |
| 16 static blink::WebKeyboardEvent Build(HWND hwnd, | 17 static blink::WebKeyboardEvent Build(HWND hwnd, |
| 17 UINT message, | 18 UINT message, |
| 18 WPARAM wparam, | 19 WPARAM wparam, |
| 19 LPARAM lparam, | 20 LPARAM lparam, |
| 20 DWORD time_ms); | 21 DWORD time_ms); |
| 21 }; | 22 }; |
| 22 | 23 |
| 23 class WebMouseEventBuilder { | 24 class CONTENT_EXPORT WebMouseEventBuilder { |
| 24 public: | 25 public: |
| 25 static blink::WebMouseEvent Build(HWND hwnd, | 26 static blink::WebMouseEvent Build(HWND hwnd, |
| 26 UINT message, | 27 UINT message, |
| 27 WPARAM wparam, | 28 WPARAM wparam, |
| 28 LPARAM lparam, | 29 LPARAM lparam, |
| 29 DWORD time_ms); | 30 DWORD time_ms); |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 class WebMouseWheelEventBuilder { | 33 class CONTENT_EXPORT WebMouseWheelEventBuilder { |
| 33 public: | 34 public: |
| 34 static blink::WebMouseWheelEvent Build(HWND hwnd, | 35 static blink::WebMouseWheelEvent Build(HWND hwnd, |
| 35 UINT message, | 36 UINT message, |
| 36 WPARAM wparam, | 37 WPARAM wparam, |
| 37 LPARAM lparam, | 38 LPARAM lparam, |
| 38 DWORD time_ms); | 39 DWORD time_ms); |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 } // namespace content | 42 } // namespace content |
| 42 | 43 |
| 43 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_WIN_H_ | 44 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_WIN_H_ |
| OLD | NEW |