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

Unified Diff: third_party/WebKit/Source/core/page/AutoscrollController.cpp

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: Created 3 years, 11 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/core/page/AutoscrollController.cpp
diff --git a/third_party/WebKit/Source/core/page/AutoscrollController.cpp b/third_party/WebKit/Source/core/page/AutoscrollController.cpp
index 748b48dae496bda3dd86c8dd11f616e1098f1c8c..86c673226055e75714c78140973fbce6c398de93 100644
--- a/third_party/WebKit/Source/core/page/AutoscrollController.cpp
+++ b/third_party/WebKit/Source/core/page/AutoscrollController.cpp
@@ -203,14 +203,13 @@ void AutoscrollController::updateDragAndDrop(Node* dropTargetNode,
void AutoscrollController::handleMouseReleaseForMiddleClickAutoscroll(
LocalFrame* frame,
- const PlatformMouseEvent& mouseEvent) {
+ const WebMouseEvent& mouseEvent) {
DCHECK(RuntimeEnabledFeatures::middleClickAutoscrollEnabled());
if (!frame->isMainFrame())
return;
switch (m_autoscrollType) {
case AutoscrollForMiddleClick:
- if (mouseEvent.pointerProperties().button ==
- WebPointerProperties::Button::Middle)
+ if (mouseEvent.button == WebPointerProperties::Button::Middle)
m_autoscrollType = AutoscrollForMiddleClickCanStop;
break;
case AutoscrollForMiddleClickCanStop:

Powered by Google App Engine
This is Rietveld 408576698