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" | |
8 #include "chrome/views/hwnd_view.h" | 7 #include "chrome/views/hwnd_view.h" |
9 | 8 |
10 namespace views { | 9 namespace views { |
11 | 10 |
12 static const int kSeparatorSize = 2; | 11 static const int kSeparatorSize = 2; |
13 | 12 |
14 Separator::Separator() { | 13 Separator::Separator() { |
15 SetFocusable(false); | 14 SetFocusable(false); |
16 } | 15 } |
17 | 16 |
(...skipping 11 matching lines...) Expand all Loading... |
29 | 28 |
30 LRESULT Separator::OnNotify(int w_param, LPNMHDR l_param) { | 29 LRESULT Separator::OnNotify(int w_param, LPNMHDR l_param) { |
31 return 0; | 30 return 0; |
32 } | 31 } |
33 | 32 |
34 gfx::Size Separator::GetPreferredSize() { | 33 gfx::Size Separator::GetPreferredSize() { |
35 return gfx::Size(width(), fixed_height_); | 34 return gfx::Size(width(), fixed_height_); |
36 } | 35 } |
37 | 36 |
38 } // namespace views | 37 } // namespace views |
OLD | NEW |