summaryrefslogtreecommitdiffstats
path: root/webkit/port/platform/PlatformScrollBar.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/port/platform/PlatformScrollBar.h')
-rw-r--r--webkit/port/platform/PlatformScrollBar.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/port/platform/PlatformScrollBar.h b/webkit/port/platform/PlatformScrollBar.h
index ee619e1..4b3c17b 100644
--- a/webkit/port/platform/PlatformScrollBar.h
+++ b/webkit/port/platform/PlatformScrollBar.h
@@ -59,8 +59,10 @@ namespace WebCore {
class PlatformScrollbar : public Widget, public Scrollbar {
public:
- PlatformScrollbar(ScrollbarClient*, ScrollbarOrientation, ScrollbarControlSize);
-
+ static PassRefPtr<PlatformScrollbar> create(ScrollbarClient* client, ScrollbarOrientation orientation, ScrollbarControlSize size)
+ {
+ return adoptRef(new PlatformScrollbar(client, orientation, size));
+ }
virtual ~PlatformScrollbar();
virtual bool isWidget() const { return true; }
@@ -105,6 +107,8 @@ protected:
virtual void updateThumbProportion();
private:
+ PlatformScrollbar(ScrollbarClient*, ScrollbarOrientation, ScrollbarControlSize);
+
// Scroll bar segment identifiers
enum Segment {
Arrow1 = 0,