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/browser/debugger/debugger_view.cc | 5 ++--- chrome/browser/debugger/debugger_view.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'chrome/browser/debugger') diff --git a/chrome/browser/debugger/debugger_view.cc b/chrome/browser/debugger/debugger_view.cc index 494a23f..34b4de5 100644 --- a/chrome/browser/debugger/debugger_view.cc +++ b/chrome/browser/debugger/debugger_view.cc @@ -38,9 +38,8 @@ DebuggerView::DebuggerView() : output_ready_(false) { DebuggerView::~DebuggerView() { } -void DebuggerView::GetPreferredSize(CSize* out) { - out->cx = 700; - out->cy = 400; +gfx::Size DebuggerView::GetPreferredSize() { + return gfx::Size(700, 400); } void DebuggerView::Layout() { diff --git a/chrome/browser/debugger/debugger_view.h b/chrome/browser/debugger/debugger_view.h index 78931b8..ecb9e7a 100644 --- a/chrome/browser/debugger/debugger_view.h +++ b/chrome/browser/debugger/debugger_view.h @@ -47,7 +47,7 @@ class DebuggerView : public ChromeViews::View, virtual std::string GetClassName() const { return "DebuggerView"; } - virtual void GetPreferredSize(CSize* out); + virtual gfx::Size GetPreferredSize(); virtual void Layout(); virtual void Paint(ChromeCanvas* canvas); virtual void DidChangeBounds(const CRect& previous, const CRect& current); -- cgit v1.1