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

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

Issue 2290233007: Move convertViewportToWindow and convertWindowToViewport from (Closed)
Patch Set: add client to WebSharedWorkerImpl Created 4 years, 3 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 d56eff27373447cc61e9f614342813ef88d9a522..898ce914d69fab1e1e8a3de9b4ecf38c7819fe7d 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
@@ -61,7 +61,7 @@ enum IncludeScrollbarsInRect {
class PLATFORM_EXPORT ScrollableArea : public GarbageCollectedMixin {
WTF_MAKE_NONCOPYABLE(ScrollableArea);
public:
- static int pixelsPerLineStep(HostWindow*);
+ static int pixelsPerLineStep(HostWindow*, Widget*);
static float minFractionToStepWhenPaging();
static int maxOverlapBetweenPages();
@@ -295,7 +295,7 @@ protected:
ScrollableArea();
ScrollbarOrientation scrollbarOrientationFromDirection(ScrollDirectionPhysical) const;
- float scrollStep(ScrollGranularity, ScrollbarOrientation) const;
+ float scrollStep(ScrollGranularity, ScrollbarOrientation);
void setScrollOrigin(const IntPoint&);
void resetScrollOriginChanged() { m_scrollOriginChanged = false; }
@@ -321,7 +321,7 @@ private:
// This function should be overriden by subclasses to perform the actual scroll of the content.
virtual void setScrollOffset(const DoublePoint& offset, ScrollType) = 0;
- virtual int lineStep(ScrollbarOrientation) const;
+ virtual int lineStep(ScrollbarOrientation);
virtual int pageStep(ScrollbarOrientation) const;
virtual int documentStep(ScrollbarOrientation) const;
virtual float pixelStep(ScrollbarOrientation) const;
« no previous file with comments | « third_party/WebKit/Source/platform/HostWindow.h ('k') | third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698