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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 void PageWidgetEventHandler::handleMouseUp(LocalFrame& mainFrame, | 244 void PageWidgetEventHandler::handleMouseUp(LocalFrame& mainFrame, |
245 const WebMouseEvent& event) { | 245 const WebMouseEvent& event) { |
246 mainFrame.eventHandler().handleMouseReleaseEvent( | 246 mainFrame.eventHandler().handleMouseReleaseEvent( |
247 PlatformMouseEventBuilder(mainFrame.view(), event)); | 247 PlatformMouseEventBuilder(mainFrame.view(), event)); |
248 } | 248 } |
249 | 249 |
250 WebInputEventResult PageWidgetEventHandler::handleMouseWheel( | 250 WebInputEventResult PageWidgetEventHandler::handleMouseWheel( |
251 LocalFrame& mainFrame, | 251 LocalFrame& mainFrame, |
252 const WebMouseWheelEvent& event) { | 252 const WebMouseWheelEvent& event) { |
253 return mainFrame.eventHandler().handleWheelEvent( | 253 WebMouseWheelEvent transformedEvent = |
254 PlatformWheelEventBuilder(mainFrame.view(), event)); | 254 TransformWebMouseWheelEvent(mainFrame.view(), event); |
| 255 return mainFrame.eventHandler().handleWheelEvent(transformedEvent); |
255 } | 256 } |
256 | 257 |
257 WebInputEventResult PageWidgetEventHandler::handleTouchEvent( | 258 WebInputEventResult PageWidgetEventHandler::handleTouchEvent( |
258 LocalFrame& mainFrame, | 259 LocalFrame& mainFrame, |
259 const WebTouchEvent& event, | 260 const WebTouchEvent& event, |
260 const std::vector<const WebInputEvent*>& coalescedEvents) { | 261 const std::vector<const WebInputEvent*>& coalescedEvents) { |
261 return mainFrame.eventHandler().handleTouchEvent( | 262 return mainFrame.eventHandler().handleTouchEvent( |
262 PlatformTouchEventBuilder(mainFrame.view(), event), | 263 PlatformTouchEventBuilder(mainFrame.view(), event), |
263 createPlatformTouchEventVector(mainFrame.view(), coalescedEvents)); | 264 createPlatformTouchEventVector(mainFrame.view(), coalescedEvents)); |
264 } | 265 } |
265 | 266 |
266 } // namespace blink | 267 } // namespace blink |
OLD | NEW |