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 "ash/common/system/chromeos/power/power_status_view.h" | 5 #include "ash/system/power/power_status_view.h" |
6 | 6 |
7 #include "ash/common/material_design/material_design_controller.h" | 7 #include "ash/common/material_design/material_design_controller.h" |
8 #include "ash/common/system/chromeos/power/power_status.h" | |
9 #include "ash/common/system/chromeos/power/tray_power.h" | |
10 #include "ash/common/system/tray/fixed_sized_image_view.h" | |
11 #include "ash/common/system/tray/tray_constants.h" | |
12 #include "ash/common/system/tray/tray_popup_item_style.h" | |
13 #include "ash/common/system/tray/tray_popup_utils.h" | |
14 #include "ash/strings/grit/ash_strings.h" | 8 #include "ash/strings/grit/ash_strings.h" |
| 9 #include "ash/system/power/power_status.h" |
| 10 #include "ash/system/power/tray_power.h" |
| 11 #include "ash/system/tray/fixed_sized_image_view.h" |
| 12 #include "ash/system/tray/tray_constants.h" |
| 13 #include "ash/system/tray/tray_popup_item_style.h" |
| 14 #include "ash/system/tray/tray_popup_utils.h" |
15 #include "base/i18n/number_formatting.h" | 15 #include "base/i18n/number_formatting.h" |
16 #include "base/i18n/time_formatting.h" | 16 #include "base/i18n/time_formatting.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "ui/accessibility/ax_node_data.h" | 18 #include "ui/accessibility/ax_node_data.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 #include "ui/native_theme/native_theme.h" | 20 #include "ui/native_theme/native_theme.h" |
21 #include "ui/views/controls/image_view.h" | 21 #include "ui/views/controls/image_view.h" |
22 #include "ui/views/controls/label.h" | 22 #include "ui/views/controls/label.h" |
23 #include "ui/views/layout/box_layout.h" | 23 #include "ui/views/layout/box_layout.h" |
24 #include "ui/views/layout/grid_layout.h" | 24 #include "ui/views/layout/grid_layout.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 void PowerStatusView::GetAccessibleNodeData(ui::AXNodeData* node_data) { | 168 void PowerStatusView::GetAccessibleNodeData(ui::AXNodeData* node_data) { |
169 if (!MaterialDesignController::IsSystemTrayMenuMaterial()) | 169 if (!MaterialDesignController::IsSystemTrayMenuMaterial()) |
170 return; | 170 return; |
171 | 171 |
172 node_data->role = ui::AX_ROLE_LABEL_TEXT; | 172 node_data->role = ui::AX_ROLE_LABEL_TEXT; |
173 node_data->SetName(accessible_name_); | 173 node_data->SetName(accessible_name_); |
174 } | 174 } |
175 | 175 |
176 } // namespace ash | 176 } // namespace ash |
OLD | NEW |