Index: ui/views/controls/scrollbar/kennedy_scroll_bar.cc |
diff --git a/ui/views/controls/scrollbar/kennedy_scroll_bar.cc b/ui/views/controls/scrollbar/kennedy_scroll_bar.cc |
index f263068ecd736879ac1a7092f1733eeb0b6e94e8..b3d1e6a3c32fae7a6ccae1d60ca1cbe22cb42fa5 100644 |
--- a/ui/views/controls/scrollbar/kennedy_scroll_bar.cc |
+++ b/ui/views/controls/scrollbar/kennedy_scroll_bar.cc |
@@ -28,7 +28,7 @@ class KennedyScrollBarThumb : public BaseScrollBarThumb { |
protected: |
// View overrides: |
- virtual gfx::Size GetPreferredSize() OVERRIDE; |
+ virtual gfx::Size GetPreferredSize() const OVERRIDE; |
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
private: |
@@ -42,7 +42,7 @@ KennedyScrollBarThumb::KennedyScrollBarThumb(BaseScrollBar* scroll_bar) |
KennedyScrollBarThumb::~KennedyScrollBarThumb() { |
} |
-gfx::Size KennedyScrollBarThumb::GetPreferredSize() { |
+gfx::Size KennedyScrollBarThumb::GetPreferredSize() const { |
return gfx::Size(kThumbMinimumSize, kThumbMinimumSize); |
} |
@@ -77,7 +77,7 @@ int KennedyScrollBar::GetLayoutSize() const { |
return kScrollbarWidth; |
} |
-gfx::Size KennedyScrollBar::GetPreferredSize() { |
+gfx::Size KennedyScrollBar::GetPreferredSize() const { |
return GetTrackBounds().size(); |
} |