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/button/checkbox.h" | 5 #include "ui/views/controls/button/checkbox.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "ui/accessibility/ax_view_state.h" | 11 #include "ui/accessibility/ax_view_state.h" |
10 #include "ui/base/resource/resource_bundle.h" | 12 #include "ui/base/resource/resource_bundle.h" |
11 #include "ui/resources/grit/ui_resources.h" | 13 #include "ui/resources/grit/ui_resources.h" |
12 #include "ui/views/controls/button/label_button_border.h" | 14 #include "ui/views/controls/button/label_button_border.h" |
13 #include "ui/views/painter.h" | 15 #include "ui/views/painter.h" |
14 #include "ui/views/resources/grit/views_resources.h" | 16 #include "ui/views/resources/grit/views_resources.h" |
15 | 17 |
16 namespace views { | 18 namespace views { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 ui::NativeTheme::Part Checkbox::GetThemePart() const { | 141 ui::NativeTheme::Part Checkbox::GetThemePart() const { |
140 return ui::NativeTheme::kCheckbox; | 142 return ui::NativeTheme::kCheckbox; |
141 } | 143 } |
142 | 144 |
143 void Checkbox::GetExtraParams(ui::NativeTheme::ExtraParams* params) const { | 145 void Checkbox::GetExtraParams(ui::NativeTheme::ExtraParams* params) const { |
144 LabelButton::GetExtraParams(params); | 146 LabelButton::GetExtraParams(params); |
145 params->button.checked = checked_; | 147 params->button.checked = checked_; |
146 } | 148 } |
147 | 149 |
148 } // namespace views | 150 } // namespace views |
OLD | NEW |