Index: chrome/views/native_button.cc |
=================================================================== |
--- chrome/views/native_button.cc (revision 3391) |
+++ chrome/views/native_button.cc (working copy) |
@@ -33,7 +33,7 @@ |
padding_ = size; |
} |
-void NativeButton::GetPreferredSize(CSize *out) { |
+gfx::Size NativeButton::GetPreferredSize() { |
HWND hwnd = GetNativeControlHWND(); |
if (hwnd) { |
SIZE sz = {0, 0}; |
@@ -54,8 +54,9 @@ |
sz.cy = std::max(static_cast<int>(sz.cy), |
font_.vertical_dlus_to_pixels(min_dlu_size_.height())); |
} |
- *out = sz; |
+ return gfx::Size(sz.cx, sz.cy); |
} |
+ return gfx::Size(); |
} |
void NativeButton::SetLabel(const std::wstring& l) { |