| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 float offsetX = 0; | 261 float offsetX = 0; |
| 262 float offsetY = 0; | 262 float offsetY = 0; |
| 263 | 263 |
| 264 WebWheelEvent() : WebInputEvent(sizeof(WebWheelEvent)) {} | 264 WebWheelEvent() : WebInputEvent(sizeof(WebWheelEvent)) {} |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 // WebGestureEvent ------------------------------------------------------------ | 267 // WebGestureEvent ------------------------------------------------------------ |
| 268 | 268 |
| 269 class WebGestureEvent : public WebInputEvent { | 269 class WebGestureEvent : public WebInputEvent { |
| 270 public: | 270 public: |
| 271 int primaryPointer = 0; |
| 271 float x = 0; | 272 float x = 0; |
| 272 float y = 0; | 273 float y = 0; |
| 273 | 274 |
| 274 union { | 275 union { |
| 275 // Tap information must be set for GestureTap, GestureTapUnconfirmed, | 276 // Tap information must be set for GestureTap, GestureTapUnconfirmed, |
| 276 // and GestureDoubleTap events. | 277 // and GestureDoubleTap events. |
| 277 struct { | 278 struct { |
| 278 int tapCount; | 279 int tapCount; |
| 279 float width; | 280 float width; |
| 280 float height; | 281 float height; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 { | 330 { |
| 330 memset(&data, 0, sizeof(data)); | 331 memset(&data, 0, sizeof(data)); |
| 331 } | 332 } |
| 332 }; | 333 }; |
| 333 | 334 |
| 334 #pragma pack(pop) | 335 #pragma pack(pop) |
| 335 | 336 |
| 336 } // namespace blink | 337 } // namespace blink |
| 337 | 338 |
| 338 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBINPUTEVENT_H_ | 339 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBINPUTEVENT_H_ |
| OLD | NEW |