| 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 WebMouseWheelEventBuilder::WebMouseWheelEventBuilder(const Widget* widget, const
LayoutItem layoutItem, const WheelEvent& event) | 629 WebMouseWheelEventBuilder::WebMouseWheelEventBuilder(const Widget* widget, const
LayoutItem layoutItem, const WheelEvent& event) |
| 630 { | 630 { |
| 631 if (event.type() != EventTypeNames::wheel && event.type() != EventTypeNames:
:mousewheel) | 631 if (event.type() != EventTypeNames::wheel && event.type() != EventTypeNames:
:mousewheel) |
| 632 return; | 632 return; |
| 633 type = WebInputEvent::MouseWheel; | 633 type = WebInputEvent::MouseWheel; |
| 634 updateWebMouseEventFromCoreMouseEvent(event, widget, layoutItem, *this); | 634 updateWebMouseEventFromCoreMouseEvent(event, widget, layoutItem, *this); |
| 635 deltaX = -event.deltaX(); | 635 deltaX = -event.deltaX(); |
| 636 deltaY = -event.deltaY(); | 636 deltaY = -event.deltaY(); |
| 637 wheelTicksX = event.ticksX(); | 637 wheelTicksX = event.ticksX(); |
| 638 wheelTicksY = event.ticksY(); | 638 wheelTicksY = event.ticksY(); |
| 639 scrollByPage = event.deltaMode() == WheelEvent::DOM_DELTA_PAGE; | 639 scrollByPage = event.deltaMode() == WheelEvent::kDomDeltaPage; |
| 640 resendingPluginId = event.resendingPluginId(); | 640 resendingPluginId = event.resendingPluginId(); |
| 641 railsMode = static_cast<RailsMode>(event.getRailsMode()); | 641 railsMode = static_cast<RailsMode>(event.getRailsMode()); |
| 642 hasPreciseScrollingDeltas = event.hasPreciseScrollingDeltas(); | 642 hasPreciseScrollingDeltas = event.hasPreciseScrollingDeltas(); |
| 643 dispatchType = event.cancelable() ? WebInputEvent::Blocking : WebInputEvent:
:EventNonBlocking; | 643 dispatchType = event.cancelable() ? WebInputEvent::Blocking : WebInputEvent:
:EventNonBlocking; |
| 644 } | 644 } |
| 645 | 645 |
| 646 WebKeyboardEventBuilder::WebKeyboardEventBuilder(const KeyboardEvent& event) | 646 WebKeyboardEventBuilder::WebKeyboardEventBuilder(const KeyboardEvent& event) |
| 647 { | 647 { |
| 648 if (event.type() == EventTypeNames::keydown) | 648 if (event.type() == EventTypeNames::keydown) |
| 649 type = KeyDown; | 649 type = KeyDown; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 break; | 816 break; |
| 817 case GestureSourceTouchscreen: | 817 case GestureSourceTouchscreen: |
| 818 sourceDevice = WebGestureDeviceTouchscreen; | 818 sourceDevice = WebGestureDeviceTouchscreen; |
| 819 break; | 819 break; |
| 820 case GestureSourceUninitialized: | 820 case GestureSourceUninitialized: |
| 821 NOTREACHED(); | 821 NOTREACHED(); |
| 822 } | 822 } |
| 823 } | 823 } |
| 824 | 824 |
| 825 } // namespace blink | 825 } // namespace blink |
| OLD | NEW |