| 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/border.h" | 5 #include "ui/views/border.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/gfx/canvas.h" | 8 #include "ui/gfx/canvas.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 // A simple border with a fixed thickness and single color. | 14 // A simple border with a fixed thickness and single color. |
| 15 class SolidBorder : public Border { | 15 class SolidBorder : public Border { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 Border* Border::CreateSolidBorder(int thickness, SkColor color) { | 83 Border* Border::CreateSolidBorder(int thickness, SkColor color) { |
| 84 return new SolidBorder(thickness, color); | 84 return new SolidBorder(thickness, color); |
| 85 } | 85 } |
| 86 | 86 |
| 87 // static | 87 // static |
| 88 Border* Border::CreateEmptyBorder(int top, int left, int bottom, int right) { | 88 Border* Border::CreateEmptyBorder(int top, int left, int bottom, int right) { |
| 89 return new EmptyBorder(top, left, bottom, right); | 89 return new EmptyBorder(top, left, bottom, right); |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace views | 92 } // namespace views |
| OLD | NEW |