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

Side by Side Diff: sky/engine/web/ScrollbarGroup.cpp

Issue 687553006: Get rid of ScrollbarGroup. Sky doesn't use it. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: merge to ToT Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « sky/engine/web/ScrollbarGroup.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #include "config.h"
27 #include "web/ScrollbarGroup.h"
28
29 #include "core/frame/FrameView.h"
30 #include "platform/scroll/Scrollbar.h"
31 #include "platform/scroll/Scrollbar.h"
32 #include "public/platform/WebRect.h"
33
34 namespace blink {
35
36 ScrollbarGroup::ScrollbarGroup(FrameView* frameView, const IntRect& frameRect)
37 : m_frameRect(frameRect)
38 {
39 }
40
41 ScrollbarGroup::~ScrollbarGroup()
42 {
43 }
44
45 void ScrollbarGroup::setLastMousePosition(const IntPoint& point)
46 {
47 m_lastMousePosition = point;
48 }
49
50 int ScrollbarGroup::scrollSize(ScrollbarOrientation orientation) const
51 {
52 return 0;
53 }
54
55 void ScrollbarGroup::setScrollOffset(const IntPoint& offset)
56 {
57 }
58
59 void ScrollbarGroup::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect & rect)
60 {
61 }
62
63 void ScrollbarGroup::invalidateScrollCornerRect(const IntRect&)
64 {
65 }
66
67 bool ScrollbarGroup::isActive() const
68 {
69 return true;
70 }
71
72 void ScrollbarGroup::setFrameRect(const IntRect& frameRect)
73 {
74 m_frameRect = frameRect;
75 }
76
77 IntRect ScrollbarGroup::scrollableAreaBoundingBox() const
78 {
79 return m_frameRect;
80 }
81
82 bool ScrollbarGroup::isScrollCornerVisible() const
83 {
84 return false;
85 }
86
87 void ScrollbarGroup::getTickmarks(Vector<IntRect>& tickmarks) const
88 {
89 }
90
91 IntPoint ScrollbarGroup::convertFromContainingViewToScrollbar(const Scrollbar* s crollbar, const IntPoint& parentPoint) const
92 {
93 return IntPoint();
94 }
95
96 Scrollbar* ScrollbarGroup::horizontalScrollbar() const
97 {
98 return 0;
99 }
100
101 Scrollbar* ScrollbarGroup::verticalScrollbar() const
102 {
103 return 0;
104 }
105
106 IntPoint ScrollbarGroup::scrollPosition() const
107 {
108 return IntPoint();
109 }
110
111 IntPoint ScrollbarGroup::minimumScrollPosition() const
112 {
113 return IntPoint();
114 }
115
116 IntPoint ScrollbarGroup::maximumScrollPosition() const
117 {
118 return IntPoint(contentsSize().width() - visibleWidth(), contentsSize().heig ht() - visibleHeight());
119 }
120
121 int ScrollbarGroup::visibleHeight() const
122 {
123 return 0;
124 }
125
126 int ScrollbarGroup::visibleWidth() const
127 {
128 return 0;
129 }
130
131 IntSize ScrollbarGroup::contentsSize() const
132 {
133 return IntSize();
134 }
135
136 IntSize ScrollbarGroup::overhangAmount() const
137 {
138 return IntSize();
139 }
140
141 IntPoint ScrollbarGroup::lastKnownMousePosition() const
142 {
143 return m_lastMousePosition;
144 }
145
146 bool ScrollbarGroup::userInputScrollable(ScrollbarOrientation orientation) const
147 {
148 return false;
149 }
150
151 bool ScrollbarGroup::shouldPlaceVerticalScrollbarOnLeft() const
152 {
153 return false;
154 }
155
156 int ScrollbarGroup::pageStep(ScrollbarOrientation orientation) const
157 {
158 return 1;
159 }
160
161 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/web/ScrollbarGroup.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698