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

Side by Side Diff: third_party/WebKit/public/platform/WebInputEvent.h

Issue 2586133003: Remove PlatformWheelEvent and use WebMouseWheelEvent instead (Closed)
Patch Set: Adjust function name Created 3 years, 11 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 int movementY; 422 int movementY;
423 int clickCount; 423 int clickCount;
424 424
425 WebMouseEvent(Type type, int modifiers, double timeStampSeconds) 425 WebMouseEvent(Type type, int modifiers, double timeStampSeconds)
426 : WebInputEvent(sizeof(WebMouseEvent), type, modifiers, timeStampSeconds), 426 : WebInputEvent(sizeof(WebMouseEvent), type, modifiers, timeStampSeconds),
427 WebPointerProperties() {} 427 WebPointerProperties() {}
428 428
429 WebMouseEvent() 429 WebMouseEvent()
430 : WebInputEvent(sizeof(WebMouseEvent)), WebPointerProperties() {} 430 : WebInputEvent(sizeof(WebMouseEvent)), WebPointerProperties() {}
431 431
432 #if INSIDE_BLINK
433 BLINK_PLATFORM_EXPORT WebFloatPoint movementInRootFrame() const;
434 BLINK_PLATFORM_EXPORT WebFloatPoint positionInRootFrame() const;
435 #endif
436
432 protected: 437 protected:
433 explicit WebMouseEvent(unsigned sizeParam) 438 explicit WebMouseEvent(unsigned sizeParam)
434 : WebInputEvent(sizeParam), WebPointerProperties() {} 439 : WebInputEvent(sizeParam), WebPointerProperties() {}
435 440
436 WebMouseEvent(unsigned sizeParam, 441 WebMouseEvent(unsigned sizeParam,
437 Type type, 442 Type type,
438 int modifiers, 443 int modifiers,
439 double timeStampSeconds) 444 double timeStampSeconds)
440 : WebInputEvent(sizeParam, type, modifiers, timeStampSeconds), 445 : WebInputEvent(sizeParam, type, modifiers, timeStampSeconds),
441 WebPointerProperties() {} 446 WebPointerProperties() {}
447 void flattenTransformSelf();
442 }; 448 };
443 449
444 // WebTouchEvent -------------------------------------------------------------- 450 // WebTouchEvent --------------------------------------------------------------
445 451
446 // TODO(e_hakkinen): Replace with WebPointerEvent. crbug.com/508283 452 // TODO(e_hakkinen): Replace with WebPointerEvent. crbug.com/508283
447 class WebTouchEvent : public WebInputEvent { 453 class WebTouchEvent : public WebInputEvent {
448 public: 454 public:
449 // Maximum number of simultaneous touches supported on 455 // Maximum number of simultaneous touches supported on
450 // Ash/Aura. 456 // Ash/Aura.
451 enum { kTouchesLengthCap = 16 }; 457 enum { kTouchesLengthCap = 16 };
(...skipping 25 matching lines...) Expand all
477 WebTouchEvent(Type type, int modifiers, double timeStampSeconds) 483 WebTouchEvent(Type type, int modifiers, double timeStampSeconds)
478 : WebInputEvent(sizeof(WebTouchEvent), type, modifiers, timeStampSeconds), 484 : WebInputEvent(sizeof(WebTouchEvent), type, modifiers, timeStampSeconds),
479 dispatchType(Blocking) {} 485 dispatchType(Blocking) {}
480 }; 486 };
481 487
482 #pragma pack(pop) 488 #pragma pack(pop)
483 489
484 } // namespace blink 490 } // namespace blink
485 491
486 #endif 492 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698