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/border.h" | 5 #include "views/border.h" |
6 | 6 |
7 #include "app/gfx/canvas.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "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 { |
16 public: | 16 public: |
17 SolidBorder(int thickness, SkColor color); | 17 SolidBorder(int thickness, SkColor color); |
18 | 18 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 Border* Border::CreateSolidBorder(int thickness, SkColor color) { | 97 Border* Border::CreateSolidBorder(int thickness, SkColor color) { |
98 return new SolidBorder(thickness, color); | 98 return new SolidBorder(thickness, color); |
99 } | 99 } |
100 | 100 |
101 // static | 101 // static |
102 Border* Border::CreateEmptyBorder(int top, int left, int bottom, int right) { | 102 Border* Border::CreateEmptyBorder(int top, int left, int bottom, int right) { |
103 return new EmptyBorder(top, left, bottom, right); | 103 return new EmptyBorder(top, left, bottom, right); |
104 } | 104 } |
105 | 105 |
106 } // namespace views | 106 } // namespace views |
OLD | NEW |