OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cros/speech_synthesis_library.h" | 5 #include "chrome/browser/chromeos/cros/speech_synthesis_library.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/browser/chromeos/cros/cros_library.h" | 8 #include "chrome/browser/chromeos/cros/cros_library.h" |
9 #include "cros/chromeos_speech_synthesis.h" | 9 #include "third_party/cros/chromeos_speech_synthesis.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 class SpeechSynthesisLibraryImpl : public SpeechSynthesisLibrary { | 13 class SpeechSynthesisLibraryImpl : public SpeechSynthesisLibrary { |
14 public: | 14 public: |
15 SpeechSynthesisLibraryImpl() {} | 15 SpeechSynthesisLibraryImpl() {} |
16 virtual ~SpeechSynthesisLibraryImpl() {} | 16 virtual ~SpeechSynthesisLibraryImpl() {} |
17 | 17 |
18 bool Speak(const char* text) { | 18 bool Speak(const char* text) { |
19 return chromeos::Speak(text); | 19 return chromeos::Speak(text); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 // static | 56 // static |
57 SpeechSynthesisLibrary* SpeechSynthesisLibrary::GetImpl(bool stub) { | 57 SpeechSynthesisLibrary* SpeechSynthesisLibrary::GetImpl(bool stub) { |
58 if (stub) | 58 if (stub) |
59 return new SpeechSynthesisLibraryStubImpl(); | 59 return new SpeechSynthesisLibraryStubImpl(); |
60 else | 60 else |
61 return new SpeechSynthesisLibraryImpl(); | 61 return new SpeechSynthesisLibraryImpl(); |
62 } | 62 } |
63 | 63 |
64 } // namespace chromeos | 64 } // namespace chromeos |
OLD | NEW |