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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp

Issue 2824753005: Rename HostWindow to PlatformChromeClient (Closed)
Patch Set: mac Created 3 years, 8 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/scroll/ScrollableArea.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
index 73409a0340584fad519f8bb2497f729e7ca91ab6..551326295b5a63c2ef4c2ba4bf3cfa940c06c242 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
@@ -31,7 +31,7 @@
#include "platform/scroll/ScrollableArea.h"
-#include "platform/HostWindow.h"
+#include "platform/PlatformChromeClient.h"
#include "platform/graphics/GraphicsLayer.h"
#include "platform/instrumentation/tracing/TraceEvent.h"
#include "platform/scroll/MainThreadScrollingReason.h"
@@ -43,7 +43,7 @@ static const float kMinFractionToStepWhenPaging = 0.875f;
namespace blink {
-int ScrollableArea::PixelsPerLineStep(HostWindow* host) {
+int ScrollableArea::PixelsPerLineStep(PlatformChromeClient* host) {
if (!host)
return kPixelsPerLineStep;
return host->WindowToViewportScalar(kPixelsPerLineStep);
@@ -615,7 +615,7 @@ ScrollOffset ScrollableArea::ClampScrollOffset(
}
int ScrollableArea::LineStep(ScrollbarOrientation) const {
- return PixelsPerLineStep(GetHostWindow());
+ return PixelsPerLineStep(GetChromeClient());
}
int ScrollableArea::PageStep(ScrollbarOrientation orientation) const {
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.h ('k') | third_party/WebKit/Source/platform/scroll/Scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698