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

Unified Diff: chrome/browser/ui/views/desktop_media_picker_views.cc

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 months 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 side-by-side diff with in-line comments
Download patch
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);
}
« no previous file with comments | « chrome/browser/ui/views/create_application_shortcut_view.cc ('k') | chrome/browser/ui/views/download/download_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698