| // Copyright 2021 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_SPEECH_TTS_CROSAPI_UTIL_H_ |
| #define CHROME_BROWSER_SPEECH_TTS_CROSAPI_UTIL_H_ |
| |
| #include "chromeos/crosapi/mojom/tts.mojom.h" |
| #include "content/public/browser/tts_controller.h" |
| |
| namespace tts_crosapi_util { |
| |
| // Functions for converting Tts data types to/from its corresponding mojo types. |
| content::TtsEventType FromMojo(crosapi::mojom::TtsEventType mojo_event); |
| crosapi::mojom::TtsEventType ToMojo(content::TtsEventType event_type); |
| content::VoiceData FromMojo(const crosapi::mojom::TtsVoicePtr& mojo_voice); |
| crosapi::mojom::TtsVoicePtr ToMojo(const content::VoiceData& voice); |
| |
| } // namespace tts_crosapi_util |
| |
| #endif // CHROME_BROWSER_SPEECH_TTS_CROSAPI_UTIL_H_ |