| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/mus/system_tray_delegate_mus.h" | 5 #include "ash/mus/system_tray_delegate_mus.h" |
| 6 | 6 |
| 7 #include "ash/common/system/tray/system_tray_notifier.h" | 7 #include "ash/common/system/tray/system_tray_notifier.h" |
| 8 #include "ash/common/wm_shell.h" | 8 #include "ash/common/wm_shell.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 const std::string& guid) { | 72 const std::string& guid) { |
| 73 // http://crbug.com/647412 | 73 // http://crbug.com/647412 |
| 74 NOTIMPLEMENTED(); | 74 NOTIMPLEMENTED(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void SystemTrayDelegateMus::ShowDisplaySettings() { | 77 void SystemTrayDelegateMus::ShowDisplaySettings() { |
| 78 ConnectToSystemTrayClient()->ShowDisplaySettings(); | 78 ConnectToSystemTrayClient()->ShowDisplaySettings(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void SystemTrayDelegateMus::ShowPowerSettings() { | 81 void SystemTrayDelegateMus::ShowPowerSettings() { |
| 82 // http://crbug.com/647412 | 82 ConnectToSystemTrayClient()->ShowPowerSettings(); |
| 83 NOTIMPLEMENTED(); | |
| 84 } | 83 } |
| 85 | 84 |
| 86 void SystemTrayDelegateMus::ShowChromeSlow() { | 85 void SystemTrayDelegateMus::ShowChromeSlow() { |
| 87 ConnectToSystemTrayClient()->ShowChromeSlow(); | 86 ConnectToSystemTrayClient()->ShowChromeSlow(); |
| 88 } | 87 } |
| 89 | 88 |
| 90 void SystemTrayDelegateMus::ShowIMESettings() { | 89 void SystemTrayDelegateMus::ShowIMESettings() { |
| 91 ConnectToSystemTrayClient()->ShowIMESettings(); | 90 ConnectToSystemTrayClient()->ShowIMESettings(); |
| 92 } | 91 } |
| 93 | 92 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 125 |
| 127 //////////////////////////////////////////////////////////////////////////////// | 126 //////////////////////////////////////////////////////////////////////////////// |
| 128 // mojom::SystemTray: | 127 // mojom::SystemTray: |
| 129 | 128 |
| 130 void SystemTrayDelegateMus::SetUse24HourClock(bool use_24_hour) { | 129 void SystemTrayDelegateMus::SetUse24HourClock(bool use_24_hour) { |
| 131 hour_clock_type_ = use_24_hour ? base::k24HourClock : base::k12HourClock; | 130 hour_clock_type_ = use_24_hour ? base::k24HourClock : base::k12HourClock; |
| 132 WmShell::Get()->system_tray_notifier()->NotifyDateFormatChanged(); | 131 WmShell::Get()->system_tray_notifier()->NotifyDateFormatChanged(); |
| 133 } | 132 } |
| 134 | 133 |
| 135 } // namespace ash | 134 } // namespace ash |
| OLD | NEW |