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

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

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 13 matching lines...) Expand all
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; 32 using blink::WebScrollbar;
33 33
34 namespace WebCore { 34 namespace blink {
35 35
36 WebScrollbarThemeClientImpl::WebScrollbarThemeClientImpl(WebScrollbar* scrollbar ) 36 WebScrollbarThemeClientImpl::WebScrollbarThemeClientImpl(WebScrollbar* scrollbar )
37 : m_scrollbar(scrollbar) 37 : m_scrollbar(scrollbar)
38 { 38 {
39 ScrollbarTheme::theme()->registerScrollbar(this); 39 ScrollbarTheme::theme()->registerScrollbar(this);
40 } 40 }
41 41
42 WebScrollbarThemeClientImpl::~WebScrollbarThemeClientImpl() 42 WebScrollbarThemeClientImpl::~WebScrollbarThemeClientImpl()
43 { 43 {
44 ScrollbarTheme::theme()->unregisterScrollbar(this); 44 ScrollbarTheme::theme()->unregisterScrollbar(this);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Unused by Chromium scrollbar themes. 104 // Unused by Chromium scrollbar themes.
105 ASSERT_NOT_REACHED(); 105 ASSERT_NOT_REACHED();
106 } 106 }
107 107
108 void WebScrollbarThemeClientImpl::invalidateRect(const IntRect&) 108 void WebScrollbarThemeClientImpl::invalidateRect(const IntRect&)
109 { 109 {
110 // Unused by Chromium scrollbar themes. 110 // Unused by Chromium scrollbar themes.
111 ASSERT_NOT_REACHED(); 111 ASSERT_NOT_REACHED();
112 } 112 }
113 113
114 WebCore::ScrollbarOverlayStyle WebScrollbarThemeClientImpl::scrollbarOverlayStyl e() const 114 blink::ScrollbarOverlayStyle WebScrollbarThemeClientImpl::scrollbarOverlayStyle( ) const
115 { 115 {
116 return static_cast<WebCore::ScrollbarOverlayStyle>(m_scrollbar->scrollbarOve rlayStyle()); 116 return static_cast<blink::ScrollbarOverlayStyle>(m_scrollbar->scrollbarOverl ayStyle());
117 } 117 }
118 118
119 void WebScrollbarThemeClientImpl::getTickmarks(Vector<IntRect>& tickmarks) const 119 void WebScrollbarThemeClientImpl::getTickmarks(Vector<IntRect>& tickmarks) const
120 { 120 {
121 blink::WebVector<blink::WebRect> webTickmarks; 121 blink::WebVector<blink::WebRect> webTickmarks;
122 m_scrollbar->getTickmarks(webTickmarks); 122 m_scrollbar->getTickmarks(webTickmarks);
123 tickmarks.resize(webTickmarks.size()); 123 tickmarks.resize(webTickmarks.size());
124 for (size_t i = 0; i < webTickmarks.size(); ++i) 124 for (size_t i = 0; i < webTickmarks.size(); ++i)
125 tickmarks[i] = webTickmarks[i]; 125 tickmarks[i] = webTickmarks[i];
126 } 126 }
(...skipping 15 matching lines...) Expand all
142 // Unused by Chromium scrollbar themes. 142 // Unused by Chromium scrollbar themes.
143 ASSERT_NOT_REACHED(); 143 ASSERT_NOT_REACHED();
144 return windowPoint; 144 return windowPoint;
145 } 145 }
146 146
147 bool WebScrollbarThemeClientImpl::isCustomScrollbar() const 147 bool WebScrollbarThemeClientImpl::isCustomScrollbar() const
148 { 148 {
149 return m_scrollbar->isCustomScrollbar(); 149 return m_scrollbar->isCustomScrollbar();
150 } 150 }
151 151
152 WebCore::ScrollbarOrientation WebScrollbarThemeClientImpl::orientation() const 152 blink::ScrollbarOrientation WebScrollbarThemeClientImpl::orientation() const
153 { 153 {
154 return static_cast<WebCore::ScrollbarOrientation>(m_scrollbar->orientation() ); 154 return static_cast<blink::ScrollbarOrientation>(m_scrollbar->orientation());
155 } 155 }
156 156
157 bool WebScrollbarThemeClientImpl::isLeftSideVerticalScrollbar() const 157 bool WebScrollbarThemeClientImpl::isLeftSideVerticalScrollbar() const
158 { 158 {
159 return m_scrollbar->isLeftSideVerticalScrollbar(); 159 return m_scrollbar->isLeftSideVerticalScrollbar();
160 } 160 }
161 161
162 int WebScrollbarThemeClientImpl::value() const 162 int WebScrollbarThemeClientImpl::value() const
163 { 163 {
164 return m_scrollbar->value(); 164 return m_scrollbar->value();
(...skipping 12 matching lines...) Expand all
177 int WebScrollbarThemeClientImpl::totalSize() const 177 int WebScrollbarThemeClientImpl::totalSize() const
178 { 178 {
179 return m_scrollbar->totalSize(); 179 return m_scrollbar->totalSize();
180 } 180 }
181 181
182 int WebScrollbarThemeClientImpl::maximum() const 182 int WebScrollbarThemeClientImpl::maximum() const
183 { 183 {
184 return m_scrollbar->maximum(); 184 return m_scrollbar->maximum();
185 } 185 }
186 186
187 WebCore::ScrollbarControlSize WebScrollbarThemeClientImpl::controlSize() const 187 blink::ScrollbarControlSize WebScrollbarThemeClientImpl::controlSize() const
188 { 188 {
189 return static_cast<WebCore::ScrollbarControlSize>(m_scrollbar->controlSize() ); 189 return static_cast<blink::ScrollbarControlSize>(m_scrollbar->controlSize());
190 } 190 }
191 191
192 WebCore::ScrollbarPart WebScrollbarThemeClientImpl::pressedPart() const 192 blink::ScrollbarPart WebScrollbarThemeClientImpl::pressedPart() const
193 { 193 {
194 return static_cast<WebCore::ScrollbarPart>(m_scrollbar->pressedPart()); 194 return static_cast<blink::ScrollbarPart>(m_scrollbar->pressedPart());
195 } 195 }
196 196
197 WebCore::ScrollbarPart WebScrollbarThemeClientImpl::hoveredPart() const 197 blink::ScrollbarPart WebScrollbarThemeClientImpl::hoveredPart() const
198 { 198 {
199 return static_cast<WebCore::ScrollbarPart>(m_scrollbar->hoveredPart()); 199 return static_cast<blink::ScrollbarPart>(m_scrollbar->hoveredPart());
200 } 200 }
201 201
202 void WebScrollbarThemeClientImpl::styleChanged() 202 void WebScrollbarThemeClientImpl::styleChanged()
203 { 203 {
204 ASSERT_NOT_REACHED(); 204 ASSERT_NOT_REACHED();
205 } 205 }
206 206
207 bool WebScrollbarThemeClientImpl::enabled() const 207 bool WebScrollbarThemeClientImpl::enabled() const
208 { 208 {
209 return m_scrollbar->enabled(); 209 return m_scrollbar->enabled();
(...skipping 13 matching lines...) Expand all
223 { 223 {
224 return m_scrollbar->isAlphaLocked(); 224 return m_scrollbar->isAlphaLocked();
225 } 225 }
226 226
227 void WebScrollbarThemeClientImpl::setIsAlphaLocked(bool flag) 227 void WebScrollbarThemeClientImpl::setIsAlphaLocked(bool flag)
228 { 228 {
229 m_scrollbar->setIsAlphaLocked(flag); 229 m_scrollbar->setIsAlphaLocked(flag);
230 } 230 }
231 231
232 } // namespace blink 232 } // 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