| 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 "chrome/browser/ui/ash/system_tray_client.h" | 5 #include "chrome/browser/ui/ash/system_tray_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/browser_process_platform_part.h" | 10 #include "chrome/browser/browser_process_platform_part.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 | 66 |
| 67 void SystemTrayClient::ShowDateSettings() { | 67 void SystemTrayClient::ShowDateSettings() { |
| 68 SystemTrayCommon::ShowDateSettings(); | 68 SystemTrayCommon::ShowDateSettings(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void SystemTrayClient::ShowDisplaySettings() { | 71 void SystemTrayClient::ShowDisplaySettings() { |
| 72 SystemTrayCommon::ShowDisplaySettings(); | 72 SystemTrayCommon::ShowDisplaySettings(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void SystemTrayClient::ShowPowerSettings() { |
| 76 SystemTrayCommon::ShowPowerSettings(); |
| 77 } |
| 78 |
| 75 void SystemTrayClient::ShowChromeSlow() { | 79 void SystemTrayClient::ShowChromeSlow() { |
| 76 SystemTrayCommon::ShowChromeSlow(); | 80 SystemTrayCommon::ShowChromeSlow(); |
| 77 } | 81 } |
| 78 | 82 |
| 79 void SystemTrayClient::ShowIMESettings() { | 83 void SystemTrayClient::ShowIMESettings() { |
| 80 SystemTrayCommon::ShowIMESettings(); | 84 SystemTrayCommon::ShowIMESettings(); |
| 81 } | 85 } |
| 82 | 86 |
| 83 void SystemTrayClient::ShowHelp() { | 87 void SystemTrayClient::ShowHelp() { |
| 84 SystemTrayCommon::ShowHelp(); | 88 SystemTrayCommon::ShowHelp(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 109 } | 113 } |
| 110 | 114 |
| 111 //////////////////////////////////////////////////////////////////////////////// | 115 //////////////////////////////////////////////////////////////////////////////// |
| 112 // chromeos::system::SystemClockObserver: | 116 // chromeos::system::SystemClockObserver: |
| 113 | 117 |
| 114 void SystemTrayClient::OnSystemClockChanged( | 118 void SystemTrayClient::OnSystemClockChanged( |
| 115 chromeos::system::SystemClock* clock) { | 119 chromeos::system::SystemClock* clock) { |
| 116 ConnectToSystemTray(); | 120 ConnectToSystemTray(); |
| 117 system_tray_->SetUse24HourClock(clock->ShouldUse24HourClock()); | 121 system_tray_->SetUse24HourClock(clock->ShouldUse24HourClock()); |
| 118 } | 122 } |
| OLD | NEW |