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

Unified Diff: chrome/views/label.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/views/label.h
===================================================================
--- chrome/views/label.h (revision 3391)
+++ chrome/views/label.h (working copy)
@@ -39,11 +39,11 @@
virtual ~Label();
// Overridden to compute the size required to display this label
- virtual void GetPreferredSize(CSize* out);
+ virtual gfx::Size GetPreferredSize();
// Return the height necessary to display this label with the provided width.
// This method is used to layout multi-line labels. It is equivalent to
- // GetPreferredSize().cy if the receiver is not multi-line
+ // GetPreferredSize().height() if the receiver is not multi-line
virtual int GetHeightForWidth(int w);
// Returns chrome/views/Label.
@@ -154,13 +154,13 @@
gfx::Rect GetTextBounds();
int ComputeMultiLineFlags();
- void GetTextSize(CSize* out);
+ gfx::Size GetTextSize();
void Init(const std::wstring& text, const ChromeFont& font);
std::wstring text_;
GURL url_;
ChromeFont font_;
SkColor color_;
- CSize text_size_;
+ gfx::Size text_size_;
bool text_size_valid_;
bool is_multi_line_;
bool url_set_;

Powered by Google App Engine
This is Rietveld 408576698