| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/common/native_web_keyboard_event.h" | 5 #include "chrome/common/native_web_keyboard_event.h" |
| 6 | 6 |
| 7 #include "webkit/api/public/win/WebInputEventFactory.h" | 7 #include "third_party/WebKit/WebKit/chromium/public/win/WebInputEventFactory.h" |
| 8 | 8 |
| 9 using WebKit::WebInputEventFactory; | 9 using WebKit::WebInputEventFactory; |
| 10 using WebKit::WebKeyboardEvent; | 10 using WebKit::WebKeyboardEvent; |
| 11 | 11 |
| 12 NativeWebKeyboardEvent::NativeWebKeyboardEvent() { | 12 NativeWebKeyboardEvent::NativeWebKeyboardEvent() { |
| 13 memset(&os_event, 0, sizeof(os_event)); | 13 memset(&os_event, 0, sizeof(os_event)); |
| 14 } | 14 } |
| 15 | 15 |
| 16 NativeWebKeyboardEvent::NativeWebKeyboardEvent( | 16 NativeWebKeyboardEvent::NativeWebKeyboardEvent( |
| 17 HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) | 17 HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) |
| (...skipping 21 matching lines...) Expand all Loading... |
| 39 os_event.hwnd = other.os_event.hwnd; | 39 os_event.hwnd = other.os_event.hwnd; |
| 40 os_event.message = other.os_event.message; | 40 os_event.message = other.os_event.message; |
| 41 os_event.wParam = other.os_event.wParam; | 41 os_event.wParam = other.os_event.wParam; |
| 42 os_event.lParam = other.os_event.lParam; | 42 os_event.lParam = other.os_event.lParam; |
| 43 return *this; | 43 return *this; |
| 44 } | 44 } |
| 45 | 45 |
| 46 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { | 46 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { |
| 47 // Noop under windows | 47 // Noop under windows |
| 48 } | 48 } |
| OLD | NEW |