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

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

Issue 2052663004: Remove canScroll from WebMouseWheelEvent as it is unused now. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really fix android unit test Created 4 years, 6 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // These flags prevent rubber banding from starting in a given direction, 433 // These flags prevent rubber banding from starting in a given direction,
434 // but have no effect on an ongoing rubber banding. A rubber banding that 434 // but have no effect on an ongoing rubber banding. A rubber banding that
435 // started in the vertical direction is allowed to continue in the right 435 // started in the vertical direction is allowed to continue in the right
436 // direction, even if canRubberbandRight is 0. 436 // direction, even if canRubberbandRight is 0.
437 bool canRubberbandLeft; 437 bool canRubberbandLeft;
438 bool canRubberbandRight; 438 bool canRubberbandRight;
439 439
440 bool scrollByPage; 440 bool scrollByPage;
441 bool hasPreciseScrollingDeltas; 441 bool hasPreciseScrollingDeltas;
442 442
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,
445 // when the browser decides the default behavior for Ctrl+Wheel should be to zoom
446 // instead of scroll.
447 bool canScroll;
448
449 RailsMode railsMode; 443 RailsMode railsMode;
450 444
451 // Whether the event is blocking, non-blocking, all event 445 // Whether the event is blocking, non-blocking, all event
452 // listeners were passive or was forced to be non-blocking. 446 // listeners were passive or was forced to be non-blocking.
453 DispatchType dispatchType; 447 DispatchType dispatchType;
454 448
455 WebMouseWheelEvent() 449 WebMouseWheelEvent()
456 : WebMouseEvent(sizeof(WebMouseWheelEvent)) 450 : WebMouseEvent(sizeof(WebMouseWheelEvent))
457 , deltaX(0.0f) 451 , deltaX(0.0f)
458 , deltaY(0.0f) 452 , deltaY(0.0f)
459 , wheelTicksX(0.0f) 453 , wheelTicksX(0.0f)
460 , wheelTicksY(0.0f) 454 , wheelTicksY(0.0f)
461 , accelerationRatioX(1.0f) 455 , accelerationRatioX(1.0f)
462 , accelerationRatioY(1.0f) 456 , accelerationRatioY(1.0f)
463 , resendingPluginId(-1) 457 , resendingPluginId(-1)
464 , phase(PhaseNone) 458 , phase(PhaseNone)
465 , momentumPhase(PhaseNone) 459 , momentumPhase(PhaseNone)
466 , canRubberbandLeft(true) 460 , canRubberbandLeft(true)
467 , canRubberbandRight(true) 461 , canRubberbandRight(true)
468 , scrollByPage(false) 462 , scrollByPage(false)
469 , hasPreciseScrollingDeltas(false) 463 , hasPreciseScrollingDeltas(false)
470 , canScroll(true)
471 , railsMode(RailsModeFree) 464 , railsMode(RailsModeFree)
472 , dispatchType(Blocking) 465 , dispatchType(Blocking)
473 { 466 {
474 } 467 }
475 }; 468 };
476 469
477 // WebGestureEvent ------------------------------------------------------------- - 470 // WebGestureEvent ------------------------------------------------------------- -
478 471
479 class WebGestureEvent : public WebInputEvent { 472 class WebGestureEvent : public WebInputEvent {
480 public: 473 public:
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 , uniqueTouchEventId(0) 646 , uniqueTouchEventId(0)
654 { 647 {
655 } 648 }
656 }; 649 };
657 650
658 #pragma pack(pop) 651 #pragma pack(pop)
659 652
660 } // namespace blink 653 } // namespace blink
661 654
662 #endif 655 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698