| 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/dbus/speech_synthesizer_client.h" | 5 #include "chrome/browser/chromeos/dbus/speech_synthesizer_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/browser/chromeos/system/runtime_environment.h" | 9 #include "chrome/browser/chromeos/system/runtime_environment.h" |
| 10 #include "dbus/bus.h" | 10 #include "dbus/bus.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 virtual void SetSpeakProperties(const std::string& props) OVERRIDE {} | 128 virtual void SetSpeakProperties(const std::string& props) OVERRIDE {} |
| 129 virtual void StopSpeaking() OVERRIDE {} | 129 virtual void StopSpeaking() OVERRIDE {} |
| 130 virtual void IsSpeaking(IsSpeakingCallback callback) OVERRIDE { | 130 virtual void IsSpeaking(IsSpeakingCallback callback) OVERRIDE { |
| 131 callback.Run(false); | 131 callback.Run(false); |
| 132 } | 132 } |
| 133 | 133 |
| 134 private: | 134 private: |
| 135 DISALLOW_COPY_AND_ASSIGN(SpeechSynthesizerClientStubImpl); | 135 DISALLOW_COPY_AND_ASSIGN(SpeechSynthesizerClientStubImpl); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 SpeechSynthesizerClient::SpeechSynthesizerClient() { |
| 139 } |
| 140 |
| 141 SpeechSynthesizerClient::~SpeechSynthesizerClient() { |
| 142 } |
| 143 |
| 138 // static | 144 // static |
| 139 SpeechSynthesizerClient* SpeechSynthesizerClient::Create(dbus::Bus* bus) { | 145 SpeechSynthesizerClient* SpeechSynthesizerClient::Create(dbus::Bus* bus) { |
| 140 if (system::runtime_environment::IsRunningOnChromeOS()) { | 146 if (system::runtime_environment::IsRunningOnChromeOS()) { |
| 141 return new SpeechSynthesizerClientImpl(bus); | 147 return new SpeechSynthesizerClientImpl(bus); |
| 142 } else { | 148 } else { |
| 143 return new SpeechSynthesizerClientStubImpl(); | 149 return new SpeechSynthesizerClientStubImpl(); |
| 144 } | 150 } |
| 145 } | 151 } |
| 146 | 152 |
| 147 } // namespace chromeos | 153 } // namespace chromeos |
| OLD | NEW |