| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <math.h> | 5 #include <math.h> |
| 6 #include <sapi.h> | 6 #include <sapi.h> |
| 7 | 7 |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 const UtteranceContinuousParameters& params); | 27 const UtteranceContinuousParameters& params); |
| 28 | 28 |
| 29 virtual bool StopSpeaking(); | 29 virtual bool StopSpeaking(); |
| 30 | 30 |
| 31 virtual void Pause(); | 31 virtual void Pause(); |
| 32 | 32 |
| 33 virtual void Resume(); | 33 virtual void Resume(); |
| 34 | 34 |
| 35 virtual bool IsSpeaking(); | 35 virtual bool IsSpeaking(); |
| 36 | 36 |
| 37 virtual void GetVoices(std::vector<VoiceData>* out_voices) OVERRIDE; | 37 virtual void GetVoices(std::vector<VoiceData>* out_voices) override; |
| 38 | 38 |
| 39 // Get the single instance of this class. | 39 // Get the single instance of this class. |
| 40 static TtsPlatformImplWin* GetInstance(); | 40 static TtsPlatformImplWin* GetInstance(); |
| 41 | 41 |
| 42 static void __stdcall SpeechEventCallback(WPARAM w_param, LPARAM l_param); | 42 static void __stdcall SpeechEventCallback(WPARAM w_param, LPARAM l_param); |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 TtsPlatformImplWin(); | 45 TtsPlatformImplWin(); |
| 46 virtual ~TtsPlatformImplWin() {} | 46 virtual ~TtsPlatformImplWin() {} |
| 47 | 47 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 TtsPlatformImplWin* TtsPlatformImplWin::GetInstance() { | 248 TtsPlatformImplWin* TtsPlatformImplWin::GetInstance() { |
| 249 return Singleton<TtsPlatformImplWin, | 249 return Singleton<TtsPlatformImplWin, |
| 250 LeakySingletonTraits<TtsPlatformImplWin> >::get(); | 250 LeakySingletonTraits<TtsPlatformImplWin> >::get(); |
| 251 } | 251 } |
| 252 | 252 |
| 253 // static | 253 // static |
| 254 void TtsPlatformImplWin::SpeechEventCallback( | 254 void TtsPlatformImplWin::SpeechEventCallback( |
| 255 WPARAM w_param, LPARAM l_param) { | 255 WPARAM w_param, LPARAM l_param) { |
| 256 GetInstance()->OnSpeechEvent(); | 256 GetInstance()->OnSpeechEvent(); |
| 257 } | 257 } |
| OLD | NEW |