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

Unified Diff: chrome/views/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/view.h
===================================================================
--- chrome/views/view.h (revision 3391)
+++ chrome/views/view.h (working copy)
@@ -158,6 +158,7 @@
// Set the bounds in the parent's coordinate system.
void SetBounds(const CRect& bounds);
+ void SetBounds(const gfx::Point& origin, const gfx::Size& size);
void SetBounds(int x, int y, int width, int height);
void SetX(int x) { SetBounds(x, y(), width(), height()); }
void SetY(int y) { SetBounds(x(), y, width(), height()); }
@@ -212,14 +213,14 @@
void GetPosition(CPoint* out) const;
// Get the size the View would like to be, if enough space were available.
- virtual void GetPreferredSize(CSize* out);
+ virtual gfx::Size GetPreferredSize();
// Convenience method that sizes this view to its preferred size.
void SizeToPreferredSize();
// Gets the minimum size of the view. View's implementation invokes
// GetPreferredSize.
- virtual void GetMinimumSize(CSize* out);
+ virtual gfx::Size GetMinimumSize();
// Return the height necessary to display this view with the provided width.
// View's implementation returns the value from getPreferredSize.cy.

Powered by Google App Engine
This is Rietveld 408576698