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

Side by Side Diff: chrome/browser/speech/extension_api/tts_extension_api_win.cc

Issue 9808024: Move TTS extension API to chrome/browser/speech/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos compile error, rebase Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/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/extensions/extension_tts_api_controller.h" 13 #include "chrome/browser/speech/extension_api/tts_extension_api_controller.h"
14 #include "chrome/browser/extensions/extension_tts_api_platform.h" 14 #include "chrome/browser/speech/extension_api/tts_extension_api_platform.h"
15 15
16 class ExtensionTtsPlatformImplWin : public ExtensionTtsPlatformImpl { 16 class ExtensionTtsPlatformImplWin : public ExtensionTtsPlatformImpl {
17 public: 17 public:
18 virtual bool PlatformImplAvailable() { 18 virtual bool PlatformImplAvailable() {
19 return true; 19 return true;
20 } 20 }
21 21
22 virtual bool Speak( 22 virtual bool Speak(
23 int utterance_id, 23 int utterance_id,
24 const std::string& utterance, 24 const std::string& utterance,
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // static 214 // static
215 ExtensionTtsPlatformImplWin* ExtensionTtsPlatformImplWin::GetInstance() { 215 ExtensionTtsPlatformImplWin* ExtensionTtsPlatformImplWin::GetInstance() {
216 return Singleton<ExtensionTtsPlatformImplWin>::get(); 216 return Singleton<ExtensionTtsPlatformImplWin>::get();
217 } 217 }
218 218
219 // static 219 // static
220 void ExtensionTtsPlatformImplWin::SpeechEventCallback( 220 void ExtensionTtsPlatformImplWin::SpeechEventCallback(
221 WPARAM w_param, LPARAM l_param) { 221 WPARAM w_param, LPARAM l_param) {
222 GetInstance()->OnSpeechEvent(); 222 GetInstance()->OnSpeechEvent();
223 } 223 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698