| OLD | NEW |
| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 void WebScrollbarThemeClientImpl::invalidate() { | 87 void WebScrollbarThemeClientImpl::invalidate() { |
| 88 // Unused by Chromium scrollbar themes. | 88 // Unused by Chromium scrollbar themes. |
| 89 ASSERT_NOT_REACHED(); | 89 ASSERT_NOT_REACHED(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void WebScrollbarThemeClientImpl::invalidateRect(const IntRect&) { | 92 void WebScrollbarThemeClientImpl::invalidateRect(const IntRect&) { |
| 93 // Unused by Chromium scrollbar themes. | 93 // Unused by Chromium scrollbar themes. |
| 94 ASSERT_NOT_REACHED(); | 94 ASSERT_NOT_REACHED(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 ScrollbarOverlayStyle WebScrollbarThemeClientImpl::getScrollbarOverlayStyle() | 97 ScrollbarOverlayColorTheme |
| 98 const { | 98 WebScrollbarThemeClientImpl::getScrollbarOverlayColorTheme() const { |
| 99 return static_cast<ScrollbarOverlayStyle>( | 99 return static_cast<ScrollbarOverlayColorTheme>( |
| 100 m_scrollbar.scrollbarOverlayStyle()); | 100 m_scrollbar.scrollbarOverlayColorTheme()); |
| 101 } | 101 } |
| 102 | 102 |
| 103 void WebScrollbarThemeClientImpl::getTickmarks( | 103 void WebScrollbarThemeClientImpl::getTickmarks( |
| 104 Vector<IntRect>& tickmarks) const { | 104 Vector<IntRect>& tickmarks) const { |
| 105 WebVector<WebRect> webTickmarks; | 105 WebVector<WebRect> webTickmarks; |
| 106 m_scrollbar.getTickmarks(webTickmarks); | 106 m_scrollbar.getTickmarks(webTickmarks); |
| 107 tickmarks.resize(webTickmarks.size()); | 107 tickmarks.resize(webTickmarks.size()); |
| 108 for (size_t i = 0; i < webTickmarks.size(); ++i) | 108 for (size_t i = 0; i < webTickmarks.size(); ++i) |
| 109 tickmarks[i] = webTickmarks[i]; | 109 tickmarks[i] = webTickmarks[i]; |
| 110 } | 110 } |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 float WebScrollbarThemeClientImpl::elasticOverscroll() const { | 185 float WebScrollbarThemeClientImpl::elasticOverscroll() const { |
| 186 return m_scrollbar.elasticOverscroll(); | 186 return m_scrollbar.elasticOverscroll(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 void WebScrollbarThemeClientImpl::setElasticOverscroll( | 189 void WebScrollbarThemeClientImpl::setElasticOverscroll( |
| 190 float elasticOverscroll) { | 190 float elasticOverscroll) { |
| 191 return m_scrollbar.setElasticOverscroll(elasticOverscroll); | 191 return m_scrollbar.setElasticOverscroll(elasticOverscroll); |
| 192 } | 192 } |
| 193 | 193 |
| 194 } // namespace blink | 194 } // namespace blink |
| OLD | NEW |