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

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

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.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
index b2e951eb5af5700be1fa892d56a89c09673e6bfa..03ba7c48dabf4fe8e069a4bbea0e6d2149630b58 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
@@ -45,10 +45,10 @@ namespace blink {
class CompositorAnimationHost;
class CompositorAnimationTimeline;
class GraphicsLayer;
-class HostWindow;
class LayoutBox;
class LayoutObject;
class PaintLayer;
+class PlatformChromeClient;
class ProgrammaticScrollAnimator;
struct ScrollAlignment;
class ScrollAnchor;
@@ -65,7 +65,7 @@ class PLATFORM_EXPORT ScrollableArea : public GarbageCollectedMixin,
WTF_MAKE_NONCOPYABLE(ScrollableArea);
public:
- static int PixelsPerLineStep(HostWindow*);
+ static int PixelsPerLineStep(PlatformChromeClient*);
static float MinFractionToStepWhenPaging();
static int MaxOverlapBetweenPages();
@@ -75,10 +75,7 @@ class PLATFORM_EXPORT ScrollableArea : public GarbageCollectedMixin,
return std::isfinite(value) ? value : 0.0;
}
- // The window that hosts the ScrollableArea. The ScrollableArea will
- // communicate scrolls and repaints to the host window in the window's
- // coordinate space.
- virtual HostWindow* GetHostWindow() const { return 0; }
+ virtual PlatformChromeClient* GetChromeClient() const { return 0; }
virtual ScrollResult UserScroll(ScrollGranularity, const ScrollOffset&);

Powered by Google App Engine
This is Rietveld 408576698