blob: 7ce7a1d0b21a9c3abca303814b9f65e4b0cde98a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "CCScrollbarGeometryStub.h"
using WebKit::WebRect;
using WebKit::WebScrollbar;
using WebKit::WebScrollbarThemeGeometry;
namespace WebCore {
CCScrollbarGeometryStub::CCScrollbarGeometryStub(PassOwnPtr<WebScrollbarThemeGeometry> geometry)
: m_geometry(geometry)
{
}
CCScrollbarGeometryStub::~CCScrollbarGeometryStub()
{
}
WebScrollbarThemeGeometry* CCScrollbarGeometryStub::clone() const
{
return m_geometry->clone();
}
int CCScrollbarGeometryStub::thumbPosition(WebScrollbar* scrollbar)
{
return m_geometry->thumbPosition(scrollbar);
}
int CCScrollbarGeometryStub::thumbLength(WebScrollbar* scrollbar)
{
return m_geometry->thumbLength(scrollbar);
}
int CCScrollbarGeometryStub::trackPosition(WebScrollbar* scrollbar)
{
return m_geometry->trackPosition(scrollbar);
}
int CCScrollbarGeometryStub::trackLength(WebScrollbar* scrollbar)
{
return m_geometry->trackLength(scrollbar);
}
bool CCScrollbarGeometryStub::hasButtons(WebScrollbar* scrollbar)
{
return m_geometry->hasButtons(scrollbar);
}
bool CCScrollbarGeometryStub::hasThumb(WebScrollbar* scrollbar)
{
return m_geometry->hasThumb(scrollbar);
}
WebRect CCScrollbarGeometryStub::trackRect(WebScrollbar* scrollbar)
{
return m_geometry->trackRect(scrollbar);
}
WebRect CCScrollbarGeometryStub::thumbRect(WebScrollbar* scrollbar)
{
return m_geometry->thumbRect(scrollbar);
}
int CCScrollbarGeometryStub::minimumThumbLength(WebScrollbar* scrollbar)
{
return m_geometry->minimumThumbLength(scrollbar);
}
int CCScrollbarGeometryStub::scrollbarThickness(WebScrollbar* scrollbar)
{
return m_geometry->scrollbarThickness(scrollbar);
}
WebRect CCScrollbarGeometryStub::backButtonStartRect(WebScrollbar* scrollbar)
{
return m_geometry->backButtonStartRect(scrollbar);
}
WebRect CCScrollbarGeometryStub::backButtonEndRect(WebScrollbar* scrollbar)
{
return m_geometry->backButtonEndRect(scrollbar);
}
WebRect CCScrollbarGeometryStub::forwardButtonStartRect(WebScrollbar* scrollbar)
{
return m_geometry->forwardButtonStartRect(scrollbar);
}
WebRect CCScrollbarGeometryStub::forwardButtonEndRect(WebScrollbar* scrollbar)
{
return m_geometry->forwardButtonEndRect(scrollbar);
}
WebRect CCScrollbarGeometryStub::constrainTrackRectToTrackPieces(WebScrollbar* scrollbar, const WebRect& rect)
{
return m_geometry->constrainTrackRectToTrackPieces(scrollbar, rect);
}
void CCScrollbarGeometryStub::splitTrack(WebScrollbar* scrollbar, const WebRect& unconstrainedTrackRect, WebRect& beforeThumbRect, WebRect& thumbRect, WebRect& afterThumbRect)
{
m_geometry->splitTrack(scrollbar, unconstrainedTrackRect, beforeThumbRect, thumbRect, afterThumbRect);
}
}
|