Chromium Code Reviews| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 385 , movementY(0) | 385 , movementY(0) |
| 386 , clickCount(0) | 386 , clickCount(0) |
| 387 { | 387 { |
| 388 } | 388 } |
| 389 }; | 389 }; |
| 390 | 390 |
| 391 // WebMouseWheelEvent --------------------------------------------------------- | 391 // WebMouseWheelEvent --------------------------------------------------------- |
| 392 | 392 |
| 393 class WebMouseWheelEvent : public WebMouseEvent { | 393 class WebMouseWheelEvent : public WebMouseEvent { |
| 394 public: | 394 public: |
| 395 // Note: due to the use of static_casts to convert this type to | |
| 396 // PlatformWheelEventPhase, and WheelEventPhase to | |
| 397 // WebMouseWheelEvent::Phase, the definition that follows must be kept in | |
| 398 // sync with that used for the corresponding types. | |
|
esprehn
2016/08/09 19:14:12
We usually use static_asserts to enforce parallel
| |
| 395 enum Phase { | 399 enum Phase { |
| 396 PhaseNone = 0, | 400 PhaseNone = 0, |
| 397 PhaseBegan = 1 << 0, | 401 PhaseBegan = 1 << 0, |
| 398 PhaseStationary = 1 << 1, | 402 PhaseStationary = 1 << 1, |
| 399 PhaseChanged = 1 << 2, | 403 PhaseChanged = 1 << 2, |
| 400 PhaseEnded = 1 << 3, | 404 PhaseEnded = 1 << 3, |
| 401 PhaseCancelled = 1 << 4, | 405 PhaseCancelled = 1 << 4, |
| 402 PhaseMayBegin = 1 << 5, | 406 PhaseMayBegin = 1 << 5, |
| 403 }; | 407 }; |
| 404 | 408 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 656 , uniqueTouchEventId(0) | 660 , uniqueTouchEventId(0) |
| 657 { | 661 { |
| 658 } | 662 } |
| 659 }; | 663 }; |
| 660 | 664 |
| 661 #pragma pack(pop) | 665 #pragma pack(pop) |
| 662 | 666 |
| 663 } // namespace blink | 667 } // namespace blink |
| 664 | 668 |
| 665 #endif | 669 #endif |
| OLD | NEW |