OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 const WebMouseWheelEvent& event) { | 253 const WebMouseWheelEvent& event) { |
254 WebMouseWheelEvent transformedEvent = | 254 WebMouseWheelEvent transformedEvent = |
255 TransformWebMouseWheelEvent(mainFrame.view(), event); | 255 TransformWebMouseWheelEvent(mainFrame.view(), event); |
256 return mainFrame.eventHandler().handleWheelEvent(transformedEvent); | 256 return mainFrame.eventHandler().handleWheelEvent(transformedEvent); |
257 } | 257 } |
258 | 258 |
259 WebInputEventResult PageWidgetEventHandler::handleTouchEvent( | 259 WebInputEventResult PageWidgetEventHandler::handleTouchEvent( |
260 LocalFrame& mainFrame, | 260 LocalFrame& mainFrame, |
261 const WebTouchEvent& event, | 261 const WebTouchEvent& event, |
262 const std::vector<const WebInputEvent*>& coalescedEvents) { | 262 const std::vector<const WebInputEvent*>& coalescedEvents) { |
| 263 WebTouchEvent transformedEvent = |
| 264 TransformWebTouchEvent(mainFrame.view(), event); |
263 return mainFrame.eventHandler().handleTouchEvent( | 265 return mainFrame.eventHandler().handleTouchEvent( |
264 PlatformTouchEventBuilder(mainFrame.view(), event), | 266 transformedEvent, |
265 createPlatformTouchEventVector(mainFrame.view(), coalescedEvents)); | 267 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents)); |
266 } | 268 } |
267 | 269 |
268 } // namespace blink | 270 } // namespace blink |
OLD | NEW |