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