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

Unified Diff: chrome/views/table_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/views/table_view.h
===================================================================
--- chrome/views/table_view.h (revision 3391)
+++ chrome/views/table_view.h (working copy)
@@ -405,8 +405,8 @@
// Sometimes we may want to size the TableView to a specific width and
// height.
- void SetPreferredSize(const CSize& preferred_size);
- virtual void GetPreferredSize(CSize* out);
+ virtual gfx::Size GetPreferredSize();
+ void set_preferred_size(const gfx::Size& size) { preferred_size_ = size; }
// Is the table sorted?
bool is_sorted() const { return !sort_descriptors_.empty(); }
@@ -627,7 +627,7 @@
HFONT custom_cell_font_;
// The preferred size of the table view.
- CSize preferred_size_;
+ gfx::Size preferred_size_;
// The offset from the top of the client area to the start of the content.
int content_offset_;

Powered by Google App Engine
This is Rietveld 408576698