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/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "base/win/scoped_comptr.h" | 12 #include "base/win/scoped_comptr.h" |
13 #include "chrome/browser/speech/tts_controller.h" | 13 #include "chrome/browser/speech/tts_controller.h" |
14 #include "chrome/browser/speech/tts_platform.h" | 14 #include "chrome/browser/speech/tts_platform.h" |
15 | 15 |
16 class TtsPlatformImplWin : public TtsPlatformImpl { | 16 class TtsPlatformImplWin : public TtsPlatformImpl { |
17 public: | 17 public: |
18 virtual bool PlatformImplAvailable() { | 18 virtual bool PlatformImplAvailable() { |
19 return true; | 19 return true; |
20 } | 20 } |
(...skipping 227 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 |