Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/PSpeechSynthesis.h"
8 :
9 : namespace mozilla {
10 : namespace dom {
11 : namespace PSpeechSynthesis {
12 :
13 : nsresult
14 0 : CreateEndpoints(
15 : base::ProcessId aParentDestPid,
16 : base::ProcessId aChildDestPid,
17 : mozilla::ipc::Endpoint<mozilla::dom::PSpeechSynthesisParent>* aParent,
18 : mozilla::ipc::Endpoint<mozilla::dom::PSpeechSynthesisChild>* aChild)
19 : {
20 0 : return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PSpeechSynthesisMsgStart, PSpeechSynthesisMsgStartChild, aParent, aChild);
21 : }
22 : void
23 0 : Transition(
24 : MessageType msg,
25 : State* next)
26 : {
27 0 : switch ((*(next))) {
28 : case __Null:
29 0 : if ((Msg___delete____ID) == (msg)) {
30 0 : (*(next)) = __Dead;
31 : }
32 0 : break;
33 : case __Dead:
34 0 : mozilla::ipc::LogicError("__delete__()d actor");
35 0 : break;
36 : default:
37 0 : mozilla::ipc::LogicError("corrupted actor state");
38 0 : break;
39 : }
40 0 : }
41 : IPC::Message*
42 0 : Msg_VoiceAdded(int32_t routingId)
43 : {
44 0 : return new IPC::Message(routingId, Msg_VoiceAdded__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PSpeechSynthesis::Msg_VoiceAdded", true);
45 : }
46 : IPC::Message*
47 0 : Msg_VoiceRemoved(int32_t routingId)
48 : {
49 0 : return new IPC::Message(routingId, Msg_VoiceRemoved__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PSpeechSynthesis::Msg_VoiceRemoved", true);
50 : }
51 : IPC::Message*
52 0 : Msg_SetDefaultVoice(int32_t routingId)
53 : {
54 0 : return new IPC::Message(routingId, Msg_SetDefaultVoice__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PSpeechSynthesis::Msg_SetDefaultVoice", true);
55 : }
56 : IPC::Message*
57 0 : Msg_IsSpeakingChanged(int32_t routingId)
58 : {
59 0 : return new IPC::Message(routingId, Msg_IsSpeakingChanged__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PSpeechSynthesis::Msg_IsSpeakingChanged", true);
60 : }
61 : IPC::Message*
62 0 : Msg_NotifyVoicesChanged(int32_t routingId)
63 : {
64 0 : return new IPC::Message(routingId, Msg_NotifyVoicesChanged__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PSpeechSynthesis::Msg_NotifyVoicesChanged", true);
65 : }
66 : IPC::Message*
67 0 : Msg_InitialVoicesAndState(int32_t routingId)
68 : {
69 0 : return new IPC::Message(routingId, Msg_InitialVoicesAndState__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PSpeechSynthesis::Msg_InitialVoicesAndState", true);
70 : }
71 : IPC::Message*
72 0 : Msg___delete__(int32_t routingId)
73 : {
74 0 : return new IPC::Message(routingId, Msg___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PSpeechSynthesis::Msg___delete__", true);
75 : }
76 : IPC::Message*
77 0 : Reply___delete__(int32_t routingId)
78 : {
79 0 : return new IPC::Message(routingId, Reply___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PSpeechSynthesis::Reply___delete__", true);
80 : }
81 : IPC::Message*
82 0 : Msg_PSpeechSynthesisRequestConstructor(int32_t routingId)
83 : {
84 0 : return new IPC::Message(routingId, Msg_PSpeechSynthesisRequestConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PSpeechSynthesis::Msg_PSpeechSynthesisRequestConstructor", true);
85 : }
86 : IPC::Message*
87 0 : Reply_PSpeechSynthesisRequestConstructor(int32_t routingId)
88 : {
89 0 : return new IPC::Message(routingId, Reply_PSpeechSynthesisRequestConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PSpeechSynthesis::Reply_PSpeechSynthesisRequestConstructor", true);
90 : }
91 :
92 : } // namespace PSpeechSynthesis
93 : } // namespace dom
94 : } // namespace mozilla
95 :
96 : //-----------------------------------------------------------------------------
97 : // Method definitions for the IPDL type |struct RemoteVoice|
98 : //
99 : namespace mozilla {
100 : namespace dom {
101 0 : MOZ_IMPLICIT RemoteVoice::RemoteVoice() :
102 : voiceURI_(),
103 : name_(),
104 : lang_(),
105 : localService_(),
106 0 : queued_()
107 : {
108 0 : Init();
109 0 : }
110 :
111 0 : RemoteVoice::~RemoteVoice()
112 : {
113 0 : }
114 :
115 0 : auto RemoteVoice::operator==(const RemoteVoice& _o) const -> bool
116 : {
117 0 : if ((!((voiceURI()) == ((_o).voiceURI())))) {
118 0 : return false;
119 : }
120 0 : if ((!((name()) == ((_o).name())))) {
121 0 : return false;
122 : }
123 0 : if ((!((lang()) == ((_o).lang())))) {
124 0 : return false;
125 : }
126 0 : if ((!((localService()) == ((_o).localService())))) {
127 0 : return false;
128 : }
129 0 : if ((!((queued()) == ((_o).queued())))) {
130 0 : return false;
131 : }
132 0 : return true;
133 : }
134 :
135 0 : auto RemoteVoice::operator!=(const RemoteVoice& _o) const -> bool
136 : {
137 0 : return (!(operator==(_o)));
138 : }
139 :
140 0 : auto RemoteVoice::Init() -> void
141 : {
142 0 : }
143 :
144 0 : auto RemoteVoice::Assign(
145 : const nsString& _voiceURI,
146 : const nsString& _name,
147 : const nsString& _lang,
148 : const bool& _localService,
149 : const bool& _queued) -> void
150 : {
151 0 : voiceURI_ = _voiceURI;
152 0 : name_ = _name;
153 0 : lang_ = _lang;
154 0 : localService_ = _localService;
155 0 : queued_ = _queued;
156 0 : }
157 :
158 : } // namespace dom
159 : } // namespace mozilla
|