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 "chrome/browser/speech/extension_api/tts_engine_extension_api.h" | 5 #include "chrome/browser/speech/extension_api/tts_engine_extension_api.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
10 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "build/build_config.h" |
11 #include "chrome/browser/extensions/component_loader.h" | 14 #include "chrome/browser/extensions/component_loader.h" |
12 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
13 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/speech/extension_api/tts_engine_extension_observer.h" | 17 #include "chrome/browser/speech/extension_api/tts_engine_extension_observer.h" |
15 #include "chrome/browser/speech/extension_api/tts_extension_api.h" | 18 #include "chrome/browser/speech/extension_api/tts_extension_api.h" |
16 #include "chrome/browser/speech/extension_api/tts_extension_api_constants.h" | 19 #include "chrome/browser/speech/extension_api/tts_extension_api_constants.h" |
17 #include "chrome/browser/speech/tts_controller.h" | 20 #include "chrome/browser/speech/tts_controller.h" |
18 #include "chrome/common/extensions/api/speech/tts_engine_manifest_handler.h" | 21 #include "chrome/common/extensions/api/speech/tts_engine_manifest_handler.h" |
19 #include "chrome/common/extensions/extension_constants.h" | 22 #include "chrome/common/extensions/extension_constants.h" |
20 #include "content/public/browser/render_frame_host.h" | 23 #include "content/public/browser/render_frame_host.h" |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 utterance_id, TTS_EVENT_PAUSE, char_index, std::string()); | 327 utterance_id, TTS_EVENT_PAUSE, char_index, std::string()); |
325 } else if (event_type == constants::kEventTypeResume) { | 328 } else if (event_type == constants::kEventTypeResume) { |
326 controller->OnTtsEvent( | 329 controller->OnTtsEvent( |
327 utterance_id, TTS_EVENT_RESUME, char_index, std::string()); | 330 utterance_id, TTS_EVENT_RESUME, char_index, std::string()); |
328 } else { | 331 } else { |
329 EXTENSION_FUNCTION_VALIDATE(false); | 332 EXTENSION_FUNCTION_VALIDATE(false); |
330 } | 333 } |
331 | 334 |
332 return true; | 335 return true; |
333 } | 336 } |
OLD | NEW |