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/system/power/power_status_view.h" | 5 #include "ash/system/power/power_status_view.h" |
6 | 6 |
7 #include "ash/strings/grit/ash_strings.h" | 7 #include "ash/strings/grit/ash_strings.h" |
8 #include "ash/system/power/tray_power.h" | 8 #include "ash/system/power/tray_power.h" |
9 #include "ash/system/tray/fixed_sized_image_view.h" | |
10 #include "ash/system/tray/tray_constants.h" | 9 #include "ash/system/tray/tray_constants.h" |
11 #include "ash/system/tray/tray_popup_item_style.h" | 10 #include "ash/system/tray/tray_popup_item_style.h" |
12 #include "ash/system/tray/tray_popup_utils.h" | 11 #include "ash/system/tray/tray_popup_utils.h" |
13 #include "base/i18n/number_formatting.h" | 12 #include "base/i18n/number_formatting.h" |
14 #include "base/i18n/time_formatting.h" | 13 #include "base/i18n/time_formatting.h" |
15 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
16 #include "ui/accessibility/ax_node_data.h" | 15 #include "ui/accessibility/ax_node_data.h" |
17 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
18 #include "ui/native_theme/native_theme.h" | 17 #include "ui/native_theme/native_theme.h" |
19 #include "ui/views/controls/image_view.h" | 18 #include "ui/views/controls/image_view.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 time_status_label_->SetX(separator_label_->bounds().right() + 1); | 116 time_status_label_->SetX(separator_label_->bounds().right() + 1); |
118 } | 117 } |
119 } | 118 } |
120 | 119 |
121 void PowerStatusView::GetAccessibleNodeData(ui::AXNodeData* node_data) { | 120 void PowerStatusView::GetAccessibleNodeData(ui::AXNodeData* node_data) { |
122 node_data->role = ui::AX_ROLE_LABEL_TEXT; | 121 node_data->role = ui::AX_ROLE_LABEL_TEXT; |
123 node_data->SetName(accessible_name_); | 122 node_data->SetName(accessible_name_); |
124 } | 123 } |
125 | 124 |
126 } // namespace ash | 125 } // namespace ash |
OLD | NEW |