| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 } | 56 } |
| 57 | 57 |
| 58 IntSize WebScrollbarThemeClientImpl::Size() const { | 58 IntSize WebScrollbarThemeClientImpl::Size() const { |
| 59 return scrollbar_.Size(); | 59 return scrollbar_.Size(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 IntPoint WebScrollbarThemeClientImpl::Location() const { | 62 IntPoint WebScrollbarThemeClientImpl::Location() const { |
| 63 return scrollbar_.Location(); | 63 return scrollbar_.Location(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 FrameViewBase* WebScrollbarThemeClientImpl::Parent() const { | |
| 67 // Unused by Chromium scrollbar themes. | |
| 68 NOTREACHED(); | |
| 69 return 0; | |
| 70 } | |
| 71 | |
| 72 FrameViewBase* WebScrollbarThemeClientImpl::Root() const { | |
| 73 // Unused by Chromium scrollbar themes. | |
| 74 NOTREACHED(); | |
| 75 return 0; | |
| 76 } | |
| 77 | |
| 78 void WebScrollbarThemeClientImpl::SetFrameRect(const IntRect&) { | 66 void WebScrollbarThemeClientImpl::SetFrameRect(const IntRect&) { |
| 79 // Unused by Chromium scrollbar themes. | 67 // Unused by Chromium scrollbar themes. |
| 80 NOTREACHED(); | 68 NOTREACHED(); |
| 81 } | 69 } |
| 82 | 70 |
| 83 IntRect WebScrollbarThemeClientImpl::FrameRect() const { | 71 IntRect WebScrollbarThemeClientImpl::FrameRect() const { |
| 84 return IntRect(Location(), Size()); | 72 return IntRect(Location(), Size()); |
| 85 } | 73 } |
| 86 | 74 |
| 87 void WebScrollbarThemeClientImpl::Invalidate() { | 75 void WebScrollbarThemeClientImpl::Invalidate() { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 float WebScrollbarThemeClientImpl::ElasticOverscroll() const { | 175 float WebScrollbarThemeClientImpl::ElasticOverscroll() const { |
| 188 return scrollbar_.ElasticOverscroll(); | 176 return scrollbar_.ElasticOverscroll(); |
| 189 } | 177 } |
| 190 | 178 |
| 191 void WebScrollbarThemeClientImpl::SetElasticOverscroll( | 179 void WebScrollbarThemeClientImpl::SetElasticOverscroll( |
| 192 float elastic_overscroll) { | 180 float elastic_overscroll) { |
| 193 return scrollbar_.SetElasticOverscroll(elastic_overscroll); | 181 return scrollbar_.SetElasticOverscroll(elastic_overscroll); |
| 194 } | 182 } |
| 195 | 183 |
| 196 } // namespace blink | 184 } // namespace blink |
| OLD | NEW |