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

Side by Side Diff: Source/platform/exported/WebScrollbarThemeClientImpl.cpp

Issue 458313005: Cleanup namespace usage from animation to exported in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanup namespace usage from animation to exported in platform/ Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 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. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 27
28 #include "platform/exported/WebScrollbarThemeClientImpl.h" 28 #include "platform/exported/WebScrollbarThemeClientImpl.h"
29 29
30 #include "platform/scroll/ScrollbarTheme.h" 30 #include "platform/scroll/ScrollbarTheme.h"
31 31
32 using blink::WebScrollbar;
33
34 namespace blink { 32 namespace blink {
35 33
36 WebScrollbarThemeClientImpl::WebScrollbarThemeClientImpl(WebScrollbar* scrollbar ) 34 WebScrollbarThemeClientImpl::WebScrollbarThemeClientImpl(WebScrollbar* scrollbar )
37 : m_scrollbar(scrollbar) 35 : m_scrollbar(scrollbar)
38 { 36 {
39 ScrollbarTheme::theme()->registerScrollbar(this); 37 ScrollbarTheme::theme()->registerScrollbar(this);
40 } 38 }
41 39
42 WebScrollbarThemeClientImpl::~WebScrollbarThemeClientImpl() 40 WebScrollbarThemeClientImpl::~WebScrollbarThemeClientImpl()
43 { 41 {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Unused by Chromium scrollbar themes. 102 // Unused by Chromium scrollbar themes.
105 ASSERT_NOT_REACHED(); 103 ASSERT_NOT_REACHED();
106 } 104 }
107 105
108 void WebScrollbarThemeClientImpl::invalidateRect(const IntRect&) 106 void WebScrollbarThemeClientImpl::invalidateRect(const IntRect&)
109 { 107 {
110 // Unused by Chromium scrollbar themes. 108 // Unused by Chromium scrollbar themes.
111 ASSERT_NOT_REACHED(); 109 ASSERT_NOT_REACHED();
112 } 110 }
113 111
114 blink::ScrollbarOverlayStyle WebScrollbarThemeClientImpl::scrollbarOverlayStyle( ) const 112 ScrollbarOverlayStyle WebScrollbarThemeClientImpl::scrollbarOverlayStyle() const
115 { 113 {
116 return static_cast<blink::ScrollbarOverlayStyle>(m_scrollbar->scrollbarOverl ayStyle()); 114 return static_cast<ScrollbarOverlayStyle>(m_scrollbar->scrollbarOverlayStyle ());
117 } 115 }
118 116
119 void WebScrollbarThemeClientImpl::getTickmarks(Vector<IntRect>& tickmarks) const 117 void WebScrollbarThemeClientImpl::getTickmarks(Vector<IntRect>& tickmarks) const
120 { 118 {
121 blink::WebVector<blink::WebRect> webTickmarks; 119 WebVector<WebRect> webTickmarks;
122 m_scrollbar->getTickmarks(webTickmarks); 120 m_scrollbar->getTickmarks(webTickmarks);
123 tickmarks.resize(webTickmarks.size()); 121 tickmarks.resize(webTickmarks.size());
124 for (size_t i = 0; i < webTickmarks.size(); ++i) 122 for (size_t i = 0; i < webTickmarks.size(); ++i)
125 tickmarks[i] = webTickmarks[i]; 123 tickmarks[i] = webTickmarks[i];
126 } 124 }
127 125
128 bool WebScrollbarThemeClientImpl::isScrollableAreaActive() const 126 bool WebScrollbarThemeClientImpl::isScrollableAreaActive() const
129 { 127 {
130 return m_scrollbar->isScrollableAreaActive(); 128 return m_scrollbar->isScrollableAreaActive();
131 } 129 }
(...skipping 10 matching lines...) Expand all
142 // Unused by Chromium scrollbar themes. 140 // Unused by Chromium scrollbar themes.
143 ASSERT_NOT_REACHED(); 141 ASSERT_NOT_REACHED();
144 return windowPoint; 142 return windowPoint;
145 } 143 }
146 144
147 bool WebScrollbarThemeClientImpl::isCustomScrollbar() const 145 bool WebScrollbarThemeClientImpl::isCustomScrollbar() const
148 { 146 {
149 return m_scrollbar->isCustomScrollbar(); 147 return m_scrollbar->isCustomScrollbar();
150 } 148 }
151 149
152 blink::ScrollbarOrientation WebScrollbarThemeClientImpl::orientation() const 150 ScrollbarOrientation WebScrollbarThemeClientImpl::orientation() const
153 { 151 {
154 return static_cast<blink::ScrollbarOrientation>(m_scrollbar->orientation()); 152 return static_cast<ScrollbarOrientation>(m_scrollbar->orientation());
155 } 153 }
156 154
157 bool WebScrollbarThemeClientImpl::isLeftSideVerticalScrollbar() const 155 bool WebScrollbarThemeClientImpl::isLeftSideVerticalScrollbar() const
158 { 156 {
159 return m_scrollbar->isLeftSideVerticalScrollbar(); 157 return m_scrollbar->isLeftSideVerticalScrollbar();
160 } 158 }
161 159
162 int WebScrollbarThemeClientImpl::value() const 160 int WebScrollbarThemeClientImpl::value() const
163 { 161 {
164 return m_scrollbar->value(); 162 return m_scrollbar->value();
(...skipping 12 matching lines...) Expand all
177 int WebScrollbarThemeClientImpl::totalSize() const 175 int WebScrollbarThemeClientImpl::totalSize() const
178 { 176 {
179 return m_scrollbar->totalSize(); 177 return m_scrollbar->totalSize();
180 } 178 }
181 179
182 int WebScrollbarThemeClientImpl::maximum() const 180 int WebScrollbarThemeClientImpl::maximum() const
183 { 181 {
184 return m_scrollbar->maximum(); 182 return m_scrollbar->maximum();
185 } 183 }
186 184
187 blink::ScrollbarControlSize WebScrollbarThemeClientImpl::controlSize() const 185 ScrollbarControlSize WebScrollbarThemeClientImpl::controlSize() const
188 { 186 {
189 return static_cast<blink::ScrollbarControlSize>(m_scrollbar->controlSize()); 187 return static_cast<ScrollbarControlSize>(m_scrollbar->controlSize());
190 } 188 }
191 189
192 blink::ScrollbarPart WebScrollbarThemeClientImpl::pressedPart() const 190 ScrollbarPart WebScrollbarThemeClientImpl::pressedPart() const
193 { 191 {
194 return static_cast<blink::ScrollbarPart>(m_scrollbar->pressedPart()); 192 return static_cast<ScrollbarPart>(m_scrollbar->pressedPart());
195 } 193 }
196 194
197 blink::ScrollbarPart WebScrollbarThemeClientImpl::hoveredPart() const 195 ScrollbarPart WebScrollbarThemeClientImpl::hoveredPart() const
198 { 196 {
199 return static_cast<blink::ScrollbarPart>(m_scrollbar->hoveredPart()); 197 return static_cast<ScrollbarPart>(m_scrollbar->hoveredPart());
200 } 198 }
201 199
202 void WebScrollbarThemeClientImpl::styleChanged() 200 void WebScrollbarThemeClientImpl::styleChanged()
203 { 201 {
204 ASSERT_NOT_REACHED(); 202 ASSERT_NOT_REACHED();
205 } 203 }
206 204
207 bool WebScrollbarThemeClientImpl::enabled() const 205 bool WebScrollbarThemeClientImpl::enabled() const
208 { 206 {
209 return m_scrollbar->enabled(); 207 return m_scrollbar->enabled();
(...skipping 13 matching lines...) Expand all
223 { 221 {
224 return m_scrollbar->isAlphaLocked(); 222 return m_scrollbar->isAlphaLocked();
225 } 223 }
226 224
227 void WebScrollbarThemeClientImpl::setIsAlphaLocked(bool flag) 225 void WebScrollbarThemeClientImpl::setIsAlphaLocked(bool flag)
228 { 226 {
229 m_scrollbar->setIsAlphaLocked(flag); 227 m_scrollbar->setIsAlphaLocked(flag);
230 } 228 }
231 229
232 } // namespace blink 230 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/exported/WebScrollbarThemeClientImpl.h ('k') | Source/platform/exported/WebScrollbarThemeGeometryNative.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698