| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_delegate_chromeos.h" | 5 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 void SystemTrayDelegateChromeOS::OnAccessibilityModeChanged( | 1124 void SystemTrayDelegateChromeOS::OnAccessibilityModeChanged( |
| 1125 ash::AccessibilityNotificationVisibility notify) { | 1125 ash::AccessibilityNotificationVisibility notify) { |
| 1126 GetWmSystemTrayNotifier()->NotifyAccessibilityModeChanged(notify); | 1126 GetWmSystemTrayNotifier()->NotifyAccessibilityModeChanged(notify); |
| 1127 } | 1127 } |
| 1128 | 1128 |
| 1129 void SystemTrayDelegateChromeOS::UpdatePerformanceTracing() { | 1129 void SystemTrayDelegateChromeOS::UpdatePerformanceTracing() { |
| 1130 if (!user_pref_registrar_) | 1130 if (!user_pref_registrar_) |
| 1131 return; | 1131 return; |
| 1132 bool value = user_pref_registrar_->prefs()->GetBoolean( | 1132 bool value = user_pref_registrar_->prefs()->GetBoolean( |
| 1133 prefs::kPerformanceTracingEnabled); | 1133 prefs::kPerformanceTracingEnabled); |
| 1134 GetSystemTrayNotifier()->NotifyTracingModeChanged(value); | 1134 GetWmSystemTrayNotifier()->NotifyTracingModeChanged(value); |
| 1135 } | 1135 } |
| 1136 | 1136 |
| 1137 // Overridden from InputMethodManager::Observer. | 1137 // Overridden from InputMethodManager::Observer. |
| 1138 void SystemTrayDelegateChromeOS::InputMethodChanged( | 1138 void SystemTrayDelegateChromeOS::InputMethodChanged( |
| 1139 input_method::InputMethodManager* manager, | 1139 input_method::InputMethodManager* manager, |
| 1140 Profile* /* profile */, | 1140 Profile* /* profile */, |
| 1141 bool show_message) { | 1141 bool show_message) { |
| 1142 GetWmSystemTrayNotifier()->NotifyRefreshIME(); | 1142 GetWmSystemTrayNotifier()->NotifyRefreshIME(); |
| 1143 } | 1143 } |
| 1144 | 1144 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1332 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while " | 1332 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while " |
| 1333 << "ENABLE_SUPERVISED_USERS undefined."; | 1333 << "ENABLE_SUPERVISED_USERS undefined."; |
| 1334 return base::string16(); | 1334 return base::string16(); |
| 1335 } | 1335 } |
| 1336 | 1336 |
| 1337 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { | 1337 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { |
| 1338 return new SystemTrayDelegateChromeOS(); | 1338 return new SystemTrayDelegateChromeOS(); |
| 1339 } | 1339 } |
| 1340 | 1340 |
| 1341 } // namespace chromeos | 1341 } // namespace chromeos |
| OLD | NEW |