Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: sky/engine/public/platform/WebInputEvent.h

Issue 887793002: Implement PointerEvent#dx (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Another nit Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/frame/NewEventHandler.cpp ('k') | sky/examples/appish.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/NewEventHandler.cpp ('k') | sky/examples/appish.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698