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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 bool hasPreciseScrollingDeltas; | 442 bool hasPreciseScrollingDeltas; |
443 | 443 |
444 // When false, this wheel event should not trigger scrolling (or any other d
efault | 444 // When false, this wheel event should not trigger scrolling (or any other d
efault |
445 // action) if the event goes unhandled by JavaScript. This is used, for exam
ple, | 445 // action) if the event goes unhandled by JavaScript. This is used, for exam
ple, |
446 // when the browser decides the default behavior for Ctrl+Wheel should be to
zoom | 446 // when the browser decides the default behavior for Ctrl+Wheel should be to
zoom |
447 // instead of scroll. | 447 // instead of scroll. |
448 bool canScroll; | 448 bool canScroll; |
449 | 449 |
450 RailsMode railsMode; | 450 RailsMode railsMode; |
451 | 451 |
| 452 // Whether the event is blocking, non-blocking, all event |
| 453 // listeners were passive or was forced to be non-blocking. |
| 454 DispatchType dispatchType; |
| 455 |
452 WebMouseWheelEvent() | 456 WebMouseWheelEvent() |
453 : WebMouseEvent(sizeof(WebMouseWheelEvent)) | 457 : WebMouseEvent(sizeof(WebMouseWheelEvent)) |
454 , deltaX(0.0f) | 458 , deltaX(0.0f) |
455 , deltaY(0.0f) | 459 , deltaY(0.0f) |
456 , wheelTicksX(0.0f) | 460 , wheelTicksX(0.0f) |
457 , wheelTicksY(0.0f) | 461 , wheelTicksY(0.0f) |
458 , accelerationRatioX(1.0f) | 462 , accelerationRatioX(1.0f) |
459 , accelerationRatioY(1.0f) | 463 , accelerationRatioY(1.0f) |
460 , resendingPluginId(-1) | 464 , resendingPluginId(-1) |
461 , phase(PhaseNone) | 465 , phase(PhaseNone) |
462 , momentumPhase(PhaseNone) | 466 , momentumPhase(PhaseNone) |
463 , canRubberbandLeft(true) | 467 , canRubberbandLeft(true) |
464 , canRubberbandRight(true) | 468 , canRubberbandRight(true) |
465 , scrollByPage(false) | 469 , scrollByPage(false) |
466 , hasPreciseScrollingDeltas(false) | 470 , hasPreciseScrollingDeltas(false) |
467 , canScroll(true) | 471 , canScroll(true) |
468 , railsMode(RailsModeFree) | 472 , railsMode(RailsModeFree) |
| 473 , dispatchType(Blocking) |
469 { | 474 { |
470 } | 475 } |
471 }; | 476 }; |
472 | 477 |
473 // WebGestureEvent -------------------------------------------------------------
- | 478 // WebGestureEvent -------------------------------------------------------------
- |
474 | 479 |
475 class WebGestureEvent : public WebInputEvent { | 480 class WebGestureEvent : public WebInputEvent { |
476 public: | 481 public: |
477 enum ScrollUnits { | 482 enum ScrollUnits { |
478 PrecisePixels = 0, // generated by high precision devices. | 483 PrecisePixels = 0, // generated by high precision devices. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 , uniqueTouchEventId(0) | 645 , uniqueTouchEventId(0) |
641 { | 646 { |
642 } | 647 } |
643 }; | 648 }; |
644 | 649 |
645 #pragma pack(pop) | 650 #pragma pack(pop) |
646 | 651 |
647 } // namespace blink | 652 } // namespace blink |
648 | 653 |
649 #endif | 654 #endif |
OLD | NEW |