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 "ui/views/rendering/border.h" | 5 #include "ui/views/rendering/border.h" |
6 | 6 |
7 #include "gfx/canvas.h" | 7 #include "ui/gfx/canvas.h" |
8 #include "ui/views/view.h" | 8 #include "ui/views/view.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 | 11 |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 class SolidColorBorder : public Border { | 14 class SolidColorBorder : public Border { |
15 public: | 15 public: |
16 SolidColorBorder(int thickness, SkColor color) : color_(color) { | 16 SolidColorBorder(int thickness, SkColor color) : color_(color) { |
17 set_insets(gfx::Insets(thickness, thickness, thickness, thickness)); | 17 set_insets(gfx::Insets(thickness, thickness, thickness, thickness)); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 | 61 |
62 //////////////////////////////////////////////////////////////////////////////// | 62 //////////////////////////////////////////////////////////////////////////////// |
63 // Border, private: | 63 // Border, private: |
64 | 64 |
65 Border::Border() { | 65 Border::Border() { |
66 } | 66 } |
67 | 67 |
68 } // namespace ui | 68 } // namespace ui |
69 | 69 |
OLD | NEW |