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

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

Issue 2467693002: Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: sigh....git cl format Created 4 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
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 162
163 ScrollbarPart WebScrollbarThemeClientImpl::hoveredPart() const { 163 ScrollbarPart WebScrollbarThemeClientImpl::hoveredPart() const {
164 return static_cast<ScrollbarPart>(m_scrollbar.hoveredPart()); 164 return static_cast<ScrollbarPart>(m_scrollbar.hoveredPart());
165 } 165 }
166 166
167 void WebScrollbarThemeClientImpl::styleChanged() { 167 void WebScrollbarThemeClientImpl::styleChanged() {
168 ASSERT_NOT_REACHED(); 168 ASSERT_NOT_REACHED();
169 } 169 }
170 170
171 void WebScrollbarThemeClientImpl::visibilityChanged() {} 171 void WebScrollbarThemeClientImpl::setScrollbarsHidden(bool hidden) {
172 ASSERT_NOT_REACHED();
173 }
172 174
173 bool WebScrollbarThemeClientImpl::enabled() const { 175 bool WebScrollbarThemeClientImpl::enabled() const {
174 return m_scrollbar.enabled(); 176 return m_scrollbar.enabled();
175 } 177 }
176 178
177 void WebScrollbarThemeClientImpl::setEnabled(bool) { 179 void WebScrollbarThemeClientImpl::setEnabled(bool) {
178 ASSERT_NOT_REACHED(); 180 ASSERT_NOT_REACHED();
179 } 181 }
180 182
181 bool WebScrollbarThemeClientImpl::isOverlayScrollbar() const { 183 bool WebScrollbarThemeClientImpl::isOverlayScrollbar() const {
182 return m_scrollbar.isOverlay(); 184 return m_scrollbar.isOverlay();
183 } 185 }
184 186
185 float WebScrollbarThemeClientImpl::elasticOverscroll() const { 187 float WebScrollbarThemeClientImpl::elasticOverscroll() const {
186 return m_scrollbar.elasticOverscroll(); 188 return m_scrollbar.elasticOverscroll();
187 } 189 }
188 190
189 void WebScrollbarThemeClientImpl::setElasticOverscroll( 191 void WebScrollbarThemeClientImpl::setElasticOverscroll(
190 float elasticOverscroll) { 192 float elasticOverscroll) {
191 return m_scrollbar.setElasticOverscroll(elasticOverscroll); 193 return m_scrollbar.setElasticOverscroll(elasticOverscroll);
192 } 194 }
193 195
194 } // namespace blink 196 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698