OLD | NEW |
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 Loading... |
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 |
OLD | NEW |