| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 // These flags prevent rubber banding from starting in a given direction, | 367 // These flags prevent rubber banding from starting in a given direction, |
| 368 // but have no effect on an ongoing rubber banding. A rubber banding that | 368 // but have no effect on an ongoing rubber banding. A rubber banding that |
| 369 // started in the vertical direction is allowed to continue in the right | 369 // started in the vertical direction is allowed to continue in the right |
| 370 // direction, even if canRubberbandRight is 0. | 370 // direction, even if canRubberbandRight is 0. |
| 371 bool canRubberbandLeft; | 371 bool canRubberbandLeft; |
| 372 bool canRubberbandRight; | 372 bool canRubberbandRight; |
| 373 | 373 |
| 374 bool scrollByPage; | 374 bool scrollByPage; |
| 375 bool hasPreciseScrollingDeltas; | 375 bool hasPreciseScrollingDeltas; |
| 376 | 376 |
| 377 // When false, this wheel event should not trigger scrolling (or any other d
efault |
| 378 // action) if the event goes unhandled by JavaScript. This is used, for exam
ple, |
| 379 // when the browser decides the default behavior for Ctrl+Wheel should be to
zoom |
| 380 // instead of scroll. |
| 381 bool canScroll; |
| 382 |
| 377 WebMouseWheelEvent() | 383 WebMouseWheelEvent() |
| 378 : WebMouseEvent(sizeof(WebMouseWheelEvent)) | 384 : WebMouseEvent(sizeof(WebMouseWheelEvent)) |
| 379 , deltaX(0.0f) | 385 , deltaX(0.0f) |
| 380 , deltaY(0.0f) | 386 , deltaY(0.0f) |
| 381 , wheelTicksX(0.0f) | 387 , wheelTicksX(0.0f) |
| 382 , wheelTicksY(0.0f) | 388 , wheelTicksY(0.0f) |
| 383 , accelerationRatioX(1.0f) | 389 , accelerationRatioX(1.0f) |
| 384 , accelerationRatioY(1.0f) | 390 , accelerationRatioY(1.0f) |
| 385 , phase(PhaseNone) | 391 , phase(PhaseNone) |
| 386 , momentumPhase(PhaseNone) | 392 , momentumPhase(PhaseNone) |
| 387 , canRubberbandLeft(true) | 393 , canRubberbandLeft(true) |
| 388 , canRubberbandRight(true) | 394 , canRubberbandRight(true) |
| 389 , scrollByPage(false) | 395 , scrollByPage(false) |
| 390 , hasPreciseScrollingDeltas(false) | 396 , hasPreciseScrollingDeltas(false) |
| 397 , canScroll(true) |
| 391 { | 398 { |
| 392 } | 399 } |
| 393 }; | 400 }; |
| 394 | 401 |
| 395 // WebGestureEvent -------------------------------------------------------------
- | 402 // WebGestureEvent -------------------------------------------------------------
- |
| 396 | 403 |
| 397 class WebGestureEvent : public WebInputEvent { | 404 class WebGestureEvent : public WebInputEvent { |
| 398 public: | 405 public: |
| 399 int x; | 406 int x; |
| 400 int y; | 407 int y; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 , causesScrollingIfUncanceled(false) | 510 , causesScrollingIfUncanceled(false) |
| 504 { | 511 { |
| 505 } | 512 } |
| 506 }; | 513 }; |
| 507 | 514 |
| 508 #pragma pack(pop) | 515 #pragma pack(pop) |
| 509 | 516 |
| 510 } // namespace blink | 517 } // namespace blink |
| 511 | 518 |
| 512 #endif | 519 #endif |
| OLD | NEW |