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

Unified Diff: chrome/browser/ui/views/download/download_item_view.h

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/download/download_item_view.h
diff --git a/chrome/browser/ui/views/download/download_item_view.h b/chrome/browser/ui/views/download/download_item_view.h
index 0dffb2efc2b247cf4b6ffde5117367ed358a68ed..9920bc47e3d7b8739bf3ab88e3edc125b6a6e1af 100644
--- a/chrome/browser/ui/views/download/download_item_view.h
+++ b/chrome/browser/ui/views/download/download_item_view.h
@@ -76,7 +76,7 @@ class DownloadItemView : public views::ButtonListener,
// Overridden from views::View:
virtual void Layout() OVERRIDE;
- virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual gfx::Size GetPreferredSize() const OVERRIDE;
virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
@@ -198,7 +198,7 @@ class DownloadItemView : public views::ButtonListener,
// Sets |size| with the size of the Save and Discard buttons (they have the
// same size).
- gfx::Size GetButtonSize();
+ gfx::Size GetButtonSize() const;
// Sizes the dangerous download label to a minimum width available using 2
// lines. The size is computed only the first time this method is invoked
@@ -313,7 +313,7 @@ class DownloadItemView : public views::ButtonListener,
bool dangerous_download_label_sized_;
// The size of the buttons. Cached so animation works when hidden.
- gfx::Size cached_button_size_;
+ mutable gfx::Size cached_button_size_;
// Whether we are currently disabled as part of opening the downloaded file.
bool disabled_while_opening_;
« no previous file with comments | « chrome/browser/ui/views/desktop_media_picker_views.cc ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698