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

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

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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/views/download_item_view.h
===================================================================
--- chrome/browser/views/download_item_view.h (revision 3391)
+++ chrome/browser/views/download_item_view.h (working copy)
@@ -62,7 +62,7 @@
// View overrides
virtual void Layout();
virtual void Paint(ChromeCanvas* canvas);
- virtual void GetPreferredSize(CSize *out);
+ virtual gfx::Size GetPreferredSize();
virtual void OnMouseExited(const ChromeViews::MouseEvent& event);
virtual void OnMouseMoved(const ChromeViews::MouseEvent& event);
virtual bool OnMousePressed(const ChromeViews::MouseEvent& event);
@@ -139,7 +139,7 @@
// Sets |size| with the size of the Save and Discard buttons (they have the
// same size).
- void GetButtonSize(CSize* size);
+ gfx::Size GetButtonSize();
// 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
@@ -228,7 +228,7 @@
bool dangerous_download_label_sized_;
// The size of the buttons. Cached so animation works when hidden.
- CSize cached_button_size_;
+ gfx::Size cached_button_size_;
DISALLOW_EVIL_CONSTRUCTORS(DownloadItemView);
};

Powered by Google App Engine
This is Rietveld 408576698