Index: chrome/browser/ui/views/desktop_media_picker_views.cc |
diff --git a/chrome/browser/ui/views/desktop_media_picker_views.cc b/chrome/browser/ui/views/desktop_media_picker_views.cc |
index f6b9b8a6526dd793859cc1bb9ae06169c7a90fdf..76d33a998a20206414c516733f363b42f163f5e7 100644 |
--- a/chrome/browser/ui/views/desktop_media_picker_views.cc |
+++ b/chrome/browser/ui/views/desktop_media_picker_views.cc |
@@ -126,7 +126,7 @@ class DesktopMediaListView : public views::View, |
DesktopMediaSourceView* GetSelection(); |
// views::View overrides. |
- virtual gfx::Size GetPreferredSize() OVERRIDE; |
+ virtual gfx::Size GetPreferredSize() const OVERRIDE; |
virtual void Layout() OVERRIDE; |
virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
@@ -163,7 +163,7 @@ class DesktopMediaPickerDialogView : public views::DialogDelegateView { |
void OnDoubleClick(); |
// views::View overrides. |
- virtual gfx::Size GetPreferredSize() OVERRIDE; |
+ virtual gfx::Size GetPreferredSize() const OVERRIDE; |
virtual void Layout() OVERRIDE; |
// views::DialogDelegateView overrides. |
@@ -364,7 +364,7 @@ DesktopMediaSourceView* DesktopMediaListView::GetSelection() { |
return NULL; |
} |
-gfx::Size DesktopMediaListView::GetPreferredSize() { |
+gfx::Size DesktopMediaListView::GetPreferredSize() const { |
int total_rows = (child_count() + kListColumns - 1) / kListColumns; |
return gfx::Size(kTotalListWidth, kListItemHeight * total_rows); |
} |
@@ -540,7 +540,7 @@ void DesktopMediaPickerDialogView::DetachParent() { |
parent_ = NULL; |
} |
-gfx::Size DesktopMediaPickerDialogView::GetPreferredSize() { |
+gfx::Size DesktopMediaPickerDialogView::GetPreferredSize() const { |
return gfx::Size(600, 500); |
} |