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

Side by Side Diff: Source/core/platform/chromium/support/WebScrollbarThemeClientImpl.cpp

Issue 16982005: Allow objects without scrollbars to be scrollable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed ScrollbarGroup pageStep Created 7 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 int WebScrollbarThemeClientImpl::maximum() const 176 int WebScrollbarThemeClientImpl::maximum() const
177 { 177 {
178 return m_scrollbar->maximum(); 178 return m_scrollbar->maximum();
179 } 179 }
180 180
181 WebCore::ScrollbarControlSize WebScrollbarThemeClientImpl::controlSize() const 181 WebCore::ScrollbarControlSize WebScrollbarThemeClientImpl::controlSize() const
182 { 182 {
183 return static_cast<WebCore::ScrollbarControlSize>(m_scrollbar->controlSize() ); 183 return static_cast<WebCore::ScrollbarControlSize>(m_scrollbar->controlSize() );
184 } 184 }
185 185
186 int WebScrollbarThemeClientImpl::lineStep() const
187 {
188 ASSERT_NOT_REACHED();
189 return 0;
190 }
191
192 int WebScrollbarThemeClientImpl::pageStep() const
193 {
194 ASSERT_NOT_REACHED();
195 return 0;
196 }
197
198 WebCore::ScrollbarPart WebScrollbarThemeClientImpl::pressedPart() const 186 WebCore::ScrollbarPart WebScrollbarThemeClientImpl::pressedPart() const
199 { 187 {
200 return static_cast<WebCore::ScrollbarPart>(m_scrollbar->pressedPart()); 188 return static_cast<WebCore::ScrollbarPart>(m_scrollbar->pressedPart());
201 } 189 }
202 190
203 WebCore::ScrollbarPart WebScrollbarThemeClientImpl::hoveredPart() const 191 WebCore::ScrollbarPart WebScrollbarThemeClientImpl::hoveredPart() const
204 { 192 {
205 return static_cast<WebCore::ScrollbarPart>(m_scrollbar->hoveredPart()); 193 return static_cast<WebCore::ScrollbarPart>(m_scrollbar->hoveredPart());
206 } 194 }
207 195
(...skipping 21 matching lines...) Expand all
229 { 217 {
230 return m_scrollbar->isAlphaLocked(); 218 return m_scrollbar->isAlphaLocked();
231 } 219 }
232 220
233 void WebScrollbarThemeClientImpl::setIsAlphaLocked(bool flag) 221 void WebScrollbarThemeClientImpl::setIsAlphaLocked(bool flag)
234 { 222 {
235 m_scrollbar->setIsAlphaLocked(flag); 223 m_scrollbar->setIsAlphaLocked(flag);
236 } 224 }
237 225
238 } // namespace WebKit 226 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/core/platform/chromium/support/WebScrollbarThemeClientImpl.h ('k') | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698