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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 "chrome/browser/speech/tts_platform.h" 10 #include "chrome/browser/speech/tts_platform.h"
(...skipping 17 matching lines...) Expand all
28 void VoicesChanged(JNIEnv* env, jobject obj); 28 void VoicesChanged(JNIEnv* env, jobject obj);
29 void OnEndEvent(JNIEnv* env, jobject obj, jint utterance_id); 29 void OnEndEvent(JNIEnv* env, jobject obj, jint utterance_id);
30 void OnErrorEvent(JNIEnv* env, jobject obj, jint utterance_id); 30 void OnErrorEvent(JNIEnv* env, jobject obj, jint utterance_id);
31 void OnStartEvent(JNIEnv* env, jobject obj, jint utterance_id); 31 void OnStartEvent(JNIEnv* env, jobject obj, jint utterance_id);
32 32
33 // Static functions. 33 // Static functions.
34 static TtsPlatformImplAndroid* GetInstance(); 34 static TtsPlatformImplAndroid* GetInstance();
35 static bool Register(JNIEnv* env); 35 static bool Register(JNIEnv* env);
36 36
37 private: 37 private:
38 friend struct DefaultSingletonTraits<TtsPlatformImplAndroid>; 38 friend struct base::DefaultSingletonTraits<TtsPlatformImplAndroid>;
39 39
40 TtsPlatformImplAndroid(); 40 TtsPlatformImplAndroid();
41 ~TtsPlatformImplAndroid() override; 41 ~TtsPlatformImplAndroid() override;
42 42
43 void SendFinalTtsEvent( 43 void SendFinalTtsEvent(
44 int utterance_id, TtsEventType event_type, int char_index); 44 int utterance_id, TtsEventType event_type, int char_index);
45 45
46 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 46 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
47 int utterance_id_; 47 int utterance_id_;
48 std::string utterance_; 48 std::string utterance_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplAndroid); 50 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplAndroid);
51 }; 51 };
52 52
53 #endif // CHROME_BROWSER_SPEECH_TTS_ANDROID_H_ 53 #endif // CHROME_BROWSER_SPEECH_TTS_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/speech/extension_api/tts_engine_extension_observer.cc ('k') | chrome/browser/speech/tts_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698