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

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

Issue 2646163002: Remove PlatformTouchEvent/Point and use WebTouchEvent/Point instead (Closed)
Patch Set: Fix nit Created 3 years, 10 months 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlay.cpp ('k') | third_party/WebKit/Source/web/WebInputEventConversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698