From 154f8bcac65142d7ae6733204c15ae52cfa320c6 Mon Sep 17 00:00:00 2001 From: "beng@google.com" Date: Wed, 15 Oct 2008 18:02:30 +0000 Subject: Convert GetPreferredSize from: void GetPreferredSize(CSize* out); to: gfx::Size GetPreferredSize(); .. and update some other places to use gfx::Size as well. http://crbug.com/2186 Review URL: http://codereview.chromium.org/7344 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3400 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/views/layout_manager.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chrome/views/layout_manager.h') diff --git a/chrome/views/layout_manager.h b/chrome/views/layout_manager.h index d153110..bf55cad 100644 --- a/chrome/views/layout_manager.h +++ b/chrome/views/layout_manager.h @@ -9,6 +9,10 @@ #include #include +namespace gfx { +class Size; +} + namespace ChromeViews { class View; @@ -40,7 +44,7 @@ class LayoutManager { // Return the preferred size which is the size required to give each // children their respective preferred size. - virtual void GetPreferredSize(View* host, CSize* out) = 0; + virtual gfx::Size GetPreferredSize(View* host) = 0; // Returns the preferred height for the specified width. The default // implementation returns the value from GetPreferredSize. -- cgit v1.1