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/radio_button.h" | 5 #include "ui/views/controls/button/radio_button.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/accessibility/ax_enums.h" |
8 #include "ui/accessibility/ax_view_state.h" | 9 #include "ui/accessibility/ax_view_state.h" |
9 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
10 #include "ui/events/event_utils.h" | 11 #include "ui/events/event_utils.h" |
11 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
12 #include "ui/gfx/paint_vector_icon.h" | 13 #include "ui/gfx/paint_vector_icon.h" |
13 #include "ui/gfx/vector_icons_public.h" | 14 #include "ui/gfx/vector_icons_public.h" |
14 #include "ui/resources/grit/ui_resources.h" | 15 #include "ui/resources/grit/ui_resources.h" |
15 #include "ui/views/resources/grit/views_resources.h" | 16 #include "ui/views/resources/grit/views_resources.h" |
16 #include "ui/views/widget/widget.h" | 17 #include "ui/views/widget/widget.h" |
17 | 18 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 159 |
159 return gfx::CreateVectorIcon( | 160 return gfx::CreateVectorIcon( |
160 checked() ? gfx::VectorIconId::RADIO_BUTTON_ACTIVE | 161 checked() ? gfx::VectorIconId::RADIO_BUTTON_ACTIVE |
161 : gfx::VectorIconId::RADIO_BUTTON_NORMAL, | 162 : gfx::VectorIconId::RADIO_BUTTON_NORMAL, |
162 16, GetNativeTheme()->GetSystemColor( | 163 16, GetNativeTheme()->GetSystemColor( |
163 checked() ? ui::NativeTheme::kColorId_FocusedBorderColor | 164 checked() ? ui::NativeTheme::kColorId_FocusedBorderColor |
164 : ui::NativeTheme::kColorId_UnfocusedBorderColor)); | 165 : ui::NativeTheme::kColorId_UnfocusedBorderColor)); |
165 } | 166 } |
166 | 167 |
167 } // namespace views | 168 } // namespace views |
OLD | NEW |