| 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 #ifndef UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_BORDER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_BORDER_H_ |
| 6 #define UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_BORDER_H_ | 6 #define UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_BORDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "ui/gfx/geometry/insets.h" | 11 #include "ui/gfx/geometry/insets.h" |
| 12 #include "ui/views/border.h" | 12 #include "ui/views/border.h" |
| 13 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
| 14 #include "ui/views/painter.h" | 14 #include "ui/views/painter.h" |
| 15 | 15 |
| 16 namespace views { | 16 namespace views { |
| 17 | 17 |
| 18 // An empty Border with customizable insets used by a LabelButton. | 18 // An empty Border with customizable insets used by a LabelButton. |
| 19 class VIEWS_EXPORT LabelButtonBorder : public Border { | 19 class VIEWS_EXPORT LabelButtonBorder : public Border { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 private: | 62 private: |
| 63 // The painters used for each unfocused or focused button state. | 63 // The painters used for each unfocused or focused button state. |
| 64 scoped_ptr<Painter> painters_[2][Button::STATE_COUNT]; | 64 scoped_ptr<Painter> painters_[2][Button::STATE_COUNT]; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(LabelButtonAssetBorder); | 66 DISALLOW_COPY_AND_ASSIGN(LabelButtonAssetBorder); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace views | 69 } // namespace views |
| 70 | 70 |
| 71 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_BORDER_H_ | 71 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_BORDER_H_ |
| OLD | NEW |