| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBINPUTEVENT_H_ | 5 #ifndef WEBKIT_GLUE_WEBINPUTEVENT_H_ |
| 6 #define WEBKIT_GLUE_WEBINPUTEVENT_H_ | 6 #define WEBKIT_GLUE_WEBINPUTEVENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 #elif defined(OS_MACOSX) | 108 #elif defined(OS_MACOSX) |
| 109 WebMouseWheelEvent(NSEvent *event); | 109 WebMouseWheelEvent(NSEvent *event); |
| 110 #endif | 110 #endif |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 // WebKeyboardEvent ----------------------------------------------------------- | 113 // WebKeyboardEvent ----------------------------------------------------------- |
| 114 | 114 |
| 115 class WebKeyboardEvent : public WebInputEvent { | 115 class WebKeyboardEvent : public WebInputEvent { |
| 116 public: | 116 public: |
| 117 int key_code; | 117 int key_code; |
| 118 int key_data; | |
| 119 #if defined(OS_WIN) | 118 #if defined(OS_WIN) |
| 120 bool system_key; // Set if we receive a SYSKEYDOWN/WM_SYSKEYUP message. | 119 bool system_key; // Set if we receive a SYSKEYDOWN/WM_SYSKEYUP message. |
| 121 MSG actual_message; // Set to the current keyboard message. | 120 MSG actual_message; // Set to the current keyboard message. |
| 122 #endif | 121 #endif |
| 123 | 122 |
| 124 WebKeyboardEvent() | 123 WebKeyboardEvent() |
| 125 : key_code(0), | 124 : key_code(0) |
| 126 key_data(0) | |
| 127 #if defined(OS_WIN) | 125 #if defined(OS_WIN) |
| 128 , system_key(false) { | 126 , system_key(false) { |
| 129 memset(&actual_message, 0, sizeof(actual_message)); | 127 memset(&actual_message, 0, sizeof(actual_message)); |
| 130 } | 128 } |
| 131 #else | 129 #else |
| 132 {} | 130 {} |
| 133 #endif | 131 #endif |
| 134 | 132 |
| 135 #if defined(OS_WIN) | 133 #if defined(OS_WIN) |
| 136 WebKeyboardEvent(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); | 134 WebKeyboardEvent(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); |
| 137 #elif defined(OS_MACOSX) | 135 #elif defined(OS_MACOSX) |
| 138 WebKeyboardEvent(NSEvent *event); | 136 WebKeyboardEvent(NSEvent *event); |
| 139 #endif | 137 #endif |
| 140 }; | 138 }; |
| 141 | 139 |
| 142 | 140 |
| 143 #endif // WEBKIT_GLUE_WEBINPUTEVENT_H_ | 141 #endif // WEBKIT_GLUE_WEBINPUTEVENT_H_ |
| OLD | NEW |