diff options
Diffstat (limited to 'chrome/browser/speech/tts_android.h')
-rw-r--r-- | chrome/browser/speech/tts_android.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/chrome/browser/speech/tts_android.h b/chrome/browser/speech/tts_android.h index f38d674..19ef66d 100644 --- a/chrome/browser/speech/tts_android.h +++ b/chrome/browser/speech/tts_android.h @@ -26,10 +26,17 @@ class TtsPlatformImplAndroid : public TtsPlatformImpl { void GetVoices(std::vector<VoiceData>* out_voices) override; // Methods called from Java via JNI. - void VoicesChanged(JNIEnv* env, jobject obj); - void OnEndEvent(JNIEnv* env, jobject obj, jint utterance_id); - void OnErrorEvent(JNIEnv* env, jobject obj, jint utterance_id); - void OnStartEvent(JNIEnv* env, jobject obj, jint utterance_id); + void VoicesChanged(JNIEnv* env, + const base::android::JavaParamRef<jobject>& obj); + void OnEndEvent(JNIEnv* env, + const base::android::JavaParamRef<jobject>& obj, + jint utterance_id); + void OnErrorEvent(JNIEnv* env, + const base::android::JavaParamRef<jobject>& obj, + jint utterance_id); + void OnStartEvent(JNIEnv* env, + const base::android::JavaParamRef<jobject>& obj, + jint utterance_id); // Static functions. static TtsPlatformImplAndroid* GetInstance(); |