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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 m_type = PlatformEvent::GestureFlingStart; | 225 m_type = PlatformEvent::GestureFlingStart; |
226 break; | 226 break; |
227 case WebInputEvent::GestureScrollUpdate: | 227 case WebInputEvent::GestureScrollUpdate: |
228 m_type = PlatformEvent::GestureScrollUpdate; | 228 m_type = PlatformEvent::GestureScrollUpdate; |
229 m_data.m_scroll.m_deltaX = scaleDeltaToWindow(widget, e.data.scrollUpdat
e.deltaX); | 229 m_data.m_scroll.m_deltaX = scaleDeltaToWindow(widget, e.data.scrollUpdat
e.deltaX); |
230 m_data.m_scroll.m_deltaY = scaleDeltaToWindow(widget, e.data.scrollUpdat
e.deltaY); | 230 m_data.m_scroll.m_deltaY = scaleDeltaToWindow(widget, e.data.scrollUpdat
e.deltaY); |
231 m_data.m_scroll.m_velocityX = e.data.scrollUpdate.velocityX; | 231 m_data.m_scroll.m_velocityX = e.data.scrollUpdate.velocityX; |
232 m_data.m_scroll.m_velocityY = e.data.scrollUpdate.velocityY; | 232 m_data.m_scroll.m_velocityY = e.data.scrollUpdate.velocityY; |
233 m_data.m_scroll.m_preventPropagation = e.data.scrollUpdate.preventPropag
ation; | 233 m_data.m_scroll.m_preventPropagation = e.data.scrollUpdate.preventPropag
ation; |
234 m_data.m_scroll.m_inertial = e.data.scrollUpdate.inertial; | 234 m_data.m_scroll.m_inertial = e.data.scrollUpdate.inertial; |
| 235 m_data.m_scroll.m_railsMode = static_cast<PlatformEvent::RailsMode>(e.da
ta.scrollUpdate.railsMode); |
235 break; | 236 break; |
236 case WebInputEvent::GestureTap: | 237 case WebInputEvent::GestureTap: |
237 m_type = PlatformEvent::GestureTap; | 238 m_type = PlatformEvent::GestureTap; |
238 m_area = expandedIntSize(scaleSizeToWindow(widget, FloatSize(e.data.tap.
width, e.data.tap.height))); | 239 m_area = expandedIntSize(scaleSizeToWindow(widget, FloatSize(e.data.tap.
width, e.data.tap.height))); |
239 m_data.m_tap.m_tapCount = e.data.tap.tapCount; | 240 m_data.m_tap.m_tapCount = e.data.tap.tapCount; |
240 break; | 241 break; |
241 case WebInputEvent::GestureTapUnconfirmed: | 242 case WebInputEvent::GestureTapUnconfirmed: |
242 m_type = PlatformEvent::GestureTapUnconfirmed; | 243 m_type = PlatformEvent::GestureTapUnconfirmed; |
243 m_area = expandedIntSize(scaleSizeToWindow(widget, FloatSize(e.data.tap.
width, e.data.tap.height))); | 244 m_area = expandedIntSize(scaleSizeToWindow(widget, FloatSize(e.data.tap.
width, e.data.tap.height))); |
244 break; | 245 break; |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 modifiers = getWebInputModifiers(event); | 816 modifiers = getWebInputModifiers(event); |
816 | 817 |
817 globalX = event.screenX(); | 818 globalX = event.screenX(); |
818 globalY = event.screenY(); | 819 globalY = event.screenY(); |
819 IntPoint localPoint = convertAbsoluteLocationForLayoutObject(event.absoluteL
ocation(), *layoutObject); | 820 IntPoint localPoint = convertAbsoluteLocationForLayoutObject(event.absoluteL
ocation(), *layoutObject); |
820 x = localPoint.x(); | 821 x = localPoint.x(); |
821 y = localPoint.y(); | 822 y = localPoint.y(); |
822 } | 823 } |
823 | 824 |
824 } // namespace blink | 825 } // namespace blink |
OLD | NEW |