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

Unified Diff: third_party/WebKit/public/web/WebWidgetClient.h

Issue 2605193002: Fix mouse wheel over-scrolls when display is scaled and scroll is paginated (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/public/web/WebWidgetClient.h
diff --git a/third_party/WebKit/public/web/WebWidgetClient.h b/third_party/WebKit/public/web/WebWidgetClient.h
index 60ac185aaca6cf916239fdeee79ba0c63cd583d8..f4b7807d45a160fa58cc5061d986c2d2c529a681 100644
--- a/third_party/WebKit/public/web/WebWidgetClient.h
+++ b/third_party/WebKit/public/web/WebWidgetClient.h
@@ -187,6 +187,9 @@ class WebWidgetClient {
const WebImage& dragImage,
const WebPoint& dragImageOffset) {}
+ // This returns original device scale factor.
+ virtual float GetOriginalDeviceScaleFactor() const { return 1.0f; }
+
protected:
~WebWidgetClient() {}
};

Powered by Google App Engine
This is Rietveld 408576698