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

Side by Side Diff: Source/WebKit/chromium/public/WebInputEvent.h

Issue 12319074: Merge 142571 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 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
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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 400
401 int x; 401 int x;
402 int y; 402 int y;
403 int globalX; 403 int globalX;
404 int globalY; 404 int globalY;
405 SourceDevice sourceDevice; 405 SourceDevice sourceDevice;
406 406
407 union { 407 union {
408 struct { 408 struct {
409 int tapCount; 409 int tapCount;
410 int width; 410 float width;
411 int height; 411 float height;
412 } tap; 412 } tap;
413 413
414 struct { 414 struct {
415 int width; 415 float width;
416 int height; 416 float height;
417 } tapDown; 417 } tapDown;
418 418
419 struct { 419 struct {
420 int width; 420 float width;
421 int height; 421 float height;
422 } longPress; 422 } longPress;
423 423
424 struct { 424 struct {
425 int firstFingerWidth; 425 float firstFingerWidth;
426 int firstFingerHeight; 426 float firstFingerHeight;
427 } twoFingerTap; 427 } twoFingerTap;
428 428
429 struct { 429 struct {
430 float deltaX; 430 float deltaX;
431 float deltaY; 431 float deltaY;
432 float velocityX; 432 float velocityX;
433 float velocityY; 433 float velocityY;
434 } scrollUpdate; 434 } scrollUpdate;
435 435
436 struct { 436 struct {
437 float velocityX; 437 float velocityX;
438 float velocityY; 438 float velocityY;
439 // FIXME: Remove this when Chromium uses the top-level field. 439 // FIXME: Remove this when Chromium uses the top-level field.
440 SourceDevice sourceDevice; 440 SourceDevice sourceDevice;
441 } flingStart; 441 } flingStart;
442 442
443 struct { 443 struct {
444 float scale; 444 float scale;
445 } pinchUpdate; 445 } pinchUpdate;
446 } data; 446 } data;
447 447
448 WebGestureEvent(unsigned sizeParam = sizeof(WebGestureEvent)) 448 WebGestureEvent(unsigned sizeParam = sizeof(WebGestureEvent))
449 : WebInputEvent(sizeParam) 449 : WebInputEvent(sizeParam)
450 , x(0) 450 , x(0)
451 , y(0) 451 , y(0)
452 , globalX(0) 452 , globalX(0)
453 , globalY(0) 453 , globalY(0)
454 { 454 {
455 memset(&data, 0, sizeof(data)); 455 memset(&data, 0, sizeof(data));
456 } 456 }
457 }; 457 };
458 458
459 // WebTouchEvent -------------------------------------------------------------- 459 // WebTouchEvent --------------------------------------------------------------
460 460
461 class WebTouchEvent : public WebInputEvent { 461 class WebTouchEvent : public WebInputEvent {
462 public: 462 public:
463 // Maximum number of simultaneous touches supported on 463 // Maximum number of simultaneous touches supported on
464 // Ash/Aura. 464 // Ash/Aura.
465 enum { touchesLengthCap = 12 }; 465 enum { touchesLengthCap = 12 };
(...skipping 17 matching lines...) Expand all
483 , targetTouchesLength(0) 483 , targetTouchesLength(0)
484 { 484 {
485 } 485 }
486 }; 486 };
487 487
488 #pragma pack(pop) 488 #pragma pack(pop)
489 489
490 } // namespace WebKit 490 } // namespace WebKit
491 491
492 #endif 492 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/ChangeLog ('k') | Source/WebKit/chromium/src/WebInputEventConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698