| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_TTS_API_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_CONTROLLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
| 14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 15 | 15 |
| 16 class Extension; | 16 class Extension; |
| 17 class ExtensionTtsPlatformImpl; | 17 class ExtensionTtsPlatformImpl; |
| 18 class Profile; | 18 class Profile; |
| 19 | 19 |
| 20 namespace base { | 20 namespace base { |
| 21 class DictionaryValue; | |
| 22 class ListValue; | 21 class ListValue; |
| 23 class Value; | 22 class Value; |
| 24 } | 23 } |
| 25 | 24 |
| 26 // Events sent back from the TTS engine indicating the progress. | 25 // Events sent back from the TTS engine indicating the progress. |
| 27 enum TtsEventType { | 26 enum TtsEventType { |
| 28 TTS_EVENT_START, | 27 TTS_EVENT_START, |
| 29 TTS_EVENT_END, | 28 TTS_EVENT_END, |
| 30 TTS_EVENT_WORD, | 29 TTS_EVENT_WORD, |
| 31 TTS_EVENT_SENTENCE, | 30 TTS_EVENT_SENTENCE, |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 std::queue<Utterance*> utterance_queue_; | 248 std::queue<Utterance*> utterance_queue_; |
| 250 | 249 |
| 251 // A pointer to the platform implementation of text-to-speech, for | 250 // A pointer to the platform implementation of text-to-speech, for |
| 252 // dependency injection. | 251 // dependency injection. |
| 253 ExtensionTtsPlatformImpl* platform_impl_; | 252 ExtensionTtsPlatformImpl* platform_impl_; |
| 254 | 253 |
| 255 DISALLOW_COPY_AND_ASSIGN(ExtensionTtsController); | 254 DISALLOW_COPY_AND_ASSIGN(ExtensionTtsController); |
| 256 }; | 255 }; |
| 257 | 256 |
| 258 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_CONTROLLER_H_ | 257 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_CONTROLLER_H_ |
| OLD | NEW |