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

Side by Side Diff: content/common/tts_messages.h

Issue 12589005: Implement web speech synthesis. (Closed) Base URL: http://git.chromium.org/chromium/src.git@webtts
Patch Set: Created 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Multiply-included message file, hence no include guard.
6
7 #include <vector>
8
9 #include "content/public/common/tts_utterance_request.h"
10 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_param_traits.h"
12
13 #define IPC_MESSAGE_START TtsMsgStart
14
15 IPC_STRUCT_TRAITS_BEGIN(content::TtsUtteranceRequest)
16 IPC_STRUCT_TRAITS_MEMBER(id)
17 IPC_STRUCT_TRAITS_MEMBER(text)
18 IPC_STRUCT_TRAITS_MEMBER(lang)
19 IPC_STRUCT_TRAITS_MEMBER(voice)
20 IPC_STRUCT_TRAITS_MEMBER(volume)
21 IPC_STRUCT_TRAITS_MEMBER(rate)
22 IPC_STRUCT_TRAITS_MEMBER(pitch)
23 IPC_STRUCT_TRAITS_END()
24
25 IPC_STRUCT_TRAITS_BEGIN(content::TtsVoice)
26 IPC_STRUCT_TRAITS_MEMBER(voice_uri)
27 IPC_STRUCT_TRAITS_MEMBER(name)
28 IPC_STRUCT_TRAITS_MEMBER(lang)
29 IPC_STRUCT_TRAITS_MEMBER(local_service)
30 IPC_STRUCT_TRAITS_MEMBER(is_default)
31 IPC_STRUCT_TRAITS_END()
32
33 // Renderer -> Browser messages.
34
35 IPC_MESSAGE_CONTROL1(TtsHostMsg_InitializeVoiceList,
36 int /* routing_id */)
37 IPC_MESSAGE_CONTROL2(TtsHostMsg_Speak,
38 int, /* routing_id */
39 content::TtsUtteranceRequest)
40 IPC_MESSAGE_CONTROL0(TtsHostMsg_Pause)
41 IPC_MESSAGE_CONTROL0(TtsHostMsg_Resume)
42 IPC_MESSAGE_CONTROL0(TtsHostMsg_Cancel)
43
44 // Browser -> Renderer messages.
45
46 IPC_MESSAGE_ROUTED1(TtsMsg_SetVoiceList,
47 std::vector<content::TtsVoice>)
48 IPC_MESSAGE_ROUTED1(TtsMsg_DidStartSpeaking,
49 int /* utterance id */)
50 IPC_MESSAGE_ROUTED1(TtsMsg_DidFinishSpeaking,
51 int /* utterance id */)
52 IPC_MESSAGE_ROUTED1(TtsMsg_DidPauseSpeaking,
53 int /* utterance id */)
54 IPC_MESSAGE_ROUTED1(TtsMsg_DidResumeSpeaking,
55 int /* utterance id */)
56 IPC_MESSAGE_ROUTED2(TtsMsg_WordBoundary,
57 int /* utterance id */,
58 int /* char index */)
59 IPC_MESSAGE_ROUTED2(TtsMsg_SentenceBoundary,
60 int /* utterance id */,
61 int /* char index */)
62 IPC_MESSAGE_ROUTED2(TtsMsg_MarkerEvent,
63 int /* utterance id */,
64 int /* char index */)
65 IPC_MESSAGE_ROUTED1(TtsMsg_WasInterrupted,
66 int /* utterance id */)
67 IPC_MESSAGE_ROUTED1(TtsMsg_WasCancelled,
68 int /* utterance id */)
69 IPC_MESSAGE_ROUTED2(TtsMsg_SpeakingErrorOccurred,
70 int /* utterance id */,
71 std::string /* error message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698