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

Unified Diff: WebCore/platform/Scrollbar.h

Issue 3364013: Merge 67001 - 2010-09-08 Peter Kasting <pkasting@google.com>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 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
« no previous file with comments | « WebCore/platform/ScrollView.cpp ('k') | WebCore/platform/Scrollbar.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/platform/Scrollbar.h
===================================================================
--- WebCore/platform/Scrollbar.h (revision 67003)
+++ WebCore/platform/Scrollbar.h (working copy)
@@ -42,6 +42,11 @@
class Scrollbar : public Widget {
public:
+ enum ScrollSource {
+ FromScrollAnimator,
+ NotFromScrollAnimator,
+ };
+
virtual ~Scrollbar();
// Must be implemented by platforms that can't simply use the Scrollbar base class. Right now the only platform that is not using the base class is GTK.
@@ -75,7 +80,7 @@
virtual void setPressedPart(ScrollbarPart);
void setSteps(int lineStep, int pageStep, int pixelsPerStep = 1);
- bool setValue(int);
+ bool setValue(int, ScrollSource source);
void setProportion(int visibleSize, int totalSize);
void setPressedPos(int p) { m_pressedPos = p; }
@@ -167,7 +172,7 @@
private:
virtual bool isScrollbar() const { return true; }
- bool setCurrentPos(float pos);
+ bool setCurrentPos(float pos, ScrollSource source);
};
}
« no previous file with comments | « WebCore/platform/ScrollView.cpp ('k') | WebCore/platform/Scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698