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 "chrome/browser/chromeos/system/ash_system_tray_delegate.h" | 5 #include "chrome/browser/chromeos/system/ash_system_tray_delegate.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
9 #include "ash/system/audio/audio_observer.h" | 9 #include "ash/system/audio/audio_observer.h" |
10 #include "ash/system/bluetooth/bluetooth_observer.h" | 10 #include "ash/system/bluetooth/bluetooth_observer.h" |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 if (pref == prefs::kUse24HourClock) { | 1050 if (pref == prefs::kUse24HourClock) { |
1051 UpdateClockType(service); | 1051 UpdateClockType(service); |
1052 } else if (pref == prefs::kLanguageXkbRemapSearchKeyTo) { | 1052 } else if (pref == prefs::kLanguageXkbRemapSearchKeyTo) { |
1053 search_key_mapped_to_ = | 1053 search_key_mapped_to_ = |
1054 service->GetInteger(prefs::kLanguageXkbRemapSearchKeyTo); | 1054 service->GetInteger(prefs::kLanguageXkbRemapSearchKeyTo); |
1055 } else if (pref == prefs::kSpokenFeedbackEnabled) { | 1055 } else if (pref == prefs::kSpokenFeedbackEnabled) { |
1056 ash::AccessibilityObserver* observer = | 1056 ash::AccessibilityObserver* observer = |
1057 tray_->accessibility_observer(); | 1057 tray_->accessibility_observer(); |
1058 if (observer) { | 1058 if (observer) { |
1059 observer->OnAccessibilityModeChanged( | 1059 observer->OnAccessibilityModeChanged( |
1060 service->GetBoolean(prefs::kSpokenFeedbackEnabled), | 1060 service->GetBoolean(prefs::kSpokenFeedbackEnabled)); |
1061 IDS_STATUSBAR_ACCESSIBILITY_TURNED_ON_BUBBLE); | |
1062 } | 1061 } |
1063 } else { | 1062 } else { |
1064 NOTREACHED(); | 1063 NOTREACHED(); |
1065 } | 1064 } |
1066 break; | 1065 break; |
1067 } | 1066 } |
1068 case chrome::NOTIFICATION_PROFILE_CREATED: { | 1067 case chrome::NOTIFICATION_PROFILE_CREATED: { |
1069 SetProfile(content::Source<Profile>(source).ptr()); | 1068 SetProfile(content::Source<Profile>(source).ptr()); |
1070 registrar_.Remove(this, | 1069 registrar_.Remove(this, |
1071 chrome::NOTIFICATION_PROFILE_CREATED, | 1070 chrome::NOTIFICATION_PROFILE_CREATED, |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegate); | 1257 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegate); |
1259 }; | 1258 }; |
1260 | 1259 |
1261 } // namespace | 1260 } // namespace |
1262 | 1261 |
1263 ash::SystemTrayDelegate* CreateSystemTrayDelegate(ash::SystemTray* tray) { | 1262 ash::SystemTrayDelegate* CreateSystemTrayDelegate(ash::SystemTray* tray) { |
1264 return new chromeos::SystemTrayDelegate(tray); | 1263 return new chromeos::SystemTrayDelegate(tray); |
1265 } | 1264 } |
1266 | 1265 |
1267 } // namespace chromeos | 1266 } // namespace chromeos |
OLD | NEW |