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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 m_type = PlatformEvent::GestureFlingStart; | 178 m_type = PlatformEvent::GestureFlingStart; |
179 break; | 179 break; |
180 case WebInputEvent::GestureScrollUpdate: | 180 case WebInputEvent::GestureScrollUpdate: |
181 m_type = PlatformEvent::GestureScrollUpdate; | 181 m_type = PlatformEvent::GestureScrollUpdate; |
182 m_data.m_scrollUpdate.m_deltaX = scaleDeltaToWindow(widget, e.data.scrol
lUpdate.deltaX); | 182 m_data.m_scrollUpdate.m_deltaX = scaleDeltaToWindow(widget, e.data.scrol
lUpdate.deltaX); |
183 m_data.m_scrollUpdate.m_deltaY = scaleDeltaToWindow(widget, e.data.scrol
lUpdate.deltaY); | 183 m_data.m_scrollUpdate.m_deltaY = scaleDeltaToWindow(widget, e.data.scrol
lUpdate.deltaY); |
184 m_data.m_scrollUpdate.m_velocityX = e.data.scrollUpdate.velocityX; | 184 m_data.m_scrollUpdate.m_velocityX = e.data.scrollUpdate.velocityX; |
185 m_data.m_scrollUpdate.m_velocityY = e.data.scrollUpdate.velocityY; | 185 m_data.m_scrollUpdate.m_velocityY = e.data.scrollUpdate.velocityY; |
186 m_data.m_scrollUpdate.m_preventPropagation = e.data.scrollUpdate.prevent
Propagation; | 186 m_data.m_scrollUpdate.m_preventPropagation = e.data.scrollUpdate.prevent
Propagation; |
187 break; | 187 break; |
188 case WebInputEvent::GestureScrollUpdateWithoutPropagation: | |
189 m_type = PlatformEvent::GestureScrollUpdateWithoutPropagation; | |
190 m_data.m_scrollUpdate.m_deltaX = scaleDeltaToWindow(widget, e.data.scrol
lUpdate.deltaX); | |
191 m_data.m_scrollUpdate.m_deltaY = scaleDeltaToWindow(widget, e.data.scrol
lUpdate.deltaY); | |
192 m_data.m_scrollUpdate.m_velocityX = e.data.scrollUpdate.velocityX; | |
193 m_data.m_scrollUpdate.m_velocityY = e.data.scrollUpdate.velocityY; | |
194 m_data.m_scrollUpdate.m_preventPropagation = e.data.scrollUpdate.prevent
Propagation; | |
195 break; | |
196 case WebInputEvent::GestureTap: | 188 case WebInputEvent::GestureTap: |
197 m_type = PlatformEvent::GestureTap; | 189 m_type = PlatformEvent::GestureTap; |
198 m_area = expandedIntSize(scaleSizeToWindow(widget, FloatSize(e.data.tap.
width, e.data.tap.height))); | 190 m_area = expandedIntSize(scaleSizeToWindow(widget, FloatSize(e.data.tap.
width, e.data.tap.height))); |
199 m_data.m_tap.m_tapCount = e.data.tap.tapCount; | 191 m_data.m_tap.m_tapCount = e.data.tap.tapCount; |
200 break; | 192 break; |
201 case WebInputEvent::GestureTapUnconfirmed: | 193 case WebInputEvent::GestureTapUnconfirmed: |
202 m_type = PlatformEvent::GestureTapUnconfirmed; | 194 m_type = PlatformEvent::GestureTapUnconfirmed; |
203 m_area = expandedIntSize(scaleSizeToWindow(widget, FloatSize(e.data.tap.
width, e.data.tap.height))); | 195 m_area = expandedIntSize(scaleSizeToWindow(widget, FloatSize(e.data.tap.
width, e.data.tap.height))); |
204 break; | 196 break; |
205 case WebInputEvent::GestureTapDown: | 197 case WebInputEvent::GestureTapDown: |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 modifiers = getWebInputModifiers(event); | 808 modifiers = getWebInputModifiers(event); |
817 | 809 |
818 globalX = event.screenX(); | 810 globalX = event.screenX(); |
819 globalY = event.screenY(); | 811 globalY = event.screenY(); |
820 IntPoint localPoint = convertAbsoluteLocationForRenderObject(event.absoluteL
ocation(), *renderObject); | 812 IntPoint localPoint = convertAbsoluteLocationForRenderObject(event.absoluteL
ocation(), *renderObject); |
821 x = localPoint.x(); | 813 x = localPoint.x(); |
822 y = localPoint.y(); | 814 y = localPoint.y(); |
823 } | 815 } |
824 | 816 |
825 } // namespace blink | 817 } // namespace blink |
OLD | NEW |