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

Side by Side Diff: chrome/browser/speech/tts_android.h

Issue 2619603002: Remove android_java_ui as it is not used (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
OLDNEW
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 "base/macros.h"
(...skipping 23 matching lines...) Expand all
34 jint utterance_id); 34 jint utterance_id);
35 void OnErrorEvent(JNIEnv* env, 35 void OnErrorEvent(JNIEnv* env,
36 const base::android::JavaParamRef<jobject>& obj, 36 const base::android::JavaParamRef<jobject>& obj,
37 jint utterance_id); 37 jint utterance_id);
38 void OnStartEvent(JNIEnv* env, 38 void OnStartEvent(JNIEnv* env,
39 const base::android::JavaParamRef<jobject>& obj, 39 const base::android::JavaParamRef<jobject>& obj,
40 jint utterance_id); 40 jint utterance_id);
41 41
42 // Static functions. 42 // Static functions.
43 static TtsPlatformImplAndroid* GetInstance(); 43 static TtsPlatformImplAndroid* GetInstance();
44 #if BUILDFLAG(ANDROID_JAVA_UI)
45 static bool Register(JNIEnv* env); 44 static bool Register(JNIEnv* env);
46 #endif
47 45
48 private: 46 private:
49 friend struct base::DefaultSingletonTraits<TtsPlatformImplAndroid>; 47 friend struct base::DefaultSingletonTraits<TtsPlatformImplAndroid>;
50 48
51 TtsPlatformImplAndroid(); 49 TtsPlatformImplAndroid();
52 ~TtsPlatformImplAndroid() override; 50 ~TtsPlatformImplAndroid() override;
53 51
54 void SendFinalTtsEvent( 52 void SendFinalTtsEvent(
55 int utterance_id, TtsEventType event_type, int char_index); 53 int utterance_id, TtsEventType event_type, int char_index);
56 54
57 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 55 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
58 int utterance_id_; 56 int utterance_id_;
59 std::string utterance_; 57 std::string utterance_;
60 58
61 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplAndroid); 59 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplAndroid);
62 }; 60 };
63 61
64 #endif // CHROME_BROWSER_SPEECH_TTS_ANDROID_H_ 62 #endif // CHROME_BROWSER_SPEECH_TTS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698