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

Unified Diff: third_party/WebKit/Source/web/InspectorOverlay.cpp

Issue 2586133003: Remove PlatformWheelEvent and use WebMouseWheelEvent instead (Closed)
Patch Set: Address comments Created 3 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/InspectorOverlay.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp
index 70c547c4cb979ae1eac80d91e3de373128f08424..d4b8b9fe4c3307e1ec4e62252f9bdb5ab6fed3d0 100644
--- a/third_party/WebKit/Source/web/InspectorOverlay.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp
@@ -237,14 +237,14 @@ bool InspectorOverlay::handleInputEvent(const WebInputEvent& inputEvent) {
if (WebInputEvent::isGestureEventType(inputEvent.type) &&
inputEvent.type == WebInputEvent::GestureTap) {
// We only have a use for gesture tap.
- WebGestureEvent scaledEvent = TransformWebGestureEvent(
+ WebGestureEvent transformedEvent = TransformWebGestureEvent(
m_frameImpl->frameView(),
static_cast<const WebGestureEvent&>(inputEvent));
- handled = handleGestureEvent(scaledEvent);
+ handled = handleGestureEvent(transformedEvent);
if (handled)
return true;
- overlayMainFrame()->eventHandler().handleGestureEvent(scaledEvent);
+ overlayMainFrame()->eventHandler().handleGestureEvent(transformedEvent);
}
if (WebInputEvent::isMouseEventType(inputEvent.type) &&
inputEvent.type != WebInputEvent::MouseEnter) {
@@ -295,11 +295,11 @@ bool InspectorOverlay::handleInputEvent(const WebInputEvent& inputEvent) {
}
if (inputEvent.type == WebInputEvent::MouseWheel) {
- PlatformWheelEvent wheelEvent = PlatformWheelEventBuilder(
+ WebMouseWheelEvent transformedEvent = TransformWebMouseWheelEvent(
m_frameImpl->frameView(),
static_cast<const WebMouseWheelEvent&>(inputEvent));
- handled = overlayMainFrame()->eventHandler().handleWheelEvent(wheelEvent) !=
- WebInputEventResult::NotHandled;
+ handled = overlayMainFrame()->eventHandler().handleWheelEvent(
+ transformedEvent) != WebInputEventResult::NotHandled;
}
return handled;

Powered by Google App Engine
This is Rietveld 408576698