Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4081)

Unified Diff: chrome/browser/chromeos/cros/speech_synthesis_library.cc

Issue 8334018: Move the code in libcros' chromeos_speech_synthesis.cc into Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed ScopedRunnableMethodFactory Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cros/speech_synthesis_library.cc
diff --git a/chrome/browser/chromeos/cros/speech_synthesis_library.cc b/chrome/browser/chromeos/cros/speech_synthesis_library.cc
deleted file mode 100644
index 1102f946312929f2911df1ac6232fe85324f4500..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/cros/speech_synthesis_library.cc
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/chromeos/cros/speech_synthesis_library.h"
-
-#include "base/message_loop.h"
-#include "chrome/browser/chromeos/cros/cros_library.h"
-#include "third_party/cros/chromeos_speech_synthesis.h"
-
-namespace chromeos {
-
-// TODO(chaitanyag): rename to "locale" after making equivalent change in
-// Chrome OS code.
-const char SpeechSynthesisLibrary::kSpeechPropertyLocale[] = "name";
-
-const char SpeechSynthesisLibrary::kSpeechPropertyGender[] = "gender";
-const char SpeechSynthesisLibrary::kSpeechPropertyRate[] = "rate";
-const char SpeechSynthesisLibrary::kSpeechPropertyPitch[] = "pitch";
-const char SpeechSynthesisLibrary::kSpeechPropertyVolume[] = "volume";
-const char SpeechSynthesisLibrary::kSpeechPropertyEquals[] = "=";
-const char SpeechSynthesisLibrary::kSpeechPropertyDelimiter[] = ";";
-
-class SpeechSynthesisLibraryImpl : public SpeechSynthesisLibrary {
- public:
- SpeechSynthesisLibraryImpl() {}
- virtual ~SpeechSynthesisLibraryImpl() {}
-
- bool Speak(const char* text) {
- return chromeos::Speak(text);
- }
-
- bool SetSpeakProperties(const char* props) {
- return chromeos::SetSpeakProperties(props);
- }
-
- bool StopSpeaking() {
- return chromeos::StopSpeaking();
- }
-
- bool IsSpeaking() {
- return chromeos::IsSpeaking();
- }
-
- void InitTts(InitStatusCallback callback) {
- chromeos::InitTts(callback);
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(SpeechSynthesisLibraryImpl);
-};
-
-class SpeechSynthesisLibraryStubImpl : public SpeechSynthesisLibrary {
- public:
- SpeechSynthesisLibraryStubImpl() {}
- virtual ~SpeechSynthesisLibraryStubImpl() {}
- bool Speak(const char* text) { return true; }
- bool SetSpeakProperties(const char* props) { return true; }
- bool StopSpeaking() { return true; }
- bool IsSpeaking() { return false; }
- void InitTts(InitStatusCallback callback) {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(SpeechSynthesisLibraryStubImpl);
-};
-
-// static
-SpeechSynthesisLibrary* SpeechSynthesisLibrary::GetImpl(bool stub) {
- SpeechSynthesisLibrary* impl;
- if (stub)
- impl = new SpeechSynthesisLibraryStubImpl();
- else
- impl = new SpeechSynthesisLibraryImpl();
- return impl;
-}
-
-} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/cros/speech_synthesis_library.h ('k') | chrome/browser/chromeos/dbus/dbus_thread_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698