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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
366 }; | 366 }; |
367 | 367 |
368 float deltaX; | 368 float deltaX; |
369 float deltaY; | 369 float deltaY; |
370 float wheelTicksX; | 370 float wheelTicksX; |
371 float wheelTicksY; | 371 float wheelTicksY; |
372 | 372 |
373 float accelerationRatioX; | 373 float accelerationRatioX; |
374 float accelerationRatioY; | 374 float accelerationRatioY; |
375 | 375 |
376 int resendingPluginId; | |
377 | |
376 Phase phase; | 378 Phase phase; |
377 Phase momentumPhase; | 379 Phase momentumPhase; |
378 | 380 |
379 // Rubberbanding is an OSX visual effect. When a user scrolls the content | 381 // Rubberbanding is an OSX visual effect. When a user scrolls the content |
380 // area with a track pad, and the content area is already at its limit in | 382 // area with a track pad, and the content area is already at its limit in |
381 // the direction being scrolled, the entire content area is allowed to | 383 // the direction being scrolled, the entire content area is allowed to |
382 // scroll slightly off screen, revealing a grey background. When the user | 384 // scroll slightly off screen, revealing a grey background. When the user |
383 // lets go, the content area snaps back into place. Blink is responsible | 385 // lets go, the content area snaps back into place. Blink is responsible |
384 // for this rubberbanding effect, but the embedder may wish to disable | 386 // for this rubberbanding effect, but the embedder may wish to disable |
385 // rubber banding in the left or right direction, if the scroll should have | 387 // rubber banding in the left or right direction, if the scroll should have |
(...skipping 19 matching lines...) Expand all Loading... | |
405 RailsMode railsMode; | 407 RailsMode railsMode; |
406 | 408 |
407 WebMouseWheelEvent() | 409 WebMouseWheelEvent() |
408 : WebMouseEvent(sizeof(WebMouseWheelEvent)) | 410 : WebMouseEvent(sizeof(WebMouseWheelEvent)) |
409 , deltaX(0.0f) | 411 , deltaX(0.0f) |
410 , deltaY(0.0f) | 412 , deltaY(0.0f) |
411 , wheelTicksX(0.0f) | 413 , wheelTicksX(0.0f) |
412 , wheelTicksY(0.0f) | 414 , wheelTicksY(0.0f) |
413 , accelerationRatioX(1.0f) | 415 , accelerationRatioX(1.0f) |
414 , accelerationRatioY(1.0f) | 416 , accelerationRatioY(1.0f) |
417 , resendingPluginId(0) | |
tdresser
2015/09/15 13:13:08
-1
wjmaclean
2015/09/15 15:02:48
Done.
| |
415 , phase(PhaseNone) | 418 , phase(PhaseNone) |
416 , momentumPhase(PhaseNone) | 419 , momentumPhase(PhaseNone) |
417 , canRubberbandLeft(true) | 420 , canRubberbandLeft(true) |
418 , canRubberbandRight(true) | 421 , canRubberbandRight(true) |
419 , scrollByPage(false) | 422 , scrollByPage(false) |
420 , hasPreciseScrollingDeltas(false) | 423 , hasPreciseScrollingDeltas(false) |
421 , canScroll(true) | 424 , canScroll(true) |
422 , railsMode(RailsModeFree) | 425 , railsMode(RailsModeFree) |
423 { | 426 { |
424 } | 427 } |
425 }; | 428 }; |
426 | 429 |
427 // WebGestureEvent ------------------------------------------------------------- - | 430 // WebGestureEvent ------------------------------------------------------------- - |
428 | 431 |
429 class WebGestureEvent : public WebInputEvent { | 432 class WebGestureEvent : public WebInputEvent { |
430 public: | 433 public: |
431 int x; | 434 int x; |
432 int y; | 435 int y; |
433 int globalX; | 436 int globalX; |
434 int globalY; | 437 int globalY; |
435 WebGestureDevice sourceDevice; | 438 WebGestureDevice sourceDevice; |
439 int resendingPluginId; | |
436 | 440 |
437 union { | 441 union { |
438 // Tap information must be set for GestureTap, GestureTapUnconfirmed, | 442 // Tap information must be set for GestureTap, GestureTapUnconfirmed, |
439 // and GestureDoubleTap events. | 443 // and GestureDoubleTap events. |
440 struct { | 444 struct { |
441 int tapCount; | 445 int tapCount; |
442 float width; | 446 float width; |
443 float height; | 447 float height; |
444 } tap; | 448 } tap; |
445 | 449 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
507 float scale; | 511 float scale; |
508 } pinchUpdate; | 512 } pinchUpdate; |
509 } data; | 513 } data; |
510 | 514 |
511 WebGestureEvent() | 515 WebGestureEvent() |
512 : WebInputEvent(sizeof(WebGestureEvent)) | 516 : WebInputEvent(sizeof(WebGestureEvent)) |
513 , x(0) | 517 , x(0) |
514 , y(0) | 518 , y(0) |
515 , globalX(0) | 519 , globalX(0) |
516 , globalY(0) | 520 , globalY(0) |
521 , resendingPluginId(0) | |
tdresser
2015/09/15 13:13:08
-1
wjmaclean
2015/09/15 15:02:48
Done.
| |
517 { | 522 { |
518 memset(&data, 0, sizeof(data)); | 523 memset(&data, 0, sizeof(data)); |
519 } | 524 } |
520 }; | 525 }; |
521 | 526 |
522 // WebTouchEvent -------------------------------------------------------------- | 527 // WebTouchEvent -------------------------------------------------------------- |
523 | 528 |
524 // TODO(e_hakkinen): Replace with WebPointerEvent. crbug.com/508283 | 529 // TODO(e_hakkinen): Replace with WebPointerEvent. crbug.com/508283 |
525 class WebTouchEvent : public WebInputEvent { | 530 class WebTouchEvent : public WebInputEvent { |
526 public: | 531 public: |
(...skipping 27 matching lines...) Expand all Loading... | |
554 , uniqueTouchEventId(0) | 559 , uniqueTouchEventId(0) |
555 { | 560 { |
556 } | 561 } |
557 }; | 562 }; |
558 | 563 |
559 #pragma pack(pop) | 564 #pragma pack(pop) |
560 | 565 |
561 } // namespace blink | 566 } // namespace blink |
562 | 567 |
563 #endif | 568 #endif |
OLD | NEW |