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