| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/date/date_default_view.h" | 5 #include "ash/system/date/date_default_view.h" |
| 6 | 6 |
| 7 #include "ash/common/session/session_state_delegate.h" | 7 #include "ash/common/session/session_state_delegate.h" |
| 8 #include "ash/common/system/tray/special_popup_row.h" |
| 8 #include "ash/common/system/tray/system_tray_delegate.h" | 9 #include "ash/common/system/tray/system_tray_delegate.h" |
| 9 #include "ash/common/system/tray/tray_constants.h" | 10 #include "ash/common/system/tray/tray_constants.h" |
| 11 #include "ash/common/system/tray/tray_popup_header_button.h" |
| 10 #include "ash/common/wm_shell.h" | 12 #include "ash/common/wm_shell.h" |
| 11 #include "ash/metrics/user_metrics_recorder.h" | 13 #include "ash/metrics/user_metrics_recorder.h" |
| 12 #include "ash/shell.h" | 14 #include "ash/shell.h" |
| 13 #include "ash/system/date/date_view.h" | 15 #include "ash/system/date/date_view.h" |
| 14 #include "ash/system/tray/special_popup_row.h" | |
| 15 #include "ash/system/tray/tray_popup_header_button.h" | |
| 16 #include "ash/wm/lock_state_controller.h" | 16 #include "ash/wm/lock_state_controller.h" |
| 17 #include "base/i18n/rtl.h" | 17 #include "base/i18n/rtl.h" |
| 18 #include "grit/ash_resources.h" | 18 #include "grit/ash_resources.h" |
| 19 #include "grit/ash_strings.h" | 19 #include "grit/ash_strings.h" |
| 20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 #include "ui/views/border.h" | 21 #include "ui/views/border.h" |
| 22 #include "ui/views/controls/button/button.h" | 22 #include "ui/views/controls/button/button.h" |
| 23 #include "ui/views/layout/fill_layout.h" | 23 #include "ui/views/layout/fill_layout.h" |
| 24 #include "ui/views/view.h" | 24 #include "ui/views/view.h" |
| 25 | 25 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 void DateDefaultView::OnShutdownPolicyChanged(bool reboot_on_shutdown) { | 148 void DateDefaultView::OnShutdownPolicyChanged(bool reboot_on_shutdown) { |
| 149 if (!shutdown_button_) | 149 if (!shutdown_button_) |
| 150 return; | 150 return; |
| 151 | 151 |
| 152 shutdown_button_->SetTooltipText(l10n_util::GetStringUTF16( | 152 shutdown_button_->SetTooltipText(l10n_util::GetStringUTF16( |
| 153 reboot_on_shutdown ? IDS_ASH_STATUS_TRAY_REBOOT | 153 reboot_on_shutdown ? IDS_ASH_STATUS_TRAY_REBOOT |
| 154 : IDS_ASH_STATUS_TRAY_SHUTDOWN)); | 154 : IDS_ASH_STATUS_TRAY_SHUTDOWN)); |
| 155 } | 155 } |
| 156 | 156 |
| 157 } // namespace ash | 157 } // namespace ash |
| OLD | NEW |