OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_SPEECH_TTS_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_TTS_ANDROID_H_ |
6 #define CHROME_BROWSER_SPEECH_TTS_ANDROID_H_ | 6 #define CHROME_BROWSER_SPEECH_TTS_ANDROID_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/macros.h" |
10 #include "chrome/browser/speech/tts_platform.h" | 11 #include "chrome/browser/speech/tts_platform.h" |
11 #include "chrome/common/features.h" | 12 #include "chrome/common/features.h" |
12 | 13 |
13 class TtsPlatformImplAndroid : public TtsPlatformImpl { | 14 class TtsPlatformImplAndroid : public TtsPlatformImpl { |
14 public: | 15 public: |
15 // TtsPlatformImpl implementation. | 16 // TtsPlatformImpl implementation. |
16 bool PlatformImplAvailable() override; | 17 bool PlatformImplAvailable() override; |
17 bool Speak(int utterance_id, | 18 bool Speak(int utterance_id, |
18 const std::string& utterance, | 19 const std::string& utterance, |
19 const std::string& lang, | 20 const std::string& lang, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 int utterance_id, TtsEventType event_type, int char_index); | 55 int utterance_id, TtsEventType event_type, int char_index); |
55 | 56 |
56 base::android::ScopedJavaGlobalRef<jobject> java_ref_; | 57 base::android::ScopedJavaGlobalRef<jobject> java_ref_; |
57 int utterance_id_; | 58 int utterance_id_; |
58 std::string utterance_; | 59 std::string utterance_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplAndroid); | 61 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplAndroid); |
61 }; | 62 }; |
62 | 63 |
63 #endif // CHROME_BROWSER_SPEECH_TTS_ANDROID_H_ | 64 #endif // CHROME_BROWSER_SPEECH_TTS_ANDROID_H_ |
OLD | NEW |