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

Unified Diff: third_party/WebKit/Source/platform/HostWindow.h

Issue 1672973002: ScrollableArea::pixelsPerLine should return viewport pixels in use-zoom-for-dsf mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/HostWindow.h
diff --git a/third_party/WebKit/Source/platform/HostWindow.h b/third_party/WebKit/Source/platform/HostWindow.h
index f3b5934d626f33f76d932879fd14e933f406676c..7462ec6d661567a5e051bfbd7e61da6553a169b5 100644
--- a/third_party/WebKit/Source/platform/HostWindow.h
+++ b/third_party/WebKit/Source/platform/HostWindow.h
@@ -50,8 +50,8 @@ public:
// Converts the rect from the viewport coordinates to screen coordinates.
virtual IntRect viewportToScreen(const IntRect&) const = 0;
- // Converts the rect from the window coordinates to the viewport coordinates.
- virtual FloatRect windowToViewport(const FloatRect&) const = 0;
+ // Converts the scalar value from the window coordinates to the viewport scale.
skobes 2016/02/16 18:03:12 Is it documented anywhere what window and viewport
+ virtual float windowToViewportScalar(const float) const = 0;
virtual void scheduleAnimation(Widget*) = 0;
};
« no previous file with comments | « third_party/WebKit/Source/core/page/SpatialNavigation.cpp ('k') | third_party/WebKit/Source/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698