| 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 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 #elif defined(OS_LINUX) | 124 #elif defined(OS_LINUX) |
| 125 explicit WebMouseEvent(const GdkEventButton* event); | 125 explicit WebMouseEvent(const GdkEventButton* event); |
| 126 explicit WebMouseEvent(const GdkEventMotion* event); | 126 explicit WebMouseEvent(const GdkEventMotion* event); |
| 127 #endif | 127 #endif |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 // WebMouseWheelEvent --------------------------------------------------------- | 130 // WebMouseWheelEvent --------------------------------------------------------- |
| 131 | 131 |
| 132 class WebMouseWheelEvent : public WebMouseEvent { | 132 class WebMouseWheelEvent : public WebMouseEvent { |
| 133 public: | 133 public: |
| 134 int delta_x; | 134 float delta_x; |
| 135 int delta_y; | 135 float delta_y; |
| 136 bool scroll_by_page; |
| 136 | 137 |
| 137 WebMouseWheelEvent() {} | 138 WebMouseWheelEvent() {} |
| 138 #if defined(OS_WIN) | 139 #if defined(OS_WIN) |
| 139 WebMouseWheelEvent(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); | 140 WebMouseWheelEvent(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); |
| 140 #elif defined(OS_MACOSX) | 141 #elif defined(OS_MACOSX) |
| 141 WebMouseWheelEvent(NSEvent *event, NSView* view); | 142 WebMouseWheelEvent(NSEvent *event, NSView* view); |
| 142 #elif defined(OS_LINUX) | 143 #elif defined(OS_LINUX) |
| 143 explicit WebMouseWheelEvent(const GdkEventScroll* event); | 144 explicit WebMouseWheelEvent(const GdkEventScroll* event); |
| 144 #endif | 145 #endif |
| 145 }; | 146 }; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 explicit WebKeyboardEvent(HWND hwnd, UINT message, WPARAM wparam, | 205 explicit WebKeyboardEvent(HWND hwnd, UINT message, WPARAM wparam, |
| 205 LPARAM lparam); | 206 LPARAM lparam); |
| 206 #elif defined(OS_MACOSX) | 207 #elif defined(OS_MACOSX) |
| 207 explicit WebKeyboardEvent(NSEvent *event); | 208 explicit WebKeyboardEvent(NSEvent *event); |
| 208 #elif defined(OS_LINUX) | 209 #elif defined(OS_LINUX) |
| 209 explicit WebKeyboardEvent(const GdkEventKey* event); | 210 explicit WebKeyboardEvent(const GdkEventKey* event); |
| 210 #endif | 211 #endif |
| 211 }; | 212 }; |
| 212 | 213 |
| 213 #endif // WEBKIT_GLUE_WEBINPUTEVENT_H_ | 214 #endif // WEBKIT_GLUE_WEBINPUTEVENT_H_ |
| OLD | NEW |