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

Side by Side Diff: chrome/views/separator.cc

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/views/separator.h" 5 #include "chrome/views/separator.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/views/hwnd_view.h" 8 #include "chrome/views/hwnd_view.h"
9 9
10 namespace ChromeViews { 10 namespace ChromeViews {
(...skipping 13 matching lines...) Expand all
24 return ::CreateWindowEx(GetAdditionalExStyle(), L"STATIC", L"", 24 return ::CreateWindowEx(GetAdditionalExStyle(), L"STATIC", L"",
25 WS_CHILD | SS_ETCHEDHORZ | SS_SUNKEN, 25 WS_CHILD | SS_ETCHEDHORZ | SS_SUNKEN,
26 0, 0, width(), height(), 26 0, 0, width(), height(),
27 parent_container, NULL, NULL, NULL); 27 parent_container, NULL, NULL, NULL);
28 } 28 }
29 29
30 LRESULT Separator::OnNotify(int w_param, LPNMHDR l_param) { 30 LRESULT Separator::OnNotify(int w_param, LPNMHDR l_param) {
31 return 0; 31 return 0;
32 } 32 }
33 33
34 void Separator::GetPreferredSize(CSize* out) { 34 gfx::Size Separator::GetPreferredSize() {
35 DCHECK(out); 35 return gfx::Size(width(), fixed_height_);
36 out->cx = width();
37 out->cy = fixed_height_;
38 } 36 }
39 37
40 } 38 }
41 39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698