| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/controls/focusable_border.h" | 5 #include "ui/views/controls/focusable_border.h" |
| 6 | 6 |
| 7 #include "ui/gfx/canvas.h" | 7 #include "ui/gfx/canvas.h" |
| 8 #include "ui/gfx/insets.h" | 8 #include "ui/gfx/geometry/insets.h" |
| 9 #include "ui/gfx/skia_util.h" | 9 #include "ui/gfx/skia_util.h" |
| 10 #include "ui/native_theme/native_theme.h" | 10 #include "ui/native_theme/native_theme.h" |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 // Define the size of the insets | 14 // Define the size of the insets |
| 15 const int kTopInsetSize = 4; | 15 const int kTopInsetSize = 4; |
| 16 const int kLeftInsetSize = 4; | 16 const int kLeftInsetSize = 4; |
| 17 const int kBottomInsetSize = 4; | 17 const int kBottomInsetSize = 4; |
| 18 const int kRightInsetSize = 4; | 18 const int kRightInsetSize = 4; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 gfx::Size FocusableBorder::GetMinimumSize() const { | 62 gfx::Size FocusableBorder::GetMinimumSize() const { |
| 63 return gfx::Size(); | 63 return gfx::Size(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void FocusableBorder::SetInsets(int top, int left, int bottom, int right) { | 66 void FocusableBorder::SetInsets(int top, int left, int bottom, int right) { |
| 67 insets_.Set(top, left, bottom, right); | 67 insets_.Set(top, left, bottom, right); |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace views | 70 } // namespace views |
| OLD | NEW |