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

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: Fix broken Mac build Created 7 years, 6 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 int WebScrollbarThemeClientImpl::maximum() const 169 int WebScrollbarThemeClientImpl::maximum() const
170 { 170 {
171 return m_scrollbar->maximum(); 171 return m_scrollbar->maximum();
172 } 172 }
173 173
174 WebCore::ScrollbarControlSize WebScrollbarThemeClientImpl::controlSize() const 174 WebCore::ScrollbarControlSize WebScrollbarThemeClientImpl::controlSize() const
175 { 175 {
176 return static_cast<WebCore::ScrollbarControlSize>(m_scrollbar->controlSize() ); 176 return static_cast<WebCore::ScrollbarControlSize>(m_scrollbar->controlSize() );
177 } 177 }
178 178
179 int WebScrollbarThemeClientImpl::lineStep() const
180 {
181 ASSERT_NOT_REACHED();
182 return 0;
183 }
184
185 int WebScrollbarThemeClientImpl::pageStep() const
186 {
187 ASSERT_NOT_REACHED();
188 return 0;
189 }
190
191 WebCore::ScrollbarPart WebScrollbarThemeClientImpl::pressedPart() const 179 WebCore::ScrollbarPart WebScrollbarThemeClientImpl::pressedPart() const
192 { 180 {
193 return static_cast<WebCore::ScrollbarPart>(m_scrollbar->pressedPart()); 181 return static_cast<WebCore::ScrollbarPart>(m_scrollbar->pressedPart());
194 } 182 }
195 183
196 WebCore::ScrollbarPart WebScrollbarThemeClientImpl::hoveredPart() const 184 WebCore::ScrollbarPart WebScrollbarThemeClientImpl::hoveredPart() const
197 { 185 {
198 return static_cast<WebCore::ScrollbarPart>(m_scrollbar->hoveredPart()); 186 return static_cast<WebCore::ScrollbarPart>(m_scrollbar->hoveredPart());
199 } 187 }
200 188
(...skipping 21 matching lines...) Expand all
222 { 210 {
223 return m_scrollbar->isAlphaLocked(); 211 return m_scrollbar->isAlphaLocked();
224 } 212 }
225 213
226 void WebScrollbarThemeClientImpl::setIsAlphaLocked(bool flag) 214 void WebScrollbarThemeClientImpl::setIsAlphaLocked(bool flag)
227 { 215 {
228 m_scrollbar->setIsAlphaLocked(flag); 216 m_scrollbar->setIsAlphaLocked(flag);
229 } 217 }
230 218
231 } // namespace WebKit 219 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698