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

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

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.h
diff --git a/chrome/browser/chromeos/cros/speech_synthesis_library.h b/chrome/browser/chromeos/cros/speech_synthesis_library.h
deleted file mode 100644
index e2fed5a31da3058ca206ba354ed74d55f736d3dc..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/cros/speech_synthesis_library.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2011 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.
-
-#ifndef CHROME_BROWSER_CHROMEOS_CROS_SPEECH_SYNTHESIS_LIBRARY_H_
-#define CHROME_BROWSER_CHROMEOS_CROS_SPEECH_SYNTHESIS_LIBRARY_H_
-#pragma once
-
-#include "base/memory/singleton.h"
-
-namespace chromeos {
-
-// This interface defines the interaction with the ChromeOS login library APIs.
-class SpeechSynthesisLibrary {
- public:
- typedef void(*InitStatusCallback)(bool success);
-
- virtual ~SpeechSynthesisLibrary() {}
-
- // Speaks the specified text.
- virtual bool Speak(const char* text) = 0;
-
- // Sets options for the subsequent speech synthesis requests.
- // Use the constants below.
- virtual bool SetSpeakProperties(const char* props) = 0;
-
- // Stops speaking the current utterance.
- virtual bool StopSpeaking() = 0;
-
- // Checks if the engine is currently speaking.
- virtual bool IsSpeaking() = 0;
-
- // Starts the speech synthesis service and indicates through a callback if
- // it started successfully.
- virtual void InitTts(InitStatusCallback) = 0;
-
- // Factory function, creates a new instance and returns ownership.
- // For normal usage, access the singleton via CrosLibrary::Get().
- static SpeechSynthesisLibrary* GetImpl(bool stub);
-
- // Constants to be used with SetSpeakProperties.
- static const char kSpeechPropertyLocale[];
- static const char kSpeechPropertyGender[];
- static const char kSpeechPropertyRate[];
- static const char kSpeechPropertyPitch[];
- static const char kSpeechPropertyVolume[];
- static const char kSpeechPropertyEquals[];
- static const char kSpeechPropertyDelimiter[];
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_CROS_SPEECH_SYNTHESIS_LIBRARY_H_

Powered by Google App Engine
This is Rietveld 408576698