| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ui/views/controls/separator.h" |
| 6 | 6 |
| 7 #include "ui/base/accessibility/accessible_view_state.h" | 7 #include "ui/base/accessibility/accessible_view_state.h" |
| 8 #include "ui/gfx/canvas.h" | 8 #include "ui/gfx/canvas.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| 11 | 11 |
| 12 // static | 12 // static |
| 13 const char Separator::kViewClassName[] = "views/Separator"; | 13 const char Separator::kViewClassName[] = "views/Separator"; |
| 14 | 14 |
| 15 // The separator height in pixels. | 15 // The separator height in pixels. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 void Separator::Paint(gfx::Canvas* canvas) { | 39 void Separator::Paint(gfx::Canvas* canvas) { |
| 40 canvas->FillRect(kDefaultColor, bounds()); | 40 canvas->FillRect(kDefaultColor, bounds()); |
| 41 } | 41 } |
| 42 | 42 |
| 43 std::string Separator::GetClassName() const { | 43 std::string Separator::GetClassName() const { |
| 44 return kViewClassName; | 44 return kViewClassName; |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace views | 47 } // namespace views |
| OLD | NEW |