Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: third_party/WebKit/Source/web/PageWidgetDelegate.cpp

Issue 2586133003: Remove PlatformWheelEvent and use WebMouseWheelEvent instead (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 scaledEvent =
majidvp 2016/12/20 17:30:15 nit: ditto
dtapuska 2017/01/03 20:19:14 Done.
254 PlatformWheelEventBuilder(mainFrame.view(), event)); 254 TransformWebMouseWheelEvent(mainFrame.view(), event);
255 return mainFrame.eventHandler().handleWheelEvent(scaledEvent);
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698