| 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_CHECKBOX_H_ | 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ |
| 6 #define UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ | 6 #define UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 11 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 12 #include "ui/views/controls/button/label_button.h" | 13 #include "ui/views/controls/button/label_button.h" |
| 13 | 14 |
| 14 namespace views { | 15 namespace views { |
| 15 | 16 |
| 16 // A native themed class representing a checkbox. This class does not use | 17 // A native themed class representing a checkbox. This class does not use |
| 17 // platform specific objects to replicate the native platforms looks and feel. | 18 // platform specific objects to replicate the native platforms looks and feel. |
| 18 class VIEWS_EXPORT Checkbox : public LabelButton { | 19 class VIEWS_EXPORT Checkbox : public LabelButton { |
| 19 public: | 20 public: |
| 20 static const char kViewClassName[]; | 21 static const char kViewClassName[]; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 59 |
| 59 // The images for each button state. | 60 // The images for each button state. |
| 60 gfx::ImageSkia images_[2][2][STATE_COUNT]; | 61 gfx::ImageSkia images_[2][2][STATE_COUNT]; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(Checkbox); | 63 DISALLOW_COPY_AND_ASSIGN(Checkbox); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace views | 66 } // namespace views |
| 66 | 67 |
| 67 #endif // UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ | 68 #endif // UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ |
| OLD | NEW |