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

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

Issue 1912153002: Articulate the cancel behavior in WebMouseWheelEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 bool hasPreciseScrollingDeltas; 441 bool hasPreciseScrollingDeltas;
442 442
443 // When false, this wheel event should not trigger scrolling (or any other d efault 443 // When false, this wheel event should not trigger scrolling (or any other d efault
444 // action) if the event goes unhandled by JavaScript. This is used, for exam ple, 444 // action) if the event goes unhandled by JavaScript. This is used, for exam ple,
445 // when the browser decides the default behavior for Ctrl+Wheel should be to zoom 445 // when the browser decides the default behavior for Ctrl+Wheel should be to zoom
446 // instead of scroll. 446 // instead of scroll.
447 bool canScroll; 447 bool canScroll;
448 448
449 RailsMode railsMode; 449 RailsMode railsMode;
450 450
451 // Whether the event is blocking, non-blocking, all event
452 // listeners were passive or was forced to be non-blocking.
453 DispatchType dispatchType;
454
451 WebMouseWheelEvent() 455 WebMouseWheelEvent()
452 : WebMouseEvent(sizeof(WebMouseWheelEvent)) 456 : WebMouseEvent(sizeof(WebMouseWheelEvent))
453 , deltaX(0.0f) 457 , deltaX(0.0f)
454 , deltaY(0.0f) 458 , deltaY(0.0f)
455 , wheelTicksX(0.0f) 459 , wheelTicksX(0.0f)
456 , wheelTicksY(0.0f) 460 , wheelTicksY(0.0f)
457 , accelerationRatioX(1.0f) 461 , accelerationRatioX(1.0f)
458 , accelerationRatioY(1.0f) 462 , accelerationRatioY(1.0f)
459 , resendingPluginId(-1) 463 , resendingPluginId(-1)
460 , phase(PhaseNone) 464 , phase(PhaseNone)
461 , momentumPhase(PhaseNone) 465 , momentumPhase(PhaseNone)
462 , canRubberbandLeft(true) 466 , canRubberbandLeft(true)
463 , canRubberbandRight(true) 467 , canRubberbandRight(true)
464 , scrollByPage(false) 468 , scrollByPage(false)
465 , hasPreciseScrollingDeltas(false) 469 , hasPreciseScrollingDeltas(false)
466 , canScroll(true) 470 , canScroll(true)
467 , railsMode(RailsModeFree) 471 , railsMode(RailsModeFree)
472 , dispatchType(Blocking)
468 { 473 {
469 } 474 }
470 }; 475 };
471 476
472 // WebGestureEvent ------------------------------------------------------------- - 477 // WebGestureEvent ------------------------------------------------------------- -
473 478
474 class WebGestureEvent : public WebInputEvent { 479 class WebGestureEvent : public WebInputEvent {
475 public: 480 public:
476 enum ScrollUnits { 481 enum ScrollUnits {
477 PrecisePixels = 0, // generated by high precision devices. 482 PrecisePixels = 0, // generated by high precision devices.
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 , uniqueTouchEventId(0) 644 , uniqueTouchEventId(0)
640 { 645 {
641 } 646 }
642 }; 647 };
643 648
644 #pragma pack(pop) 649 #pragma pack(pop)
645 650
646 } // namespace blink 651 } // namespace blink
647 652
648 #endif 653 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698