| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/accessibility_util.h" | 5 #include "chrome/browser/chromeos/accessibility_util.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 10 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 EnableAccessibility(accessibility_enabled, login_web_ui); | 150 EnableAccessibility(accessibility_enabled, login_web_ui); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 void Speak(const char* speak_str, bool queue, bool interruptible) { | 153 void Speak(const char* speak_str, bool queue, bool interruptible) { |
| 154 if (queue || !interruptible) { | 154 if (queue || !interruptible) { |
| 155 std::string props = ""; | 155 std::string props = ""; |
| 156 props.append("enqueue="); | 156 props.append("enqueue="); |
| 157 props.append(queue ? "1;" : "0;"); | 157 props.append(queue ? "1;" : "0;"); |
| 158 props.append("interruptible="); | 158 props.append("interruptible="); |
| 159 props.append(interruptible ? "1;" : "0;"); | 159 props.append(interruptible ? "1;" : "0;"); |
| 160 chromeos::DBusThreadManager::Get()->speech_synthesizer_client()-> | 160 chromeos::DBusThreadManager::Get()->GetSpeechSynthesizerClient()-> |
| 161 SetSpeakProperties(props); | 161 SetSpeakProperties(props); |
| 162 } | 162 } |
| 163 chromeos::DBusThreadManager::Get()->speech_synthesizer_client()-> | 163 chromeos::DBusThreadManager::Get()->GetSpeechSynthesizerClient()-> |
| 164 Speak(speak_str); | 164 Speak(speak_str); |
| 165 } | 165 } |
| 166 | 166 |
| 167 | 167 |
| 168 } // namespace accessibility | 168 } // namespace accessibility |
| 169 } // namespace chromeos | 169 } // namespace chromeos |
| OLD | NEW |