| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 enum Kind { | 205 enum Kind { |
| 206 Touch, | 206 Touch, |
| 207 Mouse, | 207 Mouse, |
| 208 Stylus, | 208 Stylus, |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 int pointer = 0; | 211 int pointer = 0; |
| 212 Kind kind = Touch; | 212 Kind kind = Touch; |
| 213 float x = 0; | 213 float x = 0; |
| 214 float y = 0; | 214 float y = 0; |
| 215 float dx = 0; | |
| 216 float dy = 0; | |
| 217 int buttons = 0; | 215 int buttons = 0; |
| 218 float pressure = 0; | 216 float pressure = 0; |
| 219 float pressureMin = 0; | 217 float pressureMin = 0; |
| 220 float pressureMax = 0; | 218 float pressureMax = 0; |
| 221 float distance = 0; | 219 float distance = 0; |
| 222 float distanceMin = 0; | 220 float distanceMin = 0; |
| 223 float distanceMax = 0; | 221 float distanceMax = 0; |
| 224 float radiusMajor = 0; | 222 float radiusMajor = 0; |
| 225 float radiusMinor = 0; | 223 float radiusMinor = 0; |
| 226 float radiusMin = 0; | 224 float radiusMin = 0; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 { | 329 { |
| 332 memset(&data, 0, sizeof(data)); | 330 memset(&data, 0, sizeof(data)); |
| 333 } | 331 } |
| 334 }; | 332 }; |
| 335 | 333 |
| 336 #pragma pack(pop) | 334 #pragma pack(pop) |
| 337 | 335 |
| 338 } // namespace blink | 336 } // namespace blink |
| 339 | 337 |
| 340 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBINPUTEVENT_H_ | 338 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBINPUTEVENT_H_ |
| OLD | NEW |