/work/obj-fuzz/ipc/ipdl/PBrowserParent.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // Automatically generated by ipdlc. |
3 | | // Edit at your own risk |
4 | | // |
5 | | |
6 | | |
7 | | #include "mozilla/dom/PBrowserParent.h" |
8 | | #include "FrameMetrics.h" |
9 | | #include "ipc/IPCMessageUtils.h" |
10 | | #include "ipc/nsGUIEventIPC.h" |
11 | | #include "mozilla/dom/MessagePort.h" |
12 | | #include "mozilla/dom/PermissionMessageUtils.h" |
13 | | #include "mozilla/dom/TabMessageUtils.h" |
14 | | #include "mozilla/dom/ipc/StructuredCloneData.h" |
15 | | #include "mozilla/layers/CompositorTypes.h" |
16 | | #include "mozilla/widget/IMEData.h" |
17 | | #include "mozilla/widget/WidgetMessageUtils.h" |
18 | | #include "nsRect.h" |
19 | | |
20 | | #include "mozilla/dom/PColorPickerParent.h" |
21 | | #include "mozilla/dom/PContentParent.h" |
22 | | #include "mozilla/dom/PContentBridgeParent.h" |
23 | | #include "mozilla/a11y/PDocAccessibleParent.h" |
24 | | #include "mozilla/dom/PFilePickerParent.h" |
25 | | #include "mozilla/dom/indexedDB/PIndexedDBPermissionRequestParent.h" |
26 | | #include "mozilla/layout/PRenderFrameParent.h" |
27 | | #include "mozilla/plugins/PPluginWidgetParent.h" |
28 | | #include "mozilla/layout/PRemotePrintJobParent.h" |
29 | | #include "mozilla/ipc/PChildToParentStreamParent.h" |
30 | | #include "mozilla/ipc/PParentToChildStreamParent.h" |
31 | | #include "mozilla/ipc/PFileDescriptorSetParent.h" |
32 | | #include "mozilla/ipc/PIPCBlobInputStreamParent.h" |
33 | | #include "mozilla/dom/PPaymentRequestParent.h" |
34 | | |
35 | | #include "nsIFile.h" |
36 | | #include "GeckoProfiler.h" |
37 | | |
38 | | namespace mozilla { |
39 | | namespace dom { |
40 | | |
41 | | |
42 | | auto PBrowserParent::RecvPRenderFrameConstructor(PRenderFrameParent* actor) -> mozilla::ipc::IPCResult |
43 | 0 | { |
44 | 0 | return IPC_OK(); |
45 | 0 | } |
46 | | |
47 | | auto PBrowserParent::RecvPDocAccessibleConstructor( |
48 | | PDocAccessibleParent* actor, |
49 | | PDocAccessibleParent* aParentDoc, |
50 | | const uint64_t& aParentAcc, |
51 | | const uint32_t& aMsaaID, |
52 | | const IAccessibleHolder& aDocCOMProxy) -> mozilla::ipc::IPCResult |
53 | 0 | { |
54 | 0 | return IPC_OK(); |
55 | 0 | } |
56 | | |
57 | | auto PBrowserParent::RecvPPluginWidgetConstructor(PPluginWidgetParent* actor) -> mozilla::ipc::IPCResult |
58 | 0 | { |
59 | 0 | return IPC_OK(); |
60 | 0 | } |
61 | | |
62 | | auto PBrowserParent::RecvPPaymentRequestConstructor(PPaymentRequestParent* actor) -> mozilla::ipc::IPCResult |
63 | 0 | { |
64 | 0 | return IPC_OK(); |
65 | 0 | } |
66 | | |
67 | | auto PBrowserParent::RecvPColorPickerConstructor( |
68 | | PColorPickerParent* actor, |
69 | | const nsString& title, |
70 | | const nsString& initialColor) -> mozilla::ipc::IPCResult |
71 | 0 | { |
72 | 0 | return IPC_OK(); |
73 | 0 | } |
74 | | |
75 | | auto PBrowserParent::RecvPFilePickerConstructor( |
76 | | PFilePickerParent* actor, |
77 | | const nsString& aTitle, |
78 | | const int16_t& aMode) -> mozilla::ipc::IPCResult |
79 | 0 | { |
80 | 0 | return IPC_OK(); |
81 | 0 | } |
82 | | |
83 | | auto PBrowserParent::RecvPIndexedDBPermissionRequestConstructor( |
84 | | PIndexedDBPermissionRequestParent* actor, |
85 | | const Principal& principal) -> mozilla::ipc::IPCResult |
86 | 0 | { |
87 | 0 | return IPC_OK(); |
88 | 0 | } |
89 | | |
90 | | auto PBrowserParent::Recv__delete__() -> mozilla::ipc::IPCResult |
91 | 0 | { |
92 | 0 | return IPC_OK(); |
93 | 0 | } |
94 | | |
95 | | auto PBrowserParent::ActorDestroy(ActorDestroyReason aWhy) -> void |
96 | 0 | { |
97 | 0 | } |
98 | | |
99 | | MOZ_IMPLICIT PBrowserParent::PBrowserParent() : |
100 | | mozilla::ipc::IProtocol(mozilla::ipc::ParentSide), |
101 | | mLivenessState(mozilla::ipc::LivenessState::Dead) |
102 | 0 | { |
103 | 0 | MOZ_COUNT_CTOR(PBrowserParent); |
104 | 0 | } |
105 | | |
106 | | PBrowserParent::~PBrowserParent() |
107 | 0 | { |
108 | 0 | MOZ_COUNT_DTOR(PBrowserParent); |
109 | 0 | } |
110 | | |
111 | | auto PBrowserParent::ManagedPColorPickerParent(nsTArray<PColorPickerParent*>& aArr) const -> void |
112 | 0 | { |
113 | 0 | (mManagedPColorPickerParent).ToArray(aArr); |
114 | 0 | } |
115 | | |
116 | | auto PBrowserParent::ManagedPColorPickerParent() const -> const ManagedContainer<PColorPickerParent>& |
117 | 0 | { |
118 | 0 | return mManagedPColorPickerParent; |
119 | 0 | } |
120 | | |
121 | | auto PBrowserParent::ManagedPDocAccessibleParent(nsTArray<PDocAccessibleParent*>& aArr) const -> void |
122 | 0 | { |
123 | 0 | (mManagedPDocAccessibleParent).ToArray(aArr); |
124 | 0 | } |
125 | | |
126 | | auto PBrowserParent::ManagedPDocAccessibleParent() const -> const ManagedContainer<PDocAccessibleParent>& |
127 | 0 | { |
128 | 0 | return mManagedPDocAccessibleParent; |
129 | 0 | } |
130 | | |
131 | | auto PBrowserParent::ManagedPFilePickerParent(nsTArray<PFilePickerParent*>& aArr) const -> void |
132 | 0 | { |
133 | 0 | (mManagedPFilePickerParent).ToArray(aArr); |
134 | 0 | } |
135 | | |
136 | | auto PBrowserParent::ManagedPFilePickerParent() const -> const ManagedContainer<PFilePickerParent>& |
137 | 0 | { |
138 | 0 | return mManagedPFilePickerParent; |
139 | 0 | } |
140 | | |
141 | | auto PBrowserParent::ManagedPIndexedDBPermissionRequestParent(nsTArray<PIndexedDBPermissionRequestParent*>& aArr) const -> void |
142 | 0 | { |
143 | 0 | (mManagedPIndexedDBPermissionRequestParent).ToArray(aArr); |
144 | 0 | } |
145 | | |
146 | | auto PBrowserParent::ManagedPIndexedDBPermissionRequestParent() const -> const ManagedContainer<PIndexedDBPermissionRequestParent>& |
147 | 0 | { |
148 | 0 | return mManagedPIndexedDBPermissionRequestParent; |
149 | 0 | } |
150 | | |
151 | | auto PBrowserParent::ManagedPRenderFrameParent(nsTArray<PRenderFrameParent*>& aArr) const -> void |
152 | 0 | { |
153 | 0 | (mManagedPRenderFrameParent).ToArray(aArr); |
154 | 0 | } |
155 | | |
156 | | auto PBrowserParent::ManagedPRenderFrameParent() const -> const ManagedContainer<PRenderFrameParent>& |
157 | 0 | { |
158 | 0 | return mManagedPRenderFrameParent; |
159 | 0 | } |
160 | | |
161 | | auto PBrowserParent::ManagedPPluginWidgetParent(nsTArray<PPluginWidgetParent*>& aArr) const -> void |
162 | 0 | { |
163 | 0 | (mManagedPPluginWidgetParent).ToArray(aArr); |
164 | 0 | } |
165 | | |
166 | | auto PBrowserParent::ManagedPPluginWidgetParent() const -> const ManagedContainer<PPluginWidgetParent>& |
167 | 0 | { |
168 | 0 | return mManagedPPluginWidgetParent; |
169 | 0 | } |
170 | | |
171 | | auto PBrowserParent::ManagedPPaymentRequestParent(nsTArray<PPaymentRequestParent*>& aArr) const -> void |
172 | 0 | { |
173 | 0 | (mManagedPPaymentRequestParent).ToArray(aArr); |
174 | 0 | } |
175 | | |
176 | | auto PBrowserParent::ManagedPPaymentRequestParent() const -> const ManagedContainer<PPaymentRequestParent>& |
177 | 0 | { |
178 | 0 | return mManagedPPaymentRequestParent; |
179 | 0 | } |
180 | | |
181 | | auto PBrowserParent::SendAsyncMessage( |
182 | | const nsString& aMessage, |
183 | | const nsTArray<CpowEntry>& aCpows, |
184 | | const Principal& aPrincipal, |
185 | | const ClonedMessageData& aData) -> bool |
186 | 0 | { |
187 | 0 | IPC::Message* msg__ = PBrowser::Msg_AsyncMessage(Id()); |
188 | 0 |
|
189 | 0 | WriteIPDLParam(msg__, this, aMessage); |
190 | 0 | // Sentinel = 'aMessage' |
191 | 0 | (msg__)->WriteSentinel(3453110902); |
192 | 0 | WriteIPDLParam(msg__, this, aCpows); |
193 | 0 | // Sentinel = 'aCpows' |
194 | 0 | (msg__)->WriteSentinel(2178221451); |
195 | 0 | WriteIPDLParam(msg__, this, aPrincipal); |
196 | 0 | // Sentinel = 'aPrincipal' |
197 | 0 | (msg__)->WriteSentinel(4097511); |
198 | 0 | WriteIPDLParam(msg__, this, aData); |
199 | 0 | // Sentinel = 'aData' |
200 | 0 | (msg__)->WriteSentinel(3285075324); |
201 | 0 |
|
202 | 0 |
|
203 | 0 |
|
204 | 0 |
|
205 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
206 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
207 | 0 | } |
208 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_AsyncMessage", OTHER); |
209 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
210 | 0 | mozilla::ipc::LogicError("Transition error"); |
211 | 0 | } |
212 | 0 |
|
213 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
214 | 0 | return sendok__; |
215 | 0 | } |
216 | | |
217 | | auto PBrowserParent::SendPRenderFrameConstructor() -> PRenderFrameParent* |
218 | 0 | { |
219 | 0 | return SendPRenderFrameConstructor(AllocPRenderFrameParent()); |
220 | 0 | } |
221 | | |
222 | | auto PBrowserParent::SendPRenderFrameConstructor(PRenderFrameParent* actor) -> PRenderFrameParent* |
223 | 0 | { |
224 | 0 | if ((!(actor))) { |
225 | 0 | NS_WARNING("Error constructing actor PRenderFrameParent"); |
226 | 0 | return nullptr; |
227 | 0 | } |
228 | 0 | (actor)->SetManagerAndRegister(this); |
229 | 0 | (mManagedPRenderFrameParent).PutEntry(actor); |
230 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
231 | 0 |
|
232 | 0 | IPC::Message* msg__ = PBrowser::Msg_PRenderFrameConstructor(Id()); |
233 | 0 |
|
234 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
235 | 0 | WriteIPDLParam(msg__, this, actor); |
236 | 0 | // Sentinel = 'actor' |
237 | 0 | (msg__)->WriteSentinel(875202478); |
238 | 0 |
|
239 | 0 |
|
240 | 0 |
|
241 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
242 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
243 | 0 | } |
244 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PRenderFrameConstructor", OTHER); |
245 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
246 | 0 | mozilla::ipc::LogicError("Transition error"); |
247 | 0 | } |
248 | 0 |
|
249 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
250 | 0 | if ((!(sendok__))) { |
251 | 0 | IProtocol* mgr = (actor)->Manager(); |
252 | 0 | (actor)->DestroySubtree(FailedConstructor); |
253 | 0 | (actor)->DeallocSubtree(); |
254 | 0 | (mgr)->RemoveManagee(PRenderFrameMsgStart, actor); |
255 | 0 | return nullptr; |
256 | 0 | } |
257 | 0 | return actor; |
258 | 0 | } |
259 | | |
260 | | auto PBrowserParent::SendNativeSynthesisResponse( |
261 | | const uint64_t& aObserverId, |
262 | | const nsCString& aResponse) -> bool |
263 | 0 | { |
264 | 0 | IPC::Message* msg__ = PBrowser::Msg_NativeSynthesisResponse(Id()); |
265 | 0 |
|
266 | 0 | WriteIPDLParam(msg__, this, aObserverId); |
267 | 0 | // Sentinel = 'aObserverId' |
268 | 0 | (msg__)->WriteSentinel(959110235); |
269 | 0 | WriteIPDLParam(msg__, this, aResponse); |
270 | 0 | // Sentinel = 'aResponse' |
271 | 0 | (msg__)->WriteSentinel(4228544409); |
272 | 0 |
|
273 | 0 |
|
274 | 0 |
|
275 | 0 |
|
276 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
277 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
278 | 0 | } |
279 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NativeSynthesisResponse", OTHER); |
280 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
281 | 0 | mozilla::ipc::LogicError("Transition error"); |
282 | 0 | } |
283 | 0 |
|
284 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
285 | 0 | return sendok__; |
286 | 0 | } |
287 | | |
288 | | auto PBrowserParent::SendShow( |
289 | | const ScreenIntSize& size, |
290 | | const ShowInfo& info, |
291 | | const bool& parentIsActive, |
292 | | const nsSizeMode& sizeMode) -> bool |
293 | 0 | { |
294 | 0 | IPC::Message* msg__ = PBrowser::Msg_Show(Id()); |
295 | 0 |
|
296 | 0 | WriteIPDLParam(msg__, this, size); |
297 | 0 | // Sentinel = 'size' |
298 | 0 | (msg__)->WriteSentinel(931048223); |
299 | 0 | WriteIPDLParam(msg__, this, info); |
300 | 0 | // Sentinel = 'info' |
301 | 0 | (msg__)->WriteSentinel(3750868832); |
302 | 0 | WriteIPDLParam(msg__, this, parentIsActive); |
303 | 0 | // Sentinel = 'parentIsActive' |
304 | 0 | (msg__)->WriteSentinel(3651335608); |
305 | 0 | WriteIPDLParam(msg__, this, sizeMode); |
306 | 0 | // Sentinel = 'sizeMode' |
307 | 0 | (msg__)->WriteSentinel(446028882); |
308 | 0 |
|
309 | 0 |
|
310 | 0 |
|
311 | 0 |
|
312 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
313 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
314 | 0 | } |
315 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_Show", OTHER); |
316 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
317 | 0 | mozilla::ipc::LogicError("Transition error"); |
318 | 0 | } |
319 | 0 |
|
320 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
321 | 0 | return sendok__; |
322 | 0 | } |
323 | | |
324 | | auto PBrowserParent::SendInitRendering( |
325 | | const TextureFactoryIdentifier& textureFactoryIdentifier, |
326 | | const LayersId& layersId, |
327 | | const CompositorOptions& compositorOptions, |
328 | | const bool& layersConnected, |
329 | | PRenderFrameParent* renderFrame) -> bool |
330 | 0 | { |
331 | 0 | IPC::Message* msg__ = PBrowser::Msg_InitRendering(Id()); |
332 | 0 |
|
333 | 0 | WriteIPDLParam(msg__, this, textureFactoryIdentifier); |
334 | 0 | // Sentinel = 'textureFactoryIdentifier' |
335 | 0 | (msg__)->WriteSentinel(1630882508); |
336 | 0 | WriteIPDLParam(msg__, this, layersId); |
337 | 0 | // Sentinel = 'layersId' |
338 | 0 | (msg__)->WriteSentinel(2382073245); |
339 | 0 | WriteIPDLParam(msg__, this, compositorOptions); |
340 | 0 | // Sentinel = 'compositorOptions' |
341 | 0 | (msg__)->WriteSentinel(1905928698); |
342 | 0 | WriteIPDLParam(msg__, this, layersConnected); |
343 | 0 | // Sentinel = 'layersConnected' |
344 | 0 | (msg__)->WriteSentinel(1587749492); |
345 | 0 | WriteIPDLParam(msg__, this, renderFrame); |
346 | 0 | // Sentinel = 'renderFrame' |
347 | 0 | (msg__)->WriteSentinel(3592247652); |
348 | 0 |
|
349 | 0 |
|
350 | 0 |
|
351 | 0 |
|
352 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
353 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
354 | 0 | } |
355 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_InitRendering", OTHER); |
356 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
357 | 0 | mozilla::ipc::LogicError("Transition error"); |
358 | 0 | } |
359 | 0 |
|
360 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
361 | 0 | return sendok__; |
362 | 0 | } |
363 | | |
364 | | auto PBrowserParent::SendLoadURL( |
365 | | const nsCString& uri, |
366 | | const ShowInfo& info) -> bool |
367 | 0 | { |
368 | 0 | IPC::Message* msg__ = PBrowser::Msg_LoadURL(Id()); |
369 | 0 |
|
370 | 0 | WriteIPDLParam(msg__, this, uri); |
371 | 0 | // Sentinel = 'uri' |
372 | 0 | (msg__)->WriteSentinel(1453210605); |
373 | 0 | WriteIPDLParam(msg__, this, info); |
374 | 0 | // Sentinel = 'info' |
375 | 0 | (msg__)->WriteSentinel(3750868832); |
376 | 0 |
|
377 | 0 |
|
378 | 0 |
|
379 | 0 |
|
380 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
381 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
382 | 0 | } |
383 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_LoadURL", OTHER); |
384 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
385 | 0 | mozilla::ipc::LogicError("Transition error"); |
386 | 0 | } |
387 | 0 |
|
388 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
389 | 0 | return sendok__; |
390 | 0 | } |
391 | | |
392 | | auto PBrowserParent::SendUpdateDimensions(const DimensionInfo& dimensions) -> bool |
393 | 0 | { |
394 | 0 | IPC::Message* msg__ = PBrowser::Msg_UpdateDimensions(Id()); |
395 | 0 |
|
396 | 0 | WriteIPDLParam(msg__, this, dimensions); |
397 | 0 | // Sentinel = 'dimensions' |
398 | 0 | (msg__)->WriteSentinel(1613663909); |
399 | 0 |
|
400 | 0 |
|
401 | 0 |
|
402 | 0 |
|
403 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
404 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
405 | 0 | } |
406 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_UpdateDimensions", OTHER); |
407 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
408 | 0 | mozilla::ipc::LogicError("Transition error"); |
409 | 0 | } |
410 | 0 |
|
411 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
412 | 0 | return sendok__; |
413 | 0 | } |
414 | | |
415 | | auto PBrowserParent::SendSizeModeChanged(const nsSizeMode& sizeMode) -> bool |
416 | 0 | { |
417 | 0 | IPC::Message* msg__ = PBrowser::Msg_SizeModeChanged(Id()); |
418 | 0 |
|
419 | 0 | WriteIPDLParam(msg__, this, sizeMode); |
420 | 0 | // Sentinel = 'sizeMode' |
421 | 0 | (msg__)->WriteSentinel(446028882); |
422 | 0 |
|
423 | 0 |
|
424 | 0 |
|
425 | 0 |
|
426 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
427 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
428 | 0 | } |
429 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SizeModeChanged", OTHER); |
430 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
431 | 0 | mozilla::ipc::LogicError("Transition error"); |
432 | 0 | } |
433 | 0 |
|
434 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
435 | 0 | return sendok__; |
436 | 0 | } |
437 | | |
438 | | auto PBrowserParent::SendParentActivated(const bool& aActivated) -> bool |
439 | 0 | { |
440 | 0 | IPC::Message* msg__ = PBrowser::Msg_ParentActivated(Id()); |
441 | 0 |
|
442 | 0 | WriteIPDLParam(msg__, this, aActivated); |
443 | 0 | // Sentinel = 'aActivated' |
444 | 0 | (msg__)->WriteSentinel(2491273264); |
445 | 0 |
|
446 | 0 |
|
447 | 0 |
|
448 | 0 |
|
449 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
450 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
451 | 0 | } |
452 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_ParentActivated", OTHER); |
453 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
454 | 0 | mozilla::ipc::LogicError("Transition error"); |
455 | 0 | } |
456 | 0 |
|
457 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
458 | 0 | return sendok__; |
459 | 0 | } |
460 | | |
461 | | auto PBrowserParent::SendSetKeyboardIndicators( |
462 | | const UIStateChangeType& showAccelerators, |
463 | | const UIStateChangeType& showFocusRings) -> bool |
464 | 0 | { |
465 | 0 | IPC::Message* msg__ = PBrowser::Msg_SetKeyboardIndicators(Id()); |
466 | 0 |
|
467 | 0 | WriteIPDLParam(msg__, this, showAccelerators); |
468 | 0 | // Sentinel = 'showAccelerators' |
469 | 0 | (msg__)->WriteSentinel(2628588971); |
470 | 0 | WriteIPDLParam(msg__, this, showFocusRings); |
471 | 0 | // Sentinel = 'showFocusRings' |
472 | 0 | (msg__)->WriteSentinel(2619412036); |
473 | 0 |
|
474 | 0 |
|
475 | 0 |
|
476 | 0 |
|
477 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
478 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
479 | 0 | } |
480 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetKeyboardIndicators", OTHER); |
481 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
482 | 0 | mozilla::ipc::LogicError("Transition error"); |
483 | 0 | } |
484 | 0 |
|
485 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
486 | 0 | return sendok__; |
487 | 0 | } |
488 | | |
489 | | auto PBrowserParent::SendStopIMEStateManagement() -> bool |
490 | 0 | { |
491 | 0 | IPC::Message* msg__ = PBrowser::Msg_StopIMEStateManagement(Id()); |
492 | 0 |
|
493 | 0 |
|
494 | 0 |
|
495 | 0 |
|
496 | 0 |
|
497 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
498 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
499 | 0 | } |
500 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_StopIMEStateManagement", OTHER); |
501 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
502 | 0 | mozilla::ipc::LogicError("Transition error"); |
503 | 0 | } |
504 | 0 |
|
505 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
506 | 0 | return sendok__; |
507 | 0 | } |
508 | | |
509 | | auto PBrowserParent::SendMouseEvent( |
510 | | const nsString& aType, |
511 | | const float& aX, |
512 | | const float& aY, |
513 | | const int32_t& aButton, |
514 | | const int32_t& aClickCount, |
515 | | const int32_t& aModifiers, |
516 | | const bool& aIgnoreRootScrollFrame) -> bool |
517 | 0 | { |
518 | 0 | IPC::Message* msg__ = PBrowser::Msg_MouseEvent(Id()); |
519 | 0 |
|
520 | 0 | WriteIPDLParam(msg__, this, aType); |
521 | 0 | // Sentinel = 'aType' |
522 | 0 | (msg__)->WriteSentinel(1819585676); |
523 | 0 | WriteIPDLParam(msg__, this, aX); |
524 | 0 | // Sentinel = 'aX' |
525 | 0 | (msg__)->WriteSentinel(2745208761); |
526 | 0 | WriteIPDLParam(msg__, this, aY); |
527 | 0 | // Sentinel = 'aY' |
528 | 0 | (msg__)->WriteSentinel(2745208760); |
529 | 0 | WriteIPDLParam(msg__, this, aButton); |
530 | 0 | // Sentinel = 'aButton' |
531 | 0 | (msg__)->WriteSentinel(1126532398); |
532 | 0 | WriteIPDLParam(msg__, this, aClickCount); |
533 | 0 | // Sentinel = 'aClickCount' |
534 | 0 | (msg__)->WriteSentinel(874077047); |
535 | 0 | WriteIPDLParam(msg__, this, aModifiers); |
536 | 0 | // Sentinel = 'aModifiers' |
537 | 0 | (msg__)->WriteSentinel(261964171); |
538 | 0 | WriteIPDLParam(msg__, this, aIgnoreRootScrollFrame); |
539 | 0 | // Sentinel = 'aIgnoreRootScrollFrame' |
540 | 0 | (msg__)->WriteSentinel(2375977657); |
541 | 0 |
|
542 | 0 |
|
543 | 0 |
|
544 | 0 |
|
545 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
546 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
547 | 0 | } |
548 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_MouseEvent", OTHER); |
549 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
550 | 0 | mozilla::ipc::LogicError("Transition error"); |
551 | 0 | } |
552 | 0 |
|
553 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
554 | 0 | return sendok__; |
555 | 0 | } |
556 | | |
557 | | auto PBrowserParent::SendRealMouseMoveEvent( |
558 | | const WidgetMouseEvent& event, |
559 | | const ScrollableLayerGuid& aGuid, |
560 | | const uint64_t& aInputBlockId) -> bool |
561 | 0 | { |
562 | 0 | IPC::Message* msg__ = PBrowser::Msg_RealMouseMoveEvent(Id()); |
563 | 0 |
|
564 | 0 | WriteIPDLParam(msg__, this, event); |
565 | 0 | // Sentinel = 'event' |
566 | 0 | (msg__)->WriteSentinel(82031261); |
567 | 0 | WriteIPDLParam(msg__, this, aGuid); |
568 | 0 | // Sentinel = 'aGuid' |
569 | 0 | (msg__)->WriteSentinel(2369323719); |
570 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
571 | 0 | // Sentinel = 'aInputBlockId' |
572 | 0 | (msg__)->WriteSentinel(3003300100); |
573 | 0 |
|
574 | 0 |
|
575 | 0 |
|
576 | 0 |
|
577 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
578 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
579 | 0 | } |
580 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RealMouseMoveEvent", OTHER); |
581 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
582 | 0 | mozilla::ipc::LogicError("Transition error"); |
583 | 0 | } |
584 | 0 |
|
585 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
586 | 0 | return sendok__; |
587 | 0 | } |
588 | | |
589 | | auto PBrowserParent::SendNormalPriorityRealMouseMoveEvent( |
590 | | const WidgetMouseEvent& event, |
591 | | const ScrollableLayerGuid& aGuid, |
592 | | const uint64_t& aInputBlockId) -> bool |
593 | 0 | { |
594 | 0 | IPC::Message* msg__ = PBrowser::Msg_NormalPriorityRealMouseMoveEvent(Id()); |
595 | 0 |
|
596 | 0 | WriteIPDLParam(msg__, this, event); |
597 | 0 | // Sentinel = 'event' |
598 | 0 | (msg__)->WriteSentinel(82031261); |
599 | 0 | WriteIPDLParam(msg__, this, aGuid); |
600 | 0 | // Sentinel = 'aGuid' |
601 | 0 | (msg__)->WriteSentinel(2369323719); |
602 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
603 | 0 | // Sentinel = 'aInputBlockId' |
604 | 0 | (msg__)->WriteSentinel(3003300100); |
605 | 0 |
|
606 | 0 |
|
607 | 0 |
|
608 | 0 |
|
609 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
610 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
611 | 0 | } |
612 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NormalPriorityRealMouseMoveEvent", OTHER); |
613 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
614 | 0 | mozilla::ipc::LogicError("Transition error"); |
615 | 0 | } |
616 | 0 |
|
617 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
618 | 0 | return sendok__; |
619 | 0 | } |
620 | | |
621 | | auto PBrowserParent::SendSynthMouseMoveEvent( |
622 | | const WidgetMouseEvent& event, |
623 | | const ScrollableLayerGuid& aGuid, |
624 | | const uint64_t& aInputBlockId) -> bool |
625 | 0 | { |
626 | 0 | IPC::Message* msg__ = PBrowser::Msg_SynthMouseMoveEvent(Id()); |
627 | 0 |
|
628 | 0 | WriteIPDLParam(msg__, this, event); |
629 | 0 | // Sentinel = 'event' |
630 | 0 | (msg__)->WriteSentinel(82031261); |
631 | 0 | WriteIPDLParam(msg__, this, aGuid); |
632 | 0 | // Sentinel = 'aGuid' |
633 | 0 | (msg__)->WriteSentinel(2369323719); |
634 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
635 | 0 | // Sentinel = 'aInputBlockId' |
636 | 0 | (msg__)->WriteSentinel(3003300100); |
637 | 0 |
|
638 | 0 |
|
639 | 0 |
|
640 | 0 |
|
641 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
642 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
643 | 0 | } |
644 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SynthMouseMoveEvent", OTHER); |
645 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
646 | 0 | mozilla::ipc::LogicError("Transition error"); |
647 | 0 | } |
648 | 0 |
|
649 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
650 | 0 | return sendok__; |
651 | 0 | } |
652 | | |
653 | | auto PBrowserParent::SendNormalPrioritySynthMouseMoveEvent( |
654 | | const WidgetMouseEvent& event, |
655 | | const ScrollableLayerGuid& aGuid, |
656 | | const uint64_t& aInputBlockId) -> bool |
657 | 0 | { |
658 | 0 | IPC::Message* msg__ = PBrowser::Msg_NormalPrioritySynthMouseMoveEvent(Id()); |
659 | 0 |
|
660 | 0 | WriteIPDLParam(msg__, this, event); |
661 | 0 | // Sentinel = 'event' |
662 | 0 | (msg__)->WriteSentinel(82031261); |
663 | 0 | WriteIPDLParam(msg__, this, aGuid); |
664 | 0 | // Sentinel = 'aGuid' |
665 | 0 | (msg__)->WriteSentinel(2369323719); |
666 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
667 | 0 | // Sentinel = 'aInputBlockId' |
668 | 0 | (msg__)->WriteSentinel(3003300100); |
669 | 0 |
|
670 | 0 |
|
671 | 0 |
|
672 | 0 |
|
673 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
674 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
675 | 0 | } |
676 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NormalPrioritySynthMouseMoveEvent", OTHER); |
677 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
678 | 0 | mozilla::ipc::LogicError("Transition error"); |
679 | 0 | } |
680 | 0 |
|
681 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
682 | 0 | return sendok__; |
683 | 0 | } |
684 | | |
685 | | auto PBrowserParent::SendRealMouseButtonEvent( |
686 | | const WidgetMouseEvent& event, |
687 | | const ScrollableLayerGuid& aGuid, |
688 | | const uint64_t& aInputBlockId) -> bool |
689 | 0 | { |
690 | 0 | IPC::Message* msg__ = PBrowser::Msg_RealMouseButtonEvent(Id()); |
691 | 0 |
|
692 | 0 | WriteIPDLParam(msg__, this, event); |
693 | 0 | // Sentinel = 'event' |
694 | 0 | (msg__)->WriteSentinel(82031261); |
695 | 0 | WriteIPDLParam(msg__, this, aGuid); |
696 | 0 | // Sentinel = 'aGuid' |
697 | 0 | (msg__)->WriteSentinel(2369323719); |
698 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
699 | 0 | // Sentinel = 'aInputBlockId' |
700 | 0 | (msg__)->WriteSentinel(3003300100); |
701 | 0 |
|
702 | 0 |
|
703 | 0 |
|
704 | 0 |
|
705 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
706 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
707 | 0 | } |
708 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RealMouseButtonEvent", OTHER); |
709 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
710 | 0 | mozilla::ipc::LogicError("Transition error"); |
711 | 0 | } |
712 | 0 |
|
713 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
714 | 0 | return sendok__; |
715 | 0 | } |
716 | | |
717 | | auto PBrowserParent::SendNormalPriorityRealMouseButtonEvent( |
718 | | const WidgetMouseEvent& event, |
719 | | const ScrollableLayerGuid& aGuid, |
720 | | const uint64_t& aInputBlockId) -> bool |
721 | 0 | { |
722 | 0 | IPC::Message* msg__ = PBrowser::Msg_NormalPriorityRealMouseButtonEvent(Id()); |
723 | 0 |
|
724 | 0 | WriteIPDLParam(msg__, this, event); |
725 | 0 | // Sentinel = 'event' |
726 | 0 | (msg__)->WriteSentinel(82031261); |
727 | 0 | WriteIPDLParam(msg__, this, aGuid); |
728 | 0 | // Sentinel = 'aGuid' |
729 | 0 | (msg__)->WriteSentinel(2369323719); |
730 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
731 | 0 | // Sentinel = 'aInputBlockId' |
732 | 0 | (msg__)->WriteSentinel(3003300100); |
733 | 0 |
|
734 | 0 |
|
735 | 0 |
|
736 | 0 |
|
737 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
738 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
739 | 0 | } |
740 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NormalPriorityRealMouseButtonEvent", OTHER); |
741 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
742 | 0 | mozilla::ipc::LogicError("Transition error"); |
743 | 0 | } |
744 | 0 |
|
745 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
746 | 0 | return sendok__; |
747 | 0 | } |
748 | | |
749 | | auto PBrowserParent::SendRealKeyEvent(const WidgetKeyboardEvent& event) -> bool |
750 | 0 | { |
751 | 0 | IPC::Message* msg__ = PBrowser::Msg_RealKeyEvent(Id()); |
752 | 0 |
|
753 | 0 | WriteIPDLParam(msg__, this, event); |
754 | 0 | // Sentinel = 'event' |
755 | 0 | (msg__)->WriteSentinel(82031261); |
756 | 0 |
|
757 | 0 |
|
758 | 0 |
|
759 | 0 |
|
760 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
761 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
762 | 0 | } |
763 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RealKeyEvent", OTHER); |
764 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
765 | 0 | mozilla::ipc::LogicError("Transition error"); |
766 | 0 | } |
767 | 0 |
|
768 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
769 | 0 | return sendok__; |
770 | 0 | } |
771 | | |
772 | | auto PBrowserParent::SendNormalPriorityRealKeyEvent(const WidgetKeyboardEvent& event) -> bool |
773 | 0 | { |
774 | 0 | IPC::Message* msg__ = PBrowser::Msg_NormalPriorityRealKeyEvent(Id()); |
775 | 0 |
|
776 | 0 | WriteIPDLParam(msg__, this, event); |
777 | 0 | // Sentinel = 'event' |
778 | 0 | (msg__)->WriteSentinel(82031261); |
779 | 0 |
|
780 | 0 |
|
781 | 0 |
|
782 | 0 |
|
783 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
784 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
785 | 0 | } |
786 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NormalPriorityRealKeyEvent", OTHER); |
787 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
788 | 0 | mozilla::ipc::LogicError("Transition error"); |
789 | 0 | } |
790 | 0 |
|
791 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
792 | 0 | return sendok__; |
793 | 0 | } |
794 | | |
795 | | auto PBrowserParent::SendMouseWheelEvent( |
796 | | const WidgetWheelEvent& event, |
797 | | const ScrollableLayerGuid& aGuid, |
798 | | const uint64_t& aInputBlockId) -> bool |
799 | 0 | { |
800 | 0 | IPC::Message* msg__ = PBrowser::Msg_MouseWheelEvent(Id()); |
801 | 0 |
|
802 | 0 | WriteIPDLParam(msg__, this, event); |
803 | 0 | // Sentinel = 'event' |
804 | 0 | (msg__)->WriteSentinel(82031261); |
805 | 0 | WriteIPDLParam(msg__, this, aGuid); |
806 | 0 | // Sentinel = 'aGuid' |
807 | 0 | (msg__)->WriteSentinel(2369323719); |
808 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
809 | 0 | // Sentinel = 'aInputBlockId' |
810 | 0 | (msg__)->WriteSentinel(3003300100); |
811 | 0 |
|
812 | 0 |
|
813 | 0 |
|
814 | 0 |
|
815 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
816 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
817 | 0 | } |
818 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_MouseWheelEvent", OTHER); |
819 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
820 | 0 | mozilla::ipc::LogicError("Transition error"); |
821 | 0 | } |
822 | 0 |
|
823 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
824 | 0 | return sendok__; |
825 | 0 | } |
826 | | |
827 | | auto PBrowserParent::SendNormalPriorityMouseWheelEvent( |
828 | | const WidgetWheelEvent& event, |
829 | | const ScrollableLayerGuid& aGuid, |
830 | | const uint64_t& aInputBlockId) -> bool |
831 | 0 | { |
832 | 0 | IPC::Message* msg__ = PBrowser::Msg_NormalPriorityMouseWheelEvent(Id()); |
833 | 0 |
|
834 | 0 | WriteIPDLParam(msg__, this, event); |
835 | 0 | // Sentinel = 'event' |
836 | 0 | (msg__)->WriteSentinel(82031261); |
837 | 0 | WriteIPDLParam(msg__, this, aGuid); |
838 | 0 | // Sentinel = 'aGuid' |
839 | 0 | (msg__)->WriteSentinel(2369323719); |
840 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
841 | 0 | // Sentinel = 'aInputBlockId' |
842 | 0 | (msg__)->WriteSentinel(3003300100); |
843 | 0 |
|
844 | 0 |
|
845 | 0 |
|
846 | 0 |
|
847 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
848 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
849 | 0 | } |
850 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NormalPriorityMouseWheelEvent", OTHER); |
851 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
852 | 0 | mozilla::ipc::LogicError("Transition error"); |
853 | 0 | } |
854 | 0 |
|
855 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
856 | 0 | return sendok__; |
857 | 0 | } |
858 | | |
859 | | auto PBrowserParent::SendRealTouchEvent( |
860 | | const WidgetTouchEvent& aEvent, |
861 | | const ScrollableLayerGuid& aGuid, |
862 | | const uint64_t& aInputBlockId, |
863 | | const nsEventStatus& aApzResponse) -> bool |
864 | 0 | { |
865 | 0 | IPC::Message* msg__ = PBrowser::Msg_RealTouchEvent(Id()); |
866 | 0 |
|
867 | 0 | WriteIPDLParam(msg__, this, aEvent); |
868 | 0 | // Sentinel = 'aEvent' |
869 | 0 | (msg__)->WriteSentinel(3531117325); |
870 | 0 | WriteIPDLParam(msg__, this, aGuid); |
871 | 0 | // Sentinel = 'aGuid' |
872 | 0 | (msg__)->WriteSentinel(2369323719); |
873 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
874 | 0 | // Sentinel = 'aInputBlockId' |
875 | 0 | (msg__)->WriteSentinel(3003300100); |
876 | 0 | WriteIPDLParam(msg__, this, aApzResponse); |
877 | 0 | // Sentinel = 'aApzResponse' |
878 | 0 | (msg__)->WriteSentinel(3394958209); |
879 | 0 |
|
880 | 0 |
|
881 | 0 |
|
882 | 0 |
|
883 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
884 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
885 | 0 | } |
886 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RealTouchEvent", OTHER); |
887 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
888 | 0 | mozilla::ipc::LogicError("Transition error"); |
889 | 0 | } |
890 | 0 |
|
891 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
892 | 0 | return sendok__; |
893 | 0 | } |
894 | | |
895 | | auto PBrowserParent::SendNormalPriorityRealTouchEvent( |
896 | | const WidgetTouchEvent& aEvent, |
897 | | const ScrollableLayerGuid& aGuid, |
898 | | const uint64_t& aInputBlockId, |
899 | | const nsEventStatus& aApzResponse) -> bool |
900 | 0 | { |
901 | 0 | IPC::Message* msg__ = PBrowser::Msg_NormalPriorityRealTouchEvent(Id()); |
902 | 0 |
|
903 | 0 | WriteIPDLParam(msg__, this, aEvent); |
904 | 0 | // Sentinel = 'aEvent' |
905 | 0 | (msg__)->WriteSentinel(3531117325); |
906 | 0 | WriteIPDLParam(msg__, this, aGuid); |
907 | 0 | // Sentinel = 'aGuid' |
908 | 0 | (msg__)->WriteSentinel(2369323719); |
909 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
910 | 0 | // Sentinel = 'aInputBlockId' |
911 | 0 | (msg__)->WriteSentinel(3003300100); |
912 | 0 | WriteIPDLParam(msg__, this, aApzResponse); |
913 | 0 | // Sentinel = 'aApzResponse' |
914 | 0 | (msg__)->WriteSentinel(3394958209); |
915 | 0 |
|
916 | 0 |
|
917 | 0 |
|
918 | 0 |
|
919 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
920 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
921 | 0 | } |
922 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NormalPriorityRealTouchEvent", OTHER); |
923 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
924 | 0 | mozilla::ipc::LogicError("Transition error"); |
925 | 0 | } |
926 | 0 |
|
927 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
928 | 0 | return sendok__; |
929 | 0 | } |
930 | | |
931 | | auto PBrowserParent::SendHandleTap( |
932 | | const TapType& aType, |
933 | | const LayoutDevicePoint& point, |
934 | | const Modifiers& aModifiers, |
935 | | const ScrollableLayerGuid& aGuid, |
936 | | const uint64_t& aInputBlockId) -> bool |
937 | 0 | { |
938 | 0 | IPC::Message* msg__ = PBrowser::Msg_HandleTap(Id()); |
939 | 0 |
|
940 | 0 | WriteIPDLParam(msg__, this, aType); |
941 | 0 | // Sentinel = 'aType' |
942 | 0 | (msg__)->WriteSentinel(1819585676); |
943 | 0 | WriteIPDLParam(msg__, this, point); |
944 | 0 | // Sentinel = 'point' |
945 | 0 | (msg__)->WriteSentinel(3028833543); |
946 | 0 | WriteIPDLParam(msg__, this, aModifiers); |
947 | 0 | // Sentinel = 'aModifiers' |
948 | 0 | (msg__)->WriteSentinel(261964171); |
949 | 0 | WriteIPDLParam(msg__, this, aGuid); |
950 | 0 | // Sentinel = 'aGuid' |
951 | 0 | (msg__)->WriteSentinel(2369323719); |
952 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
953 | 0 | // Sentinel = 'aInputBlockId' |
954 | 0 | (msg__)->WriteSentinel(3003300100); |
955 | 0 |
|
956 | 0 |
|
957 | 0 |
|
958 | 0 |
|
959 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
960 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
961 | 0 | } |
962 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_HandleTap", OTHER); |
963 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
964 | 0 | mozilla::ipc::LogicError("Transition error"); |
965 | 0 | } |
966 | 0 |
|
967 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
968 | 0 | return sendok__; |
969 | 0 | } |
970 | | |
971 | | auto PBrowserParent::SendNormalPriorityHandleTap( |
972 | | const TapType& aType, |
973 | | const LayoutDevicePoint& point, |
974 | | const Modifiers& aModifiers, |
975 | | const ScrollableLayerGuid& aGuid, |
976 | | const uint64_t& aInputBlockId) -> bool |
977 | 0 | { |
978 | 0 | IPC::Message* msg__ = PBrowser::Msg_NormalPriorityHandleTap(Id()); |
979 | 0 |
|
980 | 0 | WriteIPDLParam(msg__, this, aType); |
981 | 0 | // Sentinel = 'aType' |
982 | 0 | (msg__)->WriteSentinel(1819585676); |
983 | 0 | WriteIPDLParam(msg__, this, point); |
984 | 0 | // Sentinel = 'point' |
985 | 0 | (msg__)->WriteSentinel(3028833543); |
986 | 0 | WriteIPDLParam(msg__, this, aModifiers); |
987 | 0 | // Sentinel = 'aModifiers' |
988 | 0 | (msg__)->WriteSentinel(261964171); |
989 | 0 | WriteIPDLParam(msg__, this, aGuid); |
990 | 0 | // Sentinel = 'aGuid' |
991 | 0 | (msg__)->WriteSentinel(2369323719); |
992 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
993 | 0 | // Sentinel = 'aInputBlockId' |
994 | 0 | (msg__)->WriteSentinel(3003300100); |
995 | 0 |
|
996 | 0 |
|
997 | 0 |
|
998 | 0 |
|
999 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1000 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1001 | 0 | } |
1002 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NormalPriorityHandleTap", OTHER); |
1003 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1004 | 0 | mozilla::ipc::LogicError("Transition error"); |
1005 | 0 | } |
1006 | 0 |
|
1007 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1008 | 0 | return sendok__; |
1009 | 0 | } |
1010 | | |
1011 | | auto PBrowserParent::SendRealTouchMoveEvent( |
1012 | | const WidgetTouchEvent& aEvent, |
1013 | | const ScrollableLayerGuid& aGuid, |
1014 | | const uint64_t& aInputBlockId, |
1015 | | const nsEventStatus& aApzResponse) -> bool |
1016 | 0 | { |
1017 | 0 | IPC::Message* msg__ = PBrowser::Msg_RealTouchMoveEvent(Id()); |
1018 | 0 |
|
1019 | 0 | WriteIPDLParam(msg__, this, aEvent); |
1020 | 0 | // Sentinel = 'aEvent' |
1021 | 0 | (msg__)->WriteSentinel(3531117325); |
1022 | 0 | WriteIPDLParam(msg__, this, aGuid); |
1023 | 0 | // Sentinel = 'aGuid' |
1024 | 0 | (msg__)->WriteSentinel(2369323719); |
1025 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
1026 | 0 | // Sentinel = 'aInputBlockId' |
1027 | 0 | (msg__)->WriteSentinel(3003300100); |
1028 | 0 | WriteIPDLParam(msg__, this, aApzResponse); |
1029 | 0 | // Sentinel = 'aApzResponse' |
1030 | 0 | (msg__)->WriteSentinel(3394958209); |
1031 | 0 |
|
1032 | 0 |
|
1033 | 0 |
|
1034 | 0 |
|
1035 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1036 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1037 | 0 | } |
1038 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RealTouchMoveEvent", OTHER); |
1039 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1040 | 0 | mozilla::ipc::LogicError("Transition error"); |
1041 | 0 | } |
1042 | 0 |
|
1043 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1044 | 0 | return sendok__; |
1045 | 0 | } |
1046 | | |
1047 | | auto PBrowserParent::SendNormalPriorityRealTouchMoveEvent( |
1048 | | const WidgetTouchEvent& aEvent, |
1049 | | const ScrollableLayerGuid& aGuid, |
1050 | | const uint64_t& aInputBlockId, |
1051 | | const nsEventStatus& aApzResponse) -> bool |
1052 | 0 | { |
1053 | 0 | IPC::Message* msg__ = PBrowser::Msg_NormalPriorityRealTouchMoveEvent(Id()); |
1054 | 0 |
|
1055 | 0 | WriteIPDLParam(msg__, this, aEvent); |
1056 | 0 | // Sentinel = 'aEvent' |
1057 | 0 | (msg__)->WriteSentinel(3531117325); |
1058 | 0 | WriteIPDLParam(msg__, this, aGuid); |
1059 | 0 | // Sentinel = 'aGuid' |
1060 | 0 | (msg__)->WriteSentinel(2369323719); |
1061 | 0 | WriteIPDLParam(msg__, this, aInputBlockId); |
1062 | 0 | // Sentinel = 'aInputBlockId' |
1063 | 0 | (msg__)->WriteSentinel(3003300100); |
1064 | 0 | WriteIPDLParam(msg__, this, aApzResponse); |
1065 | 0 | // Sentinel = 'aApzResponse' |
1066 | 0 | (msg__)->WriteSentinel(3394958209); |
1067 | 0 |
|
1068 | 0 |
|
1069 | 0 |
|
1070 | 0 |
|
1071 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1072 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1073 | 0 | } |
1074 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NormalPriorityRealTouchMoveEvent", OTHER); |
1075 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1076 | 0 | mozilla::ipc::LogicError("Transition error"); |
1077 | 0 | } |
1078 | 0 |
|
1079 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1080 | 0 | return sendok__; |
1081 | 0 | } |
1082 | | |
1083 | | auto PBrowserParent::SendRealDragEvent( |
1084 | | const WidgetDragEvent& aEvent, |
1085 | | const uint32_t& aDragAction, |
1086 | | const uint32_t& aDropEffect, |
1087 | | const nsCString& aPrincipalURISpec) -> bool |
1088 | 0 | { |
1089 | 0 | IPC::Message* msg__ = PBrowser::Msg_RealDragEvent(Id()); |
1090 | 0 |
|
1091 | 0 | WriteIPDLParam(msg__, this, aEvent); |
1092 | 0 | // Sentinel = 'aEvent' |
1093 | 0 | (msg__)->WriteSentinel(3531117325); |
1094 | 0 | WriteIPDLParam(msg__, this, aDragAction); |
1095 | 0 | // Sentinel = 'aDragAction' |
1096 | 0 | (msg__)->WriteSentinel(2407569738); |
1097 | 0 | WriteIPDLParam(msg__, this, aDropEffect); |
1098 | 0 | // Sentinel = 'aDropEffect' |
1099 | 0 | (msg__)->WriteSentinel(4065146166); |
1100 | 0 | WriteIPDLParam(msg__, this, aPrincipalURISpec); |
1101 | 0 | // Sentinel = 'aPrincipalURISpec' |
1102 | 0 | (msg__)->WriteSentinel(3253868937); |
1103 | 0 |
|
1104 | 0 |
|
1105 | 0 |
|
1106 | 0 |
|
1107 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1108 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1109 | 0 | } |
1110 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RealDragEvent", OTHER); |
1111 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1112 | 0 | mozilla::ipc::LogicError("Transition error"); |
1113 | 0 | } |
1114 | 0 |
|
1115 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1116 | 0 | return sendok__; |
1117 | 0 | } |
1118 | | |
1119 | | auto PBrowserParent::SendPluginEvent(const WidgetPluginEvent& aEvent) -> bool |
1120 | 0 | { |
1121 | 0 | IPC::Message* msg__ = PBrowser::Msg_PluginEvent(Id()); |
1122 | 0 |
|
1123 | 0 | WriteIPDLParam(msg__, this, aEvent); |
1124 | 0 | // Sentinel = 'aEvent' |
1125 | 0 | (msg__)->WriteSentinel(3531117325); |
1126 | 0 |
|
1127 | 0 |
|
1128 | 0 |
|
1129 | 0 |
|
1130 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1131 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1132 | 0 | } |
1133 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PluginEvent", OTHER); |
1134 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1135 | 0 | mozilla::ipc::LogicError("Transition error"); |
1136 | 0 | } |
1137 | 0 |
|
1138 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1139 | 0 | return sendok__; |
1140 | 0 | } |
1141 | | |
1142 | | auto PBrowserParent::SendCompositionEvent(const WidgetCompositionEvent& event) -> bool |
1143 | 0 | { |
1144 | 0 | IPC::Message* msg__ = PBrowser::Msg_CompositionEvent(Id()); |
1145 | 0 |
|
1146 | 0 | WriteIPDLParam(msg__, this, event); |
1147 | 0 | // Sentinel = 'event' |
1148 | 0 | (msg__)->WriteSentinel(82031261); |
1149 | 0 |
|
1150 | 0 |
|
1151 | 0 |
|
1152 | 0 |
|
1153 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1154 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1155 | 0 | } |
1156 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_CompositionEvent", OTHER); |
1157 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1158 | 0 | mozilla::ipc::LogicError("Transition error"); |
1159 | 0 | } |
1160 | 0 |
|
1161 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1162 | 0 | return sendok__; |
1163 | 0 | } |
1164 | | |
1165 | | auto PBrowserParent::SendNormalPriorityCompositionEvent(const WidgetCompositionEvent& event) -> bool |
1166 | 0 | { |
1167 | 0 | IPC::Message* msg__ = PBrowser::Msg_NormalPriorityCompositionEvent(Id()); |
1168 | 0 |
|
1169 | 0 | WriteIPDLParam(msg__, this, event); |
1170 | 0 | // Sentinel = 'event' |
1171 | 0 | (msg__)->WriteSentinel(82031261); |
1172 | 0 |
|
1173 | 0 |
|
1174 | 0 |
|
1175 | 0 |
|
1176 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1177 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1178 | 0 | } |
1179 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NormalPriorityCompositionEvent", OTHER); |
1180 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1181 | 0 | mozilla::ipc::LogicError("Transition error"); |
1182 | 0 | } |
1183 | 0 |
|
1184 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1185 | 0 | return sendok__; |
1186 | 0 | } |
1187 | | |
1188 | | auto PBrowserParent::SendSelectionEvent(const WidgetSelectionEvent& event) -> bool |
1189 | 0 | { |
1190 | 0 | IPC::Message* msg__ = PBrowser::Msg_SelectionEvent(Id()); |
1191 | 0 |
|
1192 | 0 | WriteIPDLParam(msg__, this, event); |
1193 | 0 | // Sentinel = 'event' |
1194 | 0 | (msg__)->WriteSentinel(82031261); |
1195 | 0 |
|
1196 | 0 |
|
1197 | 0 |
|
1198 | 0 |
|
1199 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1200 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1201 | 0 | } |
1202 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SelectionEvent", OTHER); |
1203 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1204 | 0 | mozilla::ipc::LogicError("Transition error"); |
1205 | 0 | } |
1206 | 0 |
|
1207 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1208 | 0 | return sendok__; |
1209 | 0 | } |
1210 | | |
1211 | | auto PBrowserParent::SendNormalPrioritySelectionEvent(const WidgetSelectionEvent& event) -> bool |
1212 | 0 | { |
1213 | 0 | IPC::Message* msg__ = PBrowser::Msg_NormalPrioritySelectionEvent(Id()); |
1214 | 0 |
|
1215 | 0 | WriteIPDLParam(msg__, this, event); |
1216 | 0 | // Sentinel = 'event' |
1217 | 0 | (msg__)->WriteSentinel(82031261); |
1218 | 0 |
|
1219 | 0 |
|
1220 | 0 |
|
1221 | 0 |
|
1222 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1223 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1224 | 0 | } |
1225 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NormalPrioritySelectionEvent", OTHER); |
1226 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1227 | 0 | mozilla::ipc::LogicError("Transition error"); |
1228 | 0 | } |
1229 | 0 |
|
1230 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1231 | 0 | return sendok__; |
1232 | 0 | } |
1233 | | |
1234 | | auto PBrowserParent::SendPasteTransferable( |
1235 | | const IPCDataTransfer& aDataTransfer, |
1236 | | const bool& aIsPrivateData, |
1237 | | const Principal& aRequestingPrincipal, |
1238 | | const uint32_t& aContentPolicyType) -> bool |
1239 | 0 | { |
1240 | 0 | IPC::Message* msg__ = PBrowser::Msg_PasteTransferable(Id()); |
1241 | 0 |
|
1242 | 0 | WriteIPDLParam(msg__, this, aDataTransfer); |
1243 | 0 | // Sentinel = 'aDataTransfer' |
1244 | 0 | (msg__)->WriteSentinel(234514541); |
1245 | 0 | WriteIPDLParam(msg__, this, aIsPrivateData); |
1246 | 0 | // Sentinel = 'aIsPrivateData' |
1247 | 0 | (msg__)->WriteSentinel(1857969960); |
1248 | 0 | WriteIPDLParam(msg__, this, aRequestingPrincipal); |
1249 | 0 | // Sentinel = 'aRequestingPrincipal' |
1250 | 0 | (msg__)->WriteSentinel(2772545910); |
1251 | 0 | WriteIPDLParam(msg__, this, aContentPolicyType); |
1252 | 0 | // Sentinel = 'aContentPolicyType' |
1253 | 0 | (msg__)->WriteSentinel(2302108504); |
1254 | 0 |
|
1255 | 0 |
|
1256 | 0 |
|
1257 | 0 |
|
1258 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1259 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1260 | 0 | } |
1261 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PasteTransferable", OTHER); |
1262 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1263 | 0 | mozilla::ipc::LogicError("Transition error"); |
1264 | 0 | } |
1265 | 0 |
|
1266 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1267 | 0 | return sendok__; |
1268 | 0 | } |
1269 | | |
1270 | | auto PBrowserParent::SendActivateFrameEvent( |
1271 | | const nsString& aType, |
1272 | | const bool& capture) -> bool |
1273 | 0 | { |
1274 | 0 | IPC::Message* msg__ = PBrowser::Msg_ActivateFrameEvent(Id()); |
1275 | 0 |
|
1276 | 0 | WriteIPDLParam(msg__, this, aType); |
1277 | 0 | // Sentinel = 'aType' |
1278 | 0 | (msg__)->WriteSentinel(1819585676); |
1279 | 0 | WriteIPDLParam(msg__, this, capture); |
1280 | 0 | // Sentinel = 'capture' |
1281 | 0 | (msg__)->WriteSentinel(3304275361); |
1282 | 0 |
|
1283 | 0 |
|
1284 | 0 |
|
1285 | 0 |
|
1286 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1287 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1288 | 0 | } |
1289 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_ActivateFrameEvent", OTHER); |
1290 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1291 | 0 | mozilla::ipc::LogicError("Transition error"); |
1292 | 0 | } |
1293 | 0 |
|
1294 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1295 | 0 | return sendok__; |
1296 | 0 | } |
1297 | | |
1298 | | auto PBrowserParent::SendLoadRemoteScript( |
1299 | | const nsString& aURL, |
1300 | | const bool& aRunInGlobalScope) -> bool |
1301 | 0 | { |
1302 | 0 | IPC::Message* msg__ = PBrowser::Msg_LoadRemoteScript(Id()); |
1303 | 0 |
|
1304 | 0 | WriteIPDLParam(msg__, this, aURL); |
1305 | 0 | // Sentinel = 'aURL' |
1306 | 0 | (msg__)->WriteSentinel(2075506328); |
1307 | 0 | WriteIPDLParam(msg__, this, aRunInGlobalScope); |
1308 | 0 | // Sentinel = 'aRunInGlobalScope' |
1309 | 0 | (msg__)->WriteSentinel(1235757917); |
1310 | 0 |
|
1311 | 0 |
|
1312 | 0 |
|
1313 | 0 |
|
1314 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1315 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1316 | 0 | } |
1317 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_LoadRemoteScript", OTHER); |
1318 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1319 | 0 | mozilla::ipc::LogicError("Transition error"); |
1320 | 0 | } |
1321 | 0 |
|
1322 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1323 | 0 | return sendok__; |
1324 | 0 | } |
1325 | | |
1326 | | auto PBrowserParent::SendDestroy() -> bool |
1327 | 0 | { |
1328 | 0 | IPC::Message* msg__ = PBrowser::Msg_Destroy(Id()); |
1329 | 0 |
|
1330 | 0 |
|
1331 | 0 |
|
1332 | 0 |
|
1333 | 0 |
|
1334 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1335 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1336 | 0 | } |
1337 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_Destroy", OTHER); |
1338 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1339 | 0 | mozilla::ipc::LogicError("Transition error"); |
1340 | 0 | } |
1341 | 0 |
|
1342 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1343 | 0 | return sendok__; |
1344 | 0 | } |
1345 | | |
1346 | | auto PBrowserParent::SendSetDocShellIsActive(const bool& aIsActive) -> bool |
1347 | 0 | { |
1348 | 0 | IPC::Message* msg__ = PBrowser::Msg_SetDocShellIsActive(Id()); |
1349 | 0 |
|
1350 | 0 | WriteIPDLParam(msg__, this, aIsActive); |
1351 | 0 | // Sentinel = 'aIsActive' |
1352 | 0 | (msg__)->WriteSentinel(3793932970); |
1353 | 0 |
|
1354 | 0 |
|
1355 | 0 |
|
1356 | 0 |
|
1357 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1358 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1359 | 0 | } |
1360 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetDocShellIsActive", OTHER); |
1361 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1362 | 0 | mozilla::ipc::LogicError("Transition error"); |
1363 | 0 | } |
1364 | 0 |
|
1365 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1366 | 0 | return sendok__; |
1367 | 0 | } |
1368 | | |
1369 | | auto PBrowserParent::SendRenderLayers( |
1370 | | const bool& aEnabled, |
1371 | | const bool& aForceRepaint, |
1372 | | const LayersObserverEpoch& aEpoch) -> bool |
1373 | 0 | { |
1374 | 0 | IPC::Message* msg__ = PBrowser::Msg_RenderLayers(Id()); |
1375 | 0 |
|
1376 | 0 | WriteIPDLParam(msg__, this, aEnabled); |
1377 | 0 | // Sentinel = 'aEnabled' |
1378 | 0 | (msg__)->WriteSentinel(2225039408); |
1379 | 0 | WriteIPDLParam(msg__, this, aForceRepaint); |
1380 | 0 | // Sentinel = 'aForceRepaint' |
1381 | 0 | (msg__)->WriteSentinel(3746677678); |
1382 | 0 | WriteIPDLParam(msg__, this, aEpoch); |
1383 | 0 | // Sentinel = 'aEpoch' |
1384 | 0 | (msg__)->WriteSentinel(2333012390); |
1385 | 0 |
|
1386 | 0 |
|
1387 | 0 |
|
1388 | 0 |
|
1389 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1390 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1391 | 0 | } |
1392 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RenderLayers", OTHER); |
1393 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1394 | 0 | mozilla::ipc::LogicError("Transition error"); |
1395 | 0 | } |
1396 | 0 |
|
1397 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1398 | 0 | return sendok__; |
1399 | 0 | } |
1400 | | |
1401 | | auto PBrowserParent::SendSuppressDisplayport(const bool& aEnabled) -> bool |
1402 | 0 | { |
1403 | 0 | IPC::Message* msg__ = PBrowser::Msg_SuppressDisplayport(Id()); |
1404 | 0 |
|
1405 | 0 | WriteIPDLParam(msg__, this, aEnabled); |
1406 | 0 | // Sentinel = 'aEnabled' |
1407 | 0 | (msg__)->WriteSentinel(2225039408); |
1408 | 0 |
|
1409 | 0 |
|
1410 | 0 |
|
1411 | 0 |
|
1412 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1413 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1414 | 0 | } |
1415 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SuppressDisplayport", OTHER); |
1416 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1417 | 0 | mozilla::ipc::LogicError("Transition error"); |
1418 | 0 | } |
1419 | 0 |
|
1420 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1421 | 0 | return sendok__; |
1422 | 0 | } |
1423 | | |
1424 | | auto PBrowserParent::SendNavigateByKey( |
1425 | | const bool& aForward, |
1426 | | const bool& aForDocumentNavigation) -> bool |
1427 | 0 | { |
1428 | 0 | IPC::Message* msg__ = PBrowser::Msg_NavigateByKey(Id()); |
1429 | 0 |
|
1430 | 0 | WriteIPDLParam(msg__, this, aForward); |
1431 | 0 | // Sentinel = 'aForward' |
1432 | 0 | (msg__)->WriteSentinel(3645263920); |
1433 | 0 | WriteIPDLParam(msg__, this, aForDocumentNavigation); |
1434 | 0 | // Sentinel = 'aForDocumentNavigation' |
1435 | 0 | (msg__)->WriteSentinel(3680356409); |
1436 | 0 |
|
1437 | 0 |
|
1438 | 0 |
|
1439 | 0 |
|
1440 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1441 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1442 | 0 | } |
1443 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NavigateByKey", OTHER); |
1444 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1445 | 0 | mozilla::ipc::LogicError("Transition error"); |
1446 | 0 | } |
1447 | 0 |
|
1448 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1449 | 0 | return sendok__; |
1450 | 0 | } |
1451 | | |
1452 | | auto PBrowserParent::SendRequestNotifyAfterRemotePaint() -> bool |
1453 | 0 | { |
1454 | 0 | IPC::Message* msg__ = PBrowser::Msg_RequestNotifyAfterRemotePaint(Id()); |
1455 | 0 |
|
1456 | 0 |
|
1457 | 0 |
|
1458 | 0 |
|
1459 | 0 |
|
1460 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1461 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1462 | 0 | } |
1463 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RequestNotifyAfterRemotePaint", OTHER); |
1464 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1465 | 0 | mozilla::ipc::LogicError("Transition error"); |
1466 | 0 | } |
1467 | 0 |
|
1468 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1469 | 0 | return sendok__; |
1470 | 0 | } |
1471 | | |
1472 | | auto PBrowserParent::SendUIResolutionChanged( |
1473 | | const float& dpi, |
1474 | | const int32_t& rounding, |
1475 | | const double& scale) -> bool |
1476 | 0 | { |
1477 | 0 | IPC::Message* msg__ = PBrowser::Msg_UIResolutionChanged(Id()); |
1478 | 0 |
|
1479 | 0 | WriteIPDLParam(msg__, this, dpi); |
1480 | 0 | // Sentinel = 'dpi' |
1481 | 0 | (msg__)->WriteSentinel(1553775742); |
1482 | 0 | WriteIPDLParam(msg__, this, rounding); |
1483 | 0 | // Sentinel = 'rounding' |
1484 | 0 | (msg__)->WriteSentinel(651856552); |
1485 | 0 | WriteIPDLParam(msg__, this, scale); |
1486 | 0 | // Sentinel = 'scale' |
1487 | 0 | (msg__)->WriteSentinel(590599843); |
1488 | 0 |
|
1489 | 0 |
|
1490 | 0 |
|
1491 | 0 |
|
1492 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1493 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1494 | 0 | } |
1495 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_UIResolutionChanged", OTHER); |
1496 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1497 | 0 | mozilla::ipc::LogicError("Transition error"); |
1498 | 0 | } |
1499 | 0 |
|
1500 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1501 | 0 | return sendok__; |
1502 | 0 | } |
1503 | | |
1504 | | auto PBrowserParent::SendThemeChanged(const nsTArray<LookAndFeelInt>& lookAndFeelIntCache) -> bool |
1505 | 0 | { |
1506 | 0 | IPC::Message* msg__ = PBrowser::Msg_ThemeChanged(Id()); |
1507 | 0 |
|
1508 | 0 | WriteIPDLParam(msg__, this, lookAndFeelIntCache); |
1509 | 0 | // Sentinel = 'lookAndFeelIntCache' |
1510 | 0 | (msg__)->WriteSentinel(4279224656); |
1511 | 0 |
|
1512 | 0 |
|
1513 | 0 |
|
1514 | 0 |
|
1515 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1516 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1517 | 0 | } |
1518 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_ThemeChanged", OTHER); |
1519 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1520 | 0 | mozilla::ipc::LogicError("Transition error"); |
1521 | 0 | } |
1522 | 0 |
|
1523 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1524 | 0 | return sendok__; |
1525 | 0 | } |
1526 | | |
1527 | | auto PBrowserParent::SendSwappedWithOtherRemoteLoader(const IPCTabContext& context) -> bool |
1528 | 0 | { |
1529 | 0 | IPC::Message* msg__ = PBrowser::Msg_SwappedWithOtherRemoteLoader(Id()); |
1530 | 0 |
|
1531 | 0 | WriteIPDLParam(msg__, this, context); |
1532 | 0 | // Sentinel = 'context' |
1533 | 0 | (msg__)->WriteSentinel(3514529014); |
1534 | 0 |
|
1535 | 0 |
|
1536 | 0 |
|
1537 | 0 |
|
1538 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1539 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1540 | 0 | } |
1541 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SwappedWithOtherRemoteLoader", OTHER); |
1542 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1543 | 0 | mozilla::ipc::LogicError("Transition error"); |
1544 | 0 | } |
1545 | 0 |
|
1546 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1547 | 0 | return sendok__; |
1548 | 0 | } |
1549 | | |
1550 | | auto PBrowserParent::SendHandleAccessKey( |
1551 | | const WidgetKeyboardEvent& event, |
1552 | | const nsTArray<uint32_t>& charCodes) -> bool |
1553 | 0 | { |
1554 | 0 | IPC::Message* msg__ = PBrowser::Msg_HandleAccessKey(Id()); |
1555 | 0 |
|
1556 | 0 | WriteIPDLParam(msg__, this, event); |
1557 | 0 | // Sentinel = 'event' |
1558 | 0 | (msg__)->WriteSentinel(82031261); |
1559 | 0 | WriteIPDLParam(msg__, this, charCodes); |
1560 | 0 | // Sentinel = 'charCodes' |
1561 | 0 | (msg__)->WriteSentinel(2372585155); |
1562 | 0 |
|
1563 | 0 |
|
1564 | 0 |
|
1565 | 0 |
|
1566 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1567 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1568 | 0 | } |
1569 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_HandleAccessKey", OTHER); |
1570 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1571 | 0 | mozilla::ipc::LogicError("Transition error"); |
1572 | 0 | } |
1573 | 0 |
|
1574 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1575 | 0 | return sendok__; |
1576 | 0 | } |
1577 | | |
1578 | | auto PBrowserParent::SendSetUseGlobalHistory(const bool& aUse) -> bool |
1579 | 0 | { |
1580 | 0 | IPC::Message* msg__ = PBrowser::Msg_SetUseGlobalHistory(Id()); |
1581 | 0 |
|
1582 | 0 | WriteIPDLParam(msg__, this, aUse); |
1583 | 0 | // Sentinel = 'aUse' |
1584 | 0 | (msg__)->WriteSentinel(2044506322); |
1585 | 0 |
|
1586 | 0 |
|
1587 | 0 |
|
1588 | 0 |
|
1589 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1590 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1591 | 0 | } |
1592 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetUseGlobalHistory", OTHER); |
1593 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1594 | 0 | mozilla::ipc::LogicError("Transition error"); |
1595 | 0 | } |
1596 | 0 |
|
1597 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1598 | 0 | return sendok__; |
1599 | 0 | } |
1600 | | |
1601 | | auto PBrowserParent::SendHandledWindowedPluginKeyEvent( |
1602 | | const NativeEventData& aKeyEventData, |
1603 | | const bool& aIsConsumed) -> bool |
1604 | 0 | { |
1605 | 0 | IPC::Message* msg__ = PBrowser::Msg_HandledWindowedPluginKeyEvent(Id()); |
1606 | 0 |
|
1607 | 0 | WriteIPDLParam(msg__, this, aKeyEventData); |
1608 | 0 | // Sentinel = 'aKeyEventData' |
1609 | 0 | (msg__)->WriteSentinel(1896682639); |
1610 | 0 | WriteIPDLParam(msg__, this, aIsConsumed); |
1611 | 0 | // Sentinel = 'aIsConsumed' |
1612 | 0 | (msg__)->WriteSentinel(95020648); |
1613 | 0 |
|
1614 | 0 |
|
1615 | 0 |
|
1616 | 0 |
|
1617 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1618 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1619 | 0 | } |
1620 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_HandledWindowedPluginKeyEvent", OTHER); |
1621 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1622 | 0 | mozilla::ipc::LogicError("Transition error"); |
1623 | 0 | } |
1624 | 0 |
|
1625 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1626 | 0 | return sendok__; |
1627 | 0 | } |
1628 | | |
1629 | | auto PBrowserParent::SendPrint( |
1630 | | const uint64_t& aOuterWindowID, |
1631 | | const PrintData& aPrintData) -> bool |
1632 | 0 | { |
1633 | 0 | IPC::Message* msg__ = PBrowser::Msg_Print(Id()); |
1634 | 0 |
|
1635 | 0 | WriteIPDLParam(msg__, this, aOuterWindowID); |
1636 | 0 | // Sentinel = 'aOuterWindowID' |
1637 | 0 | (msg__)->WriteSentinel(3438169907); |
1638 | 0 | WriteIPDLParam(msg__, this, aPrintData); |
1639 | 0 | // Sentinel = 'aPrintData' |
1640 | 0 | (msg__)->WriteSentinel(3354278476); |
1641 | 0 |
|
1642 | 0 |
|
1643 | 0 |
|
1644 | 0 |
|
1645 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1646 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1647 | 0 | } |
1648 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_Print", OTHER); |
1649 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1650 | 0 | mozilla::ipc::LogicError("Transition error"); |
1651 | 0 | } |
1652 | 0 |
|
1653 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1654 | 0 | return sendok__; |
1655 | 0 | } |
1656 | | |
1657 | | auto PBrowserParent::SendUpdateNativeWindowHandle(const uintptr_t& aNewHandle) -> bool |
1658 | 0 | { |
1659 | 0 | IPC::Message* msg__ = PBrowser::Msg_UpdateNativeWindowHandle(Id()); |
1660 | 0 |
|
1661 | 0 | WriteIPDLParam(msg__, this, aNewHandle); |
1662 | 0 | // Sentinel = 'aNewHandle' |
1663 | 0 | (msg__)->WriteSentinel(4208797485); |
1664 | 0 |
|
1665 | 0 |
|
1666 | 0 |
|
1667 | 0 |
|
1668 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1669 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1670 | 0 | } |
1671 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_UpdateNativeWindowHandle", OTHER); |
1672 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1673 | 0 | mozilla::ipc::LogicError("Transition error"); |
1674 | 0 | } |
1675 | 0 |
|
1676 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1677 | 0 | return sendok__; |
1678 | 0 | } |
1679 | | |
1680 | | auto PBrowserParent::SendAwaitLargeAlloc() -> bool |
1681 | 0 | { |
1682 | 0 | IPC::Message* msg__ = PBrowser::Msg_AwaitLargeAlloc(Id()); |
1683 | 0 |
|
1684 | 0 |
|
1685 | 0 |
|
1686 | 0 |
|
1687 | 0 |
|
1688 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1689 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1690 | 0 | } |
1691 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_AwaitLargeAlloc", OTHER); |
1692 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1693 | 0 | mozilla::ipc::LogicError("Transition error"); |
1694 | 0 | } |
1695 | 0 |
|
1696 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1697 | 0 | return sendok__; |
1698 | 0 | } |
1699 | | |
1700 | | auto PBrowserParent::SendSetWindowName(const nsString& aName) -> bool |
1701 | 0 | { |
1702 | 0 | IPC::Message* msg__ = PBrowser::Msg_SetWindowName(Id()); |
1703 | 0 |
|
1704 | 0 | WriteIPDLParam(msg__, this, aName); |
1705 | 0 | // Sentinel = 'aName' |
1706 | 0 | (msg__)->WriteSentinel(1450162941); |
1707 | 0 |
|
1708 | 0 |
|
1709 | 0 |
|
1710 | 0 |
|
1711 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1712 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1713 | 0 | } |
1714 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetWindowName", OTHER); |
1715 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1716 | 0 | mozilla::ipc::LogicError("Transition error"); |
1717 | 0 | } |
1718 | 0 |
|
1719 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1720 | 0 | return sendok__; |
1721 | 0 | } |
1722 | | |
1723 | | auto PBrowserParent::SendAllowScriptsToClose() -> bool |
1724 | 0 | { |
1725 | 0 | IPC::Message* msg__ = PBrowser::Msg_AllowScriptsToClose(Id()); |
1726 | 0 |
|
1727 | 0 |
|
1728 | 0 |
|
1729 | 0 |
|
1730 | 0 |
|
1731 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1732 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1733 | 0 | } |
1734 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_AllowScriptsToClose", OTHER); |
1735 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1736 | 0 | mozilla::ipc::LogicError("Transition error"); |
1737 | 0 | } |
1738 | 0 |
|
1739 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1740 | 0 | return sendok__; |
1741 | 0 | } |
1742 | | |
1743 | | auto PBrowserParent::SendSetOriginAttributes(const OriginAttributes& aOriginAttributes) -> bool |
1744 | 0 | { |
1745 | 0 | IPC::Message* msg__ = PBrowser::Msg_SetOriginAttributes(Id()); |
1746 | 0 |
|
1747 | 0 | WriteIPDLParam(msg__, this, aOriginAttributes); |
1748 | 0 | // Sentinel = 'aOriginAttributes' |
1749 | 0 | (msg__)->WriteSentinel(2175998517); |
1750 | 0 |
|
1751 | 0 |
|
1752 | 0 |
|
1753 | 0 |
|
1754 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1755 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1756 | 0 | } |
1757 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetOriginAttributes", OTHER); |
1758 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1759 | 0 | mozilla::ipc::LogicError("Transition error"); |
1760 | 0 | } |
1761 | 0 |
|
1762 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1763 | 0 | return sendok__; |
1764 | 0 | } |
1765 | | |
1766 | | auto PBrowserParent::SendSetWidgetNativeData(const WindowsHandle& aHandle) -> bool |
1767 | 0 | { |
1768 | 0 | IPC::Message* msg__ = PBrowser::Msg_SetWidgetNativeData(Id()); |
1769 | 0 |
|
1770 | 0 | WriteIPDLParam(msg__, this, aHandle); |
1771 | 0 | // Sentinel = 'aHandle' |
1772 | 0 | (msg__)->WriteSentinel(2892339440); |
1773 | 0 |
|
1774 | 0 |
|
1775 | 0 |
|
1776 | 0 |
|
1777 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1778 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1779 | 0 | } |
1780 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetWidgetNativeData", OTHER); |
1781 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1782 | 0 | mozilla::ipc::LogicError("Transition error"); |
1783 | 0 | } |
1784 | 0 |
|
1785 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1786 | 0 | return sendok__; |
1787 | 0 | } |
1788 | | |
1789 | | auto PBrowserParent::RemoveManagee( |
1790 | | int32_t aProtocolId, |
1791 | | IProtocol* aListener) -> void |
1792 | 0 | { |
1793 | 0 | switch (aProtocolId) { |
1794 | 0 | case PColorPickerMsgStart: |
1795 | 0 | { |
1796 | 0 | PColorPickerParent* actor = static_cast<PColorPickerParent*>(aListener); |
1797 | 0 | auto& container = mManagedPColorPickerParent; |
1798 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
1799 | 0 |
|
1800 | 0 | (container).RemoveEntry(actor); |
1801 | 0 | DeallocPColorPickerParent(actor); |
1802 | 0 | return; |
1803 | 0 | } |
1804 | 0 | case PDocAccessibleMsgStart: |
1805 | 0 | { |
1806 | 0 | PDocAccessibleParent* actor = static_cast<PDocAccessibleParent*>(aListener); |
1807 | 0 | auto& container = mManagedPDocAccessibleParent; |
1808 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
1809 | 0 |
|
1810 | 0 | (container).RemoveEntry(actor); |
1811 | 0 | DeallocPDocAccessibleParent(actor); |
1812 | 0 | return; |
1813 | 0 | } |
1814 | 0 | case PFilePickerMsgStart: |
1815 | 0 | { |
1816 | 0 | PFilePickerParent* actor = static_cast<PFilePickerParent*>(aListener); |
1817 | 0 | auto& container = mManagedPFilePickerParent; |
1818 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
1819 | 0 |
|
1820 | 0 | (container).RemoveEntry(actor); |
1821 | 0 | DeallocPFilePickerParent(actor); |
1822 | 0 | return; |
1823 | 0 | } |
1824 | 0 | case PIndexedDBPermissionRequestMsgStart: |
1825 | 0 | { |
1826 | 0 | PIndexedDBPermissionRequestParent* actor = static_cast<PIndexedDBPermissionRequestParent*>(aListener); |
1827 | 0 | auto& container = mManagedPIndexedDBPermissionRequestParent; |
1828 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
1829 | 0 |
|
1830 | 0 | (container).RemoveEntry(actor); |
1831 | 0 | DeallocPIndexedDBPermissionRequestParent(actor); |
1832 | 0 | return; |
1833 | 0 | } |
1834 | 0 | case PRenderFrameMsgStart: |
1835 | 0 | { |
1836 | 0 | PRenderFrameParent* actor = static_cast<PRenderFrameParent*>(aListener); |
1837 | 0 | auto& container = mManagedPRenderFrameParent; |
1838 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
1839 | 0 |
|
1840 | 0 | (container).RemoveEntry(actor); |
1841 | 0 | DeallocPRenderFrameParent(actor); |
1842 | 0 | return; |
1843 | 0 | } |
1844 | 0 | case PPluginWidgetMsgStart: |
1845 | 0 | { |
1846 | 0 | PPluginWidgetParent* actor = static_cast<PPluginWidgetParent*>(aListener); |
1847 | 0 | auto& container = mManagedPPluginWidgetParent; |
1848 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
1849 | 0 |
|
1850 | 0 | (container).RemoveEntry(actor); |
1851 | 0 | DeallocPPluginWidgetParent(actor); |
1852 | 0 | return; |
1853 | 0 | } |
1854 | 0 | case PPaymentRequestMsgStart: |
1855 | 0 | { |
1856 | 0 | PPaymentRequestParent* actor = static_cast<PPaymentRequestParent*>(aListener); |
1857 | 0 | auto& container = mManagedPPaymentRequestParent; |
1858 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
1859 | 0 |
|
1860 | 0 | (container).RemoveEntry(actor); |
1861 | 0 | DeallocPPaymentRequestParent(actor); |
1862 | 0 | return; |
1863 | 0 | } |
1864 | 0 | default: |
1865 | 0 | { |
1866 | 0 | FatalError("unreached"); |
1867 | 0 | return; |
1868 | 0 | } |
1869 | 0 | } |
1870 | 0 | } |
1871 | | |
1872 | | auto PBrowserParent::OnMessageReceived(const Message& msg__) -> PBrowserParent::Result |
1873 | 0 | { |
1874 | 0 | switch ((msg__).type()) { |
1875 | 0 | case PBrowser::Msg_AsyncMessage__ID: |
1876 | 0 | { |
1877 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1878 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1879 | 0 | } |
1880 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_AsyncMessage", OTHER); |
1881 | 0 |
|
1882 | 0 | PickleIterator iter__(msg__); |
1883 | 0 | nsString aMessage; |
1884 | 0 | nsTArray<CpowEntry> aCpows; |
1885 | 0 | Principal aPrincipal; |
1886 | 0 | ClonedMessageData aData; |
1887 | 0 |
|
1888 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMessage)))))) { |
1889 | 0 | FatalError("Error deserializing 'nsString'"); |
1890 | 0 | return MsgValueError; |
1891 | 0 | } |
1892 | 0 | // Sentinel = 'aMessage' |
1893 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) { |
1894 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
1895 | 0 | return MsgValueError; |
1896 | 0 | } |
1897 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCpows)))))) { |
1898 | 0 | FatalError("Error deserializing 'nsTArray'"); |
1899 | 0 | return MsgValueError; |
1900 | 0 | } |
1901 | 0 | // Sentinel = 'aCpows' |
1902 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) { |
1903 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
1904 | 0 | return MsgValueError; |
1905 | 0 | } |
1906 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipal)))))) { |
1907 | 0 | FatalError("Error deserializing 'Principal'"); |
1908 | 0 | return MsgValueError; |
1909 | 0 | } |
1910 | 0 | // Sentinel = 'aPrincipal' |
1911 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) { |
1912 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
1913 | 0 | return MsgValueError; |
1914 | 0 | } |
1915 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aData)))))) { |
1916 | 0 | FatalError("Error deserializing 'ClonedMessageData'"); |
1917 | 0 | return MsgValueError; |
1918 | 0 | } |
1919 | 0 | // Sentinel = 'aData' |
1920 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) { |
1921 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'"); |
1922 | 0 | return MsgValueError; |
1923 | 0 | } |
1924 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1925 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1926 | 0 | FatalError("Transition error"); |
1927 | 0 | return MsgValueError; |
1928 | 0 | } |
1929 | 0 | if ((!(RecvAsyncMessage(aMessage, std::move(aCpows), aPrincipal, aData)))) { |
1930 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1931 | 0 | // Error handled in mozilla::ipc::IPCResult |
1932 | 0 | return MsgProcessingError; |
1933 | 0 | } |
1934 | 0 | |
1935 | 0 | return MsgProcessed; |
1936 | 0 | } |
1937 | 0 | case PBrowser::Reply_PRenderFrameConstructor__ID: |
1938 | 0 | { |
1939 | 0 | return MsgProcessed; |
1940 | 0 | } |
1941 | 0 | case PBrowser::Msg_PRenderFrameConstructor__ID: |
1942 | 0 | { |
1943 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1944 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1945 | 0 | } |
1946 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PRenderFrameConstructor", OTHER); |
1947 | 0 |
|
1948 | 0 | PickleIterator iter__(msg__); |
1949 | 0 | ActorHandle handle__; |
1950 | 0 | PRenderFrameParent* actor; |
1951 | 0 |
|
1952 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
1953 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
1954 | 0 | return MsgValueError; |
1955 | 0 | } |
1956 | 0 | // Sentinel = 'actor' |
1957 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
1958 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
1959 | 0 | return MsgValueError; |
1960 | 0 | } |
1961 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1962 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1963 | 0 | FatalError("Transition error"); |
1964 | 0 | return MsgValueError; |
1965 | 0 | } |
1966 | 0 | actor = AllocPRenderFrameParent(); |
1967 | 0 | if ((!(actor))) { |
1968 | 0 | NS_WARNING("Error constructing actor PRenderFrameParent"); |
1969 | 0 | return MsgValueError; |
1970 | 0 | } |
1971 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
1972 | 0 | (mManagedPRenderFrameParent).PutEntry(actor); |
1973 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1974 | 0 |
|
1975 | 0 | if ((!(RecvPRenderFrameConstructor(actor)))) { |
1976 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1977 | 0 | // Error handled in mozilla::ipc::IPCResult |
1978 | 0 | return MsgProcessingError; |
1979 | 0 | } |
1980 | 0 | |
1981 | 0 | return MsgProcessed; |
1982 | 0 | } |
1983 | 0 | case PBrowser::Msg_PDocAccessibleConstructor__ID: |
1984 | 0 | { |
1985 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
1986 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1987 | 0 | } |
1988 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PDocAccessibleConstructor", OTHER); |
1989 | 0 |
|
1990 | 0 | PickleIterator iter__(msg__); |
1991 | 0 | ActorHandle handle__; |
1992 | 0 | PDocAccessibleParent* actor; |
1993 | 0 | PDocAccessibleParent* aParentDoc; |
1994 | 0 | uint64_t aParentAcc; |
1995 | 0 | uint32_t aMsaaID; |
1996 | 0 | IAccessibleHolder aDocCOMProxy; |
1997 | 0 |
|
1998 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
1999 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
2000 | 0 | return MsgValueError; |
2001 | 0 | } |
2002 | 0 | // Sentinel = 'actor' |
2003 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
2004 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
2005 | 0 | return MsgValueError; |
2006 | 0 | } |
2007 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aParentDoc)))))) { |
2008 | 0 | FatalError("Error deserializing 'PDocAccessibleParent'"); |
2009 | 0 | return MsgValueError; |
2010 | 0 | } |
2011 | 0 | // Sentinel = 'aParentDoc' |
2012 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2520575183)))) { |
2013 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PDocAccessibleParent'"); |
2014 | 0 | return MsgValueError; |
2015 | 0 | } |
2016 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aParentAcc)))))) { |
2017 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2018 | 0 | return MsgValueError; |
2019 | 0 | } |
2020 | 0 | // Sentinel = 'aParentAcc' |
2021 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1778507454)))) { |
2022 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2023 | 0 | return MsgValueError; |
2024 | 0 | } |
2025 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMsaaID)))))) { |
2026 | 0 | FatalError("Error deserializing 'uint32_t'"); |
2027 | 0 | return MsgValueError; |
2028 | 0 | } |
2029 | 0 | // Sentinel = 'aMsaaID' |
2030 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 645559775)))) { |
2031 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
2032 | 0 | return MsgValueError; |
2033 | 0 | } |
2034 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDocCOMProxy)))))) { |
2035 | 0 | FatalError("Error deserializing 'IAccessibleHolder'"); |
2036 | 0 | return MsgValueError; |
2037 | 0 | } |
2038 | 0 | // Sentinel = 'aDocCOMProxy' |
2039 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4116882232)))) { |
2040 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'IAccessibleHolder'"); |
2041 | 0 | return MsgValueError; |
2042 | 0 | } |
2043 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2044 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2045 | 0 | FatalError("Transition error"); |
2046 | 0 | return MsgValueError; |
2047 | 0 | } |
2048 | 0 | actor = AllocPDocAccessibleParent(aParentDoc, aParentAcc, aMsaaID, aDocCOMProxy); |
2049 | 0 | if ((!(actor))) { |
2050 | 0 | NS_WARNING("Error constructing actor PDocAccessibleParent"); |
2051 | 0 | return MsgValueError; |
2052 | 0 | } |
2053 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
2054 | 0 | (mManagedPDocAccessibleParent).PutEntry(actor); |
2055 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
2056 | 0 |
|
2057 | 0 | if ((!(RecvPDocAccessibleConstructor(actor, aParentDoc, aParentAcc, aMsaaID, aDocCOMProxy)))) { |
2058 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2059 | 0 | // Error handled in mozilla::ipc::IPCResult |
2060 | 0 | return MsgProcessingError; |
2061 | 0 | } |
2062 | 0 | |
2063 | 0 | return MsgProcessed; |
2064 | 0 | } |
2065 | 0 | case PBrowser::Msg_PPaymentRequestConstructor__ID: |
2066 | 0 | { |
2067 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2068 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2069 | 0 | } |
2070 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PPaymentRequestConstructor", OTHER); |
2071 | 0 |
|
2072 | 0 | PickleIterator iter__(msg__); |
2073 | 0 | ActorHandle handle__; |
2074 | 0 | PPaymentRequestParent* actor; |
2075 | 0 |
|
2076 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
2077 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
2078 | 0 | return MsgValueError; |
2079 | 0 | } |
2080 | 0 | // Sentinel = 'actor' |
2081 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
2082 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
2083 | 0 | return MsgValueError; |
2084 | 0 | } |
2085 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2086 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2087 | 0 | FatalError("Transition error"); |
2088 | 0 | return MsgValueError; |
2089 | 0 | } |
2090 | 0 | actor = AllocPPaymentRequestParent(); |
2091 | 0 | if ((!(actor))) { |
2092 | 0 | NS_WARNING("Error constructing actor PPaymentRequestParent"); |
2093 | 0 | return MsgValueError; |
2094 | 0 | } |
2095 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
2096 | 0 | (mManagedPPaymentRequestParent).PutEntry(actor); |
2097 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
2098 | 0 |
|
2099 | 0 | if ((!(RecvPPaymentRequestConstructor(actor)))) { |
2100 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2101 | 0 | // Error handled in mozilla::ipc::IPCResult |
2102 | 0 | return MsgProcessingError; |
2103 | 0 | } |
2104 | 0 | |
2105 | 0 | return MsgProcessed; |
2106 | 0 | } |
2107 | 0 | case PBrowser::Msg_SetNativeChildOfShareableWindow__ID: |
2108 | 0 | { |
2109 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2110 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2111 | 0 | } |
2112 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetNativeChildOfShareableWindow", OTHER); |
2113 | 0 |
|
2114 | 0 | PickleIterator iter__(msg__); |
2115 | 0 | uintptr_t childWindow; |
2116 | 0 |
|
2117 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(childWindow)))))) { |
2118 | 0 | FatalError("Error deserializing 'uintptr_t'"); |
2119 | 0 | return MsgValueError; |
2120 | 0 | } |
2121 | 0 | // Sentinel = 'childWindow' |
2122 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2307824933)))) { |
2123 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uintptr_t'"); |
2124 | 0 | return MsgValueError; |
2125 | 0 | } |
2126 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2127 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2128 | 0 | FatalError("Transition error"); |
2129 | 0 | return MsgValueError; |
2130 | 0 | } |
2131 | 0 | if ((!(RecvSetNativeChildOfShareableWindow(childWindow)))) { |
2132 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2133 | 0 | // Error handled in mozilla::ipc::IPCResult |
2134 | 0 | return MsgProcessingError; |
2135 | 0 | } |
2136 | 0 | |
2137 | 0 | return MsgProcessed; |
2138 | 0 | } |
2139 | 0 | case PBrowser::Msg_MoveFocus__ID: |
2140 | 0 | { |
2141 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2142 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2143 | 0 | } |
2144 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_MoveFocus", OTHER); |
2145 | 0 |
|
2146 | 0 | PickleIterator iter__(msg__); |
2147 | 0 | bool forward; |
2148 | 0 | bool forDocumentNavigation; |
2149 | 0 |
|
2150 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(forward)))))) { |
2151 | 0 | FatalError("Error deserializing 'bool'"); |
2152 | 0 | return MsgValueError; |
2153 | 0 | } |
2154 | 0 | // Sentinel = 'forward' |
2155 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 868276024)))) { |
2156 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
2157 | 0 | return MsgValueError; |
2158 | 0 | } |
2159 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(forDocumentNavigation)))))) { |
2160 | 0 | FatalError("Error deserializing 'bool'"); |
2161 | 0 | return MsgValueError; |
2162 | 0 | } |
2163 | 0 | // Sentinel = 'forDocumentNavigation' |
2164 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2197553941)))) { |
2165 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
2166 | 0 | return MsgValueError; |
2167 | 0 | } |
2168 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2169 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2170 | 0 | FatalError("Transition error"); |
2171 | 0 | return MsgValueError; |
2172 | 0 | } |
2173 | 0 | if ((!(RecvMoveFocus(forward, forDocumentNavigation)))) { |
2174 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2175 | 0 | // Error handled in mozilla::ipc::IPCResult |
2176 | 0 | return MsgProcessingError; |
2177 | 0 | } |
2178 | 0 | |
2179 | 0 | return MsgProcessed; |
2180 | 0 | } |
2181 | 0 | case PBrowser::Msg_SizeShellTo__ID: |
2182 | 0 | { |
2183 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2184 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2185 | 0 | } |
2186 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SizeShellTo", OTHER); |
2187 | 0 |
|
2188 | 0 | PickleIterator iter__(msg__); |
2189 | 0 | uint32_t aFlag; |
2190 | 0 | int32_t aWidth; |
2191 | 0 | int32_t aHeight; |
2192 | 0 | int32_t aShellItemWidth; |
2193 | 0 | int32_t aShellItemHeight; |
2194 | 0 |
|
2195 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFlag)))))) { |
2196 | 0 | FatalError("Error deserializing 'uint32_t'"); |
2197 | 0 | return MsgValueError; |
2198 | 0 | } |
2199 | 0 | // Sentinel = 'aFlag' |
2200 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1673528282)))) { |
2201 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
2202 | 0 | return MsgValueError; |
2203 | 0 | } |
2204 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aWidth)))))) { |
2205 | 0 | FatalError("Error deserializing 'int32_t'"); |
2206 | 0 | return MsgValueError; |
2207 | 0 | } |
2208 | 0 | // Sentinel = 'aWidth' |
2209 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 196646625)))) { |
2210 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
2211 | 0 | return MsgValueError; |
2212 | 0 | } |
2213 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aHeight)))))) { |
2214 | 0 | FatalError("Error deserializing 'int32_t'"); |
2215 | 0 | return MsgValueError; |
2216 | 0 | } |
2217 | 0 | // Sentinel = 'aHeight' |
2218 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3588433859)))) { |
2219 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
2220 | 0 | return MsgValueError; |
2221 | 0 | } |
2222 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aShellItemWidth)))))) { |
2223 | 0 | FatalError("Error deserializing 'int32_t'"); |
2224 | 0 | return MsgValueError; |
2225 | 0 | } |
2226 | 0 | // Sentinel = 'aShellItemWidth' |
2227 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 900179947)))) { |
2228 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
2229 | 0 | return MsgValueError; |
2230 | 0 | } |
2231 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aShellItemHeight)))))) { |
2232 | 0 | FatalError("Error deserializing 'int32_t'"); |
2233 | 0 | return MsgValueError; |
2234 | 0 | } |
2235 | 0 | // Sentinel = 'aShellItemHeight' |
2236 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3105235561)))) { |
2237 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
2238 | 0 | return MsgValueError; |
2239 | 0 | } |
2240 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2241 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2242 | 0 | FatalError("Transition error"); |
2243 | 0 | return MsgValueError; |
2244 | 0 | } |
2245 | 0 | if ((!(RecvSizeShellTo(aFlag, aWidth, aHeight, aShellItemWidth, aShellItemHeight)))) { |
2246 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2247 | 0 | // Error handled in mozilla::ipc::IPCResult |
2248 | 0 | return MsgProcessingError; |
2249 | 0 | } |
2250 | 0 | |
2251 | 0 | return MsgProcessed; |
2252 | 0 | } |
2253 | 0 | case PBrowser::Msg_DropLinks__ID: |
2254 | 0 | { |
2255 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2256 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2257 | 0 | } |
2258 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_DropLinks", OTHER); |
2259 | 0 |
|
2260 | 0 | PickleIterator iter__(msg__); |
2261 | 0 | nsTArray<nsString> aLinks; |
2262 | 0 |
|
2263 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aLinks)))))) { |
2264 | 0 | FatalError("Error deserializing 'nsTArray'"); |
2265 | 0 | return MsgValueError; |
2266 | 0 | } |
2267 | 0 | // Sentinel = 'aLinks' |
2268 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3742962418)))) { |
2269 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
2270 | 0 | return MsgValueError; |
2271 | 0 | } |
2272 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2273 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2274 | 0 | FatalError("Transition error"); |
2275 | 0 | return MsgValueError; |
2276 | 0 | } |
2277 | 0 | if ((!(RecvDropLinks(std::move(aLinks))))) { |
2278 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2279 | 0 | // Error handled in mozilla::ipc::IPCResult |
2280 | 0 | return MsgProcessingError; |
2281 | 0 | } |
2282 | 0 | |
2283 | 0 | return MsgProcessed; |
2284 | 0 | } |
2285 | 0 | case PBrowser::Msg_Event__ID: |
2286 | 0 | { |
2287 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2288 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2289 | 0 | } |
2290 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_Event", OTHER); |
2291 | 0 |
|
2292 | 0 | PickleIterator iter__(msg__); |
2293 | 0 | RemoteDOMEvent aEvent; |
2294 | 0 |
|
2295 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEvent)))))) { |
2296 | 0 | FatalError("Error deserializing 'RemoteDOMEvent'"); |
2297 | 0 | return MsgValueError; |
2298 | 0 | } |
2299 | 0 | // Sentinel = 'aEvent' |
2300 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) { |
2301 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'RemoteDOMEvent'"); |
2302 | 0 | return MsgValueError; |
2303 | 0 | } |
2304 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2305 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2306 | 0 | FatalError("Transition error"); |
2307 | 0 | return MsgValueError; |
2308 | 0 | } |
2309 | 0 | if ((!(RecvEvent(aEvent)))) { |
2310 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2311 | 0 | // Error handled in mozilla::ipc::IPCResult |
2312 | 0 | return MsgProcessingError; |
2313 | 0 | } |
2314 | 0 | |
2315 | 0 | return MsgProcessed; |
2316 | 0 | } |
2317 | 0 | case PBrowser::Msg_NotifyIMEFocus__ID: |
2318 | 0 | { |
2319 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2320 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2321 | 0 | } |
2322 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NotifyIMEFocus", OTHER); |
2323 | 0 |
|
2324 | 0 | PickleIterator iter__(msg__); |
2325 | 0 | ContentCache contentCache; |
2326 | 0 | IMENotification notification; |
2327 | 0 |
|
2328 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(contentCache)))))) { |
2329 | 0 | FatalError("Error deserializing 'ContentCache'"); |
2330 | 0 | return MsgValueError; |
2331 | 0 | } |
2332 | 0 | // Sentinel = 'contentCache' |
2333 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 693896091)))) { |
2334 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ContentCache'"); |
2335 | 0 | return MsgValueError; |
2336 | 0 | } |
2337 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(notification)))))) { |
2338 | 0 | FatalError("Error deserializing 'IMENotification'"); |
2339 | 0 | return MsgValueError; |
2340 | 0 | } |
2341 | 0 | // Sentinel = 'notification' |
2342 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3678717609)))) { |
2343 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'IMENotification'"); |
2344 | 0 | return MsgValueError; |
2345 | 0 | } |
2346 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2347 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2348 | 0 | FatalError("Transition error"); |
2349 | 0 | return MsgValueError; |
2350 | 0 | } |
2351 | 0 | int32_t id__ = Id(); |
2352 | 0 |
|
2353 | 0 | int32_t seqno__ = (msg__).seqno(); |
2354 | 0 | WeakPtr<PBrowserParent> self__ = this; |
2355 | 0 | NotifyIMEFocusResolver resolver = [this, self__, id__, seqno__](const IMENotificationRequests& aParam) { |
2356 | 0 | if ((!(self__))) { |
2357 | 0 | NS_WARNING("Not resolving response because actor is dead."); |
2358 | 0 | return; |
2359 | 0 | } |
2360 | 0 | if ((mLivenessState) == (mozilla::ipc::LivenessState::Dead)) { |
2361 | 0 | NS_WARNING("Not resolving response because actor is destroyed."); |
2362 | 0 | return; |
2363 | 0 | } |
2364 | 0 | bool resolve__ = true; |
2365 | 0 | IMENotificationRequests requests; |
2366 | 0 | requests = std::move(aParam); |
2367 | 0 | IPC::Message* reply__ = PBrowser::Reply_NotifyIMEFocus(id__); |
2368 | 0 | WriteIPDLParam(reply__, self__, resolve__); |
2369 | 0 | // Sentinel = 'resolve__' |
2370 | 0 | (reply__)->WriteSentinel(3997392463); |
2371 | 0 | WriteIPDLParam(reply__, self__, requests); |
2372 | 0 | // Sentinel = 'requests' |
2373 | 0 | (reply__)->WriteSentinel(1284023546); |
2374 | 0 | (reply__)->set_seqno(seqno__); |
2375 | 0 |
|
2376 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2377 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2378 | 0 | } |
2379 | 0 | bool sendok__ = (GetIPCChannel())->Send(reply__); |
2380 | 0 | if ((!(sendok__))) { |
2381 | 0 | NS_WARNING("Error sending reply"); |
2382 | 0 | } |
2383 | 0 | }; |
2384 | 0 | if ((!(RecvNotifyIMEFocus(contentCache, notification, std::move(resolver))))) { |
2385 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2386 | 0 | // Error handled in mozilla::ipc::IPCResult |
2387 | 0 | return MsgProcessingError; |
2388 | 0 | } |
2389 | 0 | |
2390 | 0 | return MsgProcessed; |
2391 | 0 | } |
2392 | 0 | case PBrowser::Msg_NotifyIMETextChange__ID: |
2393 | 0 | { |
2394 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2395 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2396 | 0 | } |
2397 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NotifyIMETextChange", OTHER); |
2398 | 0 |
|
2399 | 0 | PickleIterator iter__(msg__); |
2400 | 0 | ContentCache contentCache; |
2401 | 0 | IMENotification notification; |
2402 | 0 |
|
2403 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(contentCache)))))) { |
2404 | 0 | FatalError("Error deserializing 'ContentCache'"); |
2405 | 0 | return MsgValueError; |
2406 | 0 | } |
2407 | 0 | // Sentinel = 'contentCache' |
2408 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 693896091)))) { |
2409 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ContentCache'"); |
2410 | 0 | return MsgValueError; |
2411 | 0 | } |
2412 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(notification)))))) { |
2413 | 0 | FatalError("Error deserializing 'IMENotification'"); |
2414 | 0 | return MsgValueError; |
2415 | 0 | } |
2416 | 0 | // Sentinel = 'notification' |
2417 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3678717609)))) { |
2418 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'IMENotification'"); |
2419 | 0 | return MsgValueError; |
2420 | 0 | } |
2421 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2422 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2423 | 0 | FatalError("Transition error"); |
2424 | 0 | return MsgValueError; |
2425 | 0 | } |
2426 | 0 | if ((!(RecvNotifyIMETextChange(contentCache, notification)))) { |
2427 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2428 | 0 | // Error handled in mozilla::ipc::IPCResult |
2429 | 0 | return MsgProcessingError; |
2430 | 0 | } |
2431 | 0 | |
2432 | 0 | return MsgProcessed; |
2433 | 0 | } |
2434 | 0 | case PBrowser::Msg_NotifyIMECompositionUpdate__ID: |
2435 | 0 | { |
2436 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2437 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2438 | 0 | } |
2439 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NotifyIMECompositionUpdate", OTHER); |
2440 | 0 |
|
2441 | 0 | PickleIterator iter__(msg__); |
2442 | 0 | ContentCache contentCache; |
2443 | 0 | IMENotification notification; |
2444 | 0 |
|
2445 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(contentCache)))))) { |
2446 | 0 | FatalError("Error deserializing 'ContentCache'"); |
2447 | 0 | return MsgValueError; |
2448 | 0 | } |
2449 | 0 | // Sentinel = 'contentCache' |
2450 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 693896091)))) { |
2451 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ContentCache'"); |
2452 | 0 | return MsgValueError; |
2453 | 0 | } |
2454 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(notification)))))) { |
2455 | 0 | FatalError("Error deserializing 'IMENotification'"); |
2456 | 0 | return MsgValueError; |
2457 | 0 | } |
2458 | 0 | // Sentinel = 'notification' |
2459 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3678717609)))) { |
2460 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'IMENotification'"); |
2461 | 0 | return MsgValueError; |
2462 | 0 | } |
2463 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2464 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2465 | 0 | FatalError("Transition error"); |
2466 | 0 | return MsgValueError; |
2467 | 0 | } |
2468 | 0 | if ((!(RecvNotifyIMECompositionUpdate(contentCache, notification)))) { |
2469 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2470 | 0 | // Error handled in mozilla::ipc::IPCResult |
2471 | 0 | return MsgProcessingError; |
2472 | 0 | } |
2473 | 0 | |
2474 | 0 | return MsgProcessed; |
2475 | 0 | } |
2476 | 0 | case PBrowser::Msg_NotifyIMESelection__ID: |
2477 | 0 | { |
2478 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2479 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2480 | 0 | } |
2481 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NotifyIMESelection", OTHER); |
2482 | 0 |
|
2483 | 0 | PickleIterator iter__(msg__); |
2484 | 0 | ContentCache contentCache; |
2485 | 0 | IMENotification notification; |
2486 | 0 |
|
2487 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(contentCache)))))) { |
2488 | 0 | FatalError("Error deserializing 'ContentCache'"); |
2489 | 0 | return MsgValueError; |
2490 | 0 | } |
2491 | 0 | // Sentinel = 'contentCache' |
2492 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 693896091)))) { |
2493 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ContentCache'"); |
2494 | 0 | return MsgValueError; |
2495 | 0 | } |
2496 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(notification)))))) { |
2497 | 0 | FatalError("Error deserializing 'IMENotification'"); |
2498 | 0 | return MsgValueError; |
2499 | 0 | } |
2500 | 0 | // Sentinel = 'notification' |
2501 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3678717609)))) { |
2502 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'IMENotification'"); |
2503 | 0 | return MsgValueError; |
2504 | 0 | } |
2505 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2506 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2507 | 0 | FatalError("Transition error"); |
2508 | 0 | return MsgValueError; |
2509 | 0 | } |
2510 | 0 | if ((!(RecvNotifyIMESelection(contentCache, notification)))) { |
2511 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2512 | 0 | // Error handled in mozilla::ipc::IPCResult |
2513 | 0 | return MsgProcessingError; |
2514 | 0 | } |
2515 | 0 | |
2516 | 0 | return MsgProcessed; |
2517 | 0 | } |
2518 | 0 | case PBrowser::Msg_UpdateContentCache__ID: |
2519 | 0 | { |
2520 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2521 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2522 | 0 | } |
2523 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_UpdateContentCache", OTHER); |
2524 | 0 |
|
2525 | 0 | PickleIterator iter__(msg__); |
2526 | 0 | ContentCache contentCache; |
2527 | 0 |
|
2528 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(contentCache)))))) { |
2529 | 0 | FatalError("Error deserializing 'ContentCache'"); |
2530 | 0 | return MsgValueError; |
2531 | 0 | } |
2532 | 0 | // Sentinel = 'contentCache' |
2533 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 693896091)))) { |
2534 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ContentCache'"); |
2535 | 0 | return MsgValueError; |
2536 | 0 | } |
2537 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2538 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2539 | 0 | FatalError("Transition error"); |
2540 | 0 | return MsgValueError; |
2541 | 0 | } |
2542 | 0 | if ((!(RecvUpdateContentCache(contentCache)))) { |
2543 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2544 | 0 | // Error handled in mozilla::ipc::IPCResult |
2545 | 0 | return MsgProcessingError; |
2546 | 0 | } |
2547 | 0 | |
2548 | 0 | return MsgProcessed; |
2549 | 0 | } |
2550 | 0 | case PBrowser::Msg_NotifyIMEPositionChange__ID: |
2551 | 0 | { |
2552 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2553 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2554 | 0 | } |
2555 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NotifyIMEPositionChange", OTHER); |
2556 | 0 |
|
2557 | 0 | PickleIterator iter__(msg__); |
2558 | 0 | ContentCache contentCache; |
2559 | 0 | IMENotification notification; |
2560 | 0 |
|
2561 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(contentCache)))))) { |
2562 | 0 | FatalError("Error deserializing 'ContentCache'"); |
2563 | 0 | return MsgValueError; |
2564 | 0 | } |
2565 | 0 | // Sentinel = 'contentCache' |
2566 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 693896091)))) { |
2567 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ContentCache'"); |
2568 | 0 | return MsgValueError; |
2569 | 0 | } |
2570 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(notification)))))) { |
2571 | 0 | FatalError("Error deserializing 'IMENotification'"); |
2572 | 0 | return MsgValueError; |
2573 | 0 | } |
2574 | 0 | // Sentinel = 'notification' |
2575 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3678717609)))) { |
2576 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'IMENotification'"); |
2577 | 0 | return MsgValueError; |
2578 | 0 | } |
2579 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2580 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2581 | 0 | FatalError("Transition error"); |
2582 | 0 | return MsgValueError; |
2583 | 0 | } |
2584 | 0 | if ((!(RecvNotifyIMEPositionChange(contentCache, notification)))) { |
2585 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2586 | 0 | // Error handled in mozilla::ipc::IPCResult |
2587 | 0 | return MsgProcessingError; |
2588 | 0 | } |
2589 | 0 | |
2590 | 0 | return MsgProcessed; |
2591 | 0 | } |
2592 | 0 | case PBrowser::Msg_OnEventNeedingAckHandled__ID: |
2593 | 0 | { |
2594 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2595 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2596 | 0 | } |
2597 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_OnEventNeedingAckHandled", OTHER); |
2598 | 0 |
|
2599 | 0 | PickleIterator iter__(msg__); |
2600 | 0 | EventMessage message; |
2601 | 0 |
|
2602 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(message)))))) { |
2603 | 0 | FatalError("Error deserializing 'EventMessage'"); |
2604 | 0 | return MsgValueError; |
2605 | 0 | } |
2606 | 0 | // Sentinel = 'message' |
2607 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1366108954)))) { |
2608 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'EventMessage'"); |
2609 | 0 | return MsgValueError; |
2610 | 0 | } |
2611 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2612 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2613 | 0 | FatalError("Transition error"); |
2614 | 0 | return MsgValueError; |
2615 | 0 | } |
2616 | 0 | if ((!(RecvOnEventNeedingAckHandled(message)))) { |
2617 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2618 | 0 | // Error handled in mozilla::ipc::IPCResult |
2619 | 0 | return MsgProcessingError; |
2620 | 0 | } |
2621 | 0 | |
2622 | 0 | return MsgProcessed; |
2623 | 0 | } |
2624 | 0 | case PBrowser::Msg_SetPluginFocused__ID: |
2625 | 0 | { |
2626 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2627 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2628 | 0 | } |
2629 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetPluginFocused", OTHER); |
2630 | 0 |
|
2631 | 0 | PickleIterator iter__(msg__); |
2632 | 0 | bool aFocused; |
2633 | 0 |
|
2634 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFocused)))))) { |
2635 | 0 | FatalError("Error deserializing 'bool'"); |
2636 | 0 | return MsgValueError; |
2637 | 0 | } |
2638 | 0 | // Sentinel = 'aFocused' |
2639 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4189610332)))) { |
2640 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
2641 | 0 | return MsgValueError; |
2642 | 0 | } |
2643 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2644 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2645 | 0 | FatalError("Transition error"); |
2646 | 0 | return MsgValueError; |
2647 | 0 | } |
2648 | 0 | if ((!(RecvSetPluginFocused(aFocused)))) { |
2649 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2650 | 0 | // Error handled in mozilla::ipc::IPCResult |
2651 | 0 | return MsgProcessingError; |
2652 | 0 | } |
2653 | 0 | |
2654 | 0 | return MsgProcessed; |
2655 | 0 | } |
2656 | 0 | case PBrowser::Msg_SetCandidateWindowForPlugin__ID: |
2657 | 0 | { |
2658 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2659 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2660 | 0 | } |
2661 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetCandidateWindowForPlugin", OTHER); |
2662 | 0 |
|
2663 | 0 | PickleIterator iter__(msg__); |
2664 | 0 | CandidateWindowPosition aPosition; |
2665 | 0 |
|
2666 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPosition)))))) { |
2667 | 0 | FatalError("Error deserializing 'CandidateWindowPosition'"); |
2668 | 0 | return MsgValueError; |
2669 | 0 | } |
2670 | 0 | // Sentinel = 'aPosition' |
2671 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2753958473)))) { |
2672 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'CandidateWindowPosition'"); |
2673 | 0 | return MsgValueError; |
2674 | 0 | } |
2675 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2676 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2677 | 0 | FatalError("Transition error"); |
2678 | 0 | return MsgValueError; |
2679 | 0 | } |
2680 | 0 | if ((!(RecvSetCandidateWindowForPlugin(aPosition)))) { |
2681 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2682 | 0 | // Error handled in mozilla::ipc::IPCResult |
2683 | 0 | return MsgProcessingError; |
2684 | 0 | } |
2685 | 0 | |
2686 | 0 | return MsgProcessed; |
2687 | 0 | } |
2688 | 0 | case PBrowser::Msg_EnableIMEForPlugin__ID: |
2689 | 0 | { |
2690 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2691 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2692 | 0 | } |
2693 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_EnableIMEForPlugin", OTHER); |
2694 | 0 |
|
2695 | 0 | PickleIterator iter__(msg__); |
2696 | 0 | bool aEnable; |
2697 | 0 |
|
2698 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEnable)))))) { |
2699 | 0 | FatalError("Error deserializing 'bool'"); |
2700 | 0 | return MsgValueError; |
2701 | 0 | } |
2702 | 0 | // Sentinel = 'aEnable' |
2703 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 163837555)))) { |
2704 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
2705 | 0 | return MsgValueError; |
2706 | 0 | } |
2707 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2708 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2709 | 0 | FatalError("Transition error"); |
2710 | 0 | return MsgValueError; |
2711 | 0 | } |
2712 | 0 | if ((!(RecvEnableIMEForPlugin(aEnable)))) { |
2713 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2714 | 0 | // Error handled in mozilla::ipc::IPCResult |
2715 | 0 | return MsgProcessingError; |
2716 | 0 | } |
2717 | 0 | |
2718 | 0 | return MsgProcessed; |
2719 | 0 | } |
2720 | 0 | case PBrowser::Msg_OnWindowedPluginKeyEvent__ID: |
2721 | 0 | { |
2722 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2723 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2724 | 0 | } |
2725 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_OnWindowedPluginKeyEvent", OTHER); |
2726 | 0 |
|
2727 | 0 | PickleIterator iter__(msg__); |
2728 | 0 | NativeEventData aKeyEventData; |
2729 | 0 |
|
2730 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aKeyEventData)))))) { |
2731 | 0 | FatalError("Error deserializing 'NativeEventData'"); |
2732 | 0 | return MsgValueError; |
2733 | 0 | } |
2734 | 0 | // Sentinel = 'aKeyEventData' |
2735 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1896682639)))) { |
2736 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'NativeEventData'"); |
2737 | 0 | return MsgValueError; |
2738 | 0 | } |
2739 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2740 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2741 | 0 | FatalError("Transition error"); |
2742 | 0 | return MsgValueError; |
2743 | 0 | } |
2744 | 0 | if ((!(RecvOnWindowedPluginKeyEvent(aKeyEventData)))) { |
2745 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2746 | 0 | // Error handled in mozilla::ipc::IPCResult |
2747 | 0 | return MsgProcessingError; |
2748 | 0 | } |
2749 | 0 | |
2750 | 0 | return MsgProcessed; |
2751 | 0 | } |
2752 | 0 | case PBrowser::Msg_DefaultProcOfPluginEvent__ID: |
2753 | 0 | { |
2754 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2755 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2756 | 0 | } |
2757 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_DefaultProcOfPluginEvent", OTHER); |
2758 | 0 |
|
2759 | 0 | PickleIterator iter__(msg__); |
2760 | 0 | WidgetPluginEvent aEvent; |
2761 | 0 |
|
2762 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEvent)))))) { |
2763 | 0 | FatalError("Error deserializing 'WidgetPluginEvent'"); |
2764 | 0 | return MsgValueError; |
2765 | 0 | } |
2766 | 0 | // Sentinel = 'aEvent' |
2767 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) { |
2768 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'WidgetPluginEvent'"); |
2769 | 0 | return MsgValueError; |
2770 | 0 | } |
2771 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2772 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2773 | 0 | FatalError("Transition error"); |
2774 | 0 | return MsgValueError; |
2775 | 0 | } |
2776 | 0 | if ((!(RecvDefaultProcOfPluginEvent(aEvent)))) { |
2777 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2778 | 0 | // Error handled in mozilla::ipc::IPCResult |
2779 | 0 | return MsgProcessingError; |
2780 | 0 | } |
2781 | 0 | |
2782 | 0 | return MsgProcessed; |
2783 | 0 | } |
2784 | 0 | case PBrowser::Msg_RequestFocus__ID: |
2785 | 0 | { |
2786 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2787 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2788 | 0 | } |
2789 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RequestFocus", OTHER); |
2790 | 0 |
|
2791 | 0 | PickleIterator iter__(msg__); |
2792 | 0 | bool canRaise; |
2793 | 0 |
|
2794 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(canRaise)))))) { |
2795 | 0 | FatalError("Error deserializing 'bool'"); |
2796 | 0 | return MsgValueError; |
2797 | 0 | } |
2798 | 0 | // Sentinel = 'canRaise' |
2799 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2627987194)))) { |
2800 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
2801 | 0 | return MsgValueError; |
2802 | 0 | } |
2803 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2804 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2805 | 0 | FatalError("Transition error"); |
2806 | 0 | return MsgValueError; |
2807 | 0 | } |
2808 | 0 | if ((!(RecvRequestFocus(canRaise)))) { |
2809 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2810 | 0 | // Error handled in mozilla::ipc::IPCResult |
2811 | 0 | return MsgProcessingError; |
2812 | 0 | } |
2813 | 0 | |
2814 | 0 | return MsgProcessed; |
2815 | 0 | } |
2816 | 0 | case PBrowser::Msg_EnableDisableCommands__ID: |
2817 | 0 | { |
2818 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2819 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2820 | 0 | } |
2821 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_EnableDisableCommands", OTHER); |
2822 | 0 |
|
2823 | 0 | PickleIterator iter__(msg__); |
2824 | 0 | nsString action; |
2825 | 0 | nsTArray<nsCString> enabledCommands; |
2826 | 0 | nsTArray<nsCString> disabledCommands; |
2827 | 0 |
|
2828 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(action)))))) { |
2829 | 0 | FatalError("Error deserializing 'nsString'"); |
2830 | 0 | return MsgValueError; |
2831 | 0 | } |
2832 | 0 | // Sentinel = 'action' |
2833 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 991072504)))) { |
2834 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
2835 | 0 | return MsgValueError; |
2836 | 0 | } |
2837 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(enabledCommands)))))) { |
2838 | 0 | FatalError("Error deserializing 'nsTArray'"); |
2839 | 0 | return MsgValueError; |
2840 | 0 | } |
2841 | 0 | // Sentinel = 'enabledCommands' |
2842 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2472595762)))) { |
2843 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
2844 | 0 | return MsgValueError; |
2845 | 0 | } |
2846 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(disabledCommands)))))) { |
2847 | 0 | FatalError("Error deserializing 'nsTArray'"); |
2848 | 0 | return MsgValueError; |
2849 | 0 | } |
2850 | 0 | // Sentinel = 'disabledCommands' |
2851 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4189432850)))) { |
2852 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
2853 | 0 | return MsgValueError; |
2854 | 0 | } |
2855 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2856 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2857 | 0 | FatalError("Transition error"); |
2858 | 0 | return MsgValueError; |
2859 | 0 | } |
2860 | 0 | if ((!(RecvEnableDisableCommands(action, std::move(enabledCommands), std::move(disabledCommands))))) { |
2861 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2862 | 0 | // Error handled in mozilla::ipc::IPCResult |
2863 | 0 | return MsgProcessingError; |
2864 | 0 | } |
2865 | 0 | |
2866 | 0 | return MsgProcessed; |
2867 | 0 | } |
2868 | 0 | case PBrowser::Msg_SetInputContext__ID: |
2869 | 0 | { |
2870 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2871 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2872 | 0 | } |
2873 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetInputContext", OTHER); |
2874 | 0 |
|
2875 | 0 | PickleIterator iter__(msg__); |
2876 | 0 | InputContext context; |
2877 | 0 | InputContextAction action; |
2878 | 0 |
|
2879 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(context)))))) { |
2880 | 0 | FatalError("Error deserializing 'InputContext'"); |
2881 | 0 | return MsgValueError; |
2882 | 0 | } |
2883 | 0 | // Sentinel = 'context' |
2884 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3514529014)))) { |
2885 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'InputContext'"); |
2886 | 0 | return MsgValueError; |
2887 | 0 | } |
2888 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(action)))))) { |
2889 | 0 | FatalError("Error deserializing 'InputContextAction'"); |
2890 | 0 | return MsgValueError; |
2891 | 0 | } |
2892 | 0 | // Sentinel = 'action' |
2893 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 991072504)))) { |
2894 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'InputContextAction'"); |
2895 | 0 | return MsgValueError; |
2896 | 0 | } |
2897 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2898 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2899 | 0 | FatalError("Transition error"); |
2900 | 0 | return MsgValueError; |
2901 | 0 | } |
2902 | 0 | if ((!(RecvSetInputContext(context, action)))) { |
2903 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2904 | 0 | // Error handled in mozilla::ipc::IPCResult |
2905 | 0 | return MsgProcessingError; |
2906 | 0 | } |
2907 | 0 | |
2908 | 0 | return MsgProcessed; |
2909 | 0 | } |
2910 | 0 | case PBrowser::Msg_SetCursor__ID: |
2911 | 0 | { |
2912 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2913 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2914 | 0 | } |
2915 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetCursor", OTHER); |
2916 | 0 |
|
2917 | 0 | PickleIterator iter__(msg__); |
2918 | 0 | nsCursor value; |
2919 | 0 | bool force; |
2920 | 0 |
|
2921 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(value)))))) { |
2922 | 0 | FatalError("Error deserializing 'nsCursor'"); |
2923 | 0 | return MsgValueError; |
2924 | 0 | } |
2925 | 0 | // Sentinel = 'value' |
2926 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3456818542)))) { |
2927 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCursor'"); |
2928 | 0 | return MsgValueError; |
2929 | 0 | } |
2930 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(force)))))) { |
2931 | 0 | FatalError("Error deserializing 'bool'"); |
2932 | 0 | return MsgValueError; |
2933 | 0 | } |
2934 | 0 | // Sentinel = 'force' |
2935 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 627294340)))) { |
2936 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
2937 | 0 | return MsgValueError; |
2938 | 0 | } |
2939 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2940 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2941 | 0 | FatalError("Transition error"); |
2942 | 0 | return MsgValueError; |
2943 | 0 | } |
2944 | 0 | if ((!(RecvSetCursor(value, force)))) { |
2945 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2946 | 0 | // Error handled in mozilla::ipc::IPCResult |
2947 | 0 | return MsgProcessingError; |
2948 | 0 | } |
2949 | 0 | |
2950 | 0 | return MsgProcessed; |
2951 | 0 | } |
2952 | 0 | case PBrowser::Msg_SetCustomCursor__ID: |
2953 | 0 | { |
2954 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
2955 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2956 | 0 | } |
2957 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetCustomCursor", OTHER); |
2958 | 0 |
|
2959 | 0 | PickleIterator iter__(msg__); |
2960 | 0 | nsCString cursorData; |
2961 | 0 | uint32_t width; |
2962 | 0 | uint32_t height; |
2963 | 0 | uint32_t stride; |
2964 | 0 | SurfaceFormat format; |
2965 | 0 | uint32_t hotspotX; |
2966 | 0 | uint32_t hotspotY; |
2967 | 0 | bool force; |
2968 | 0 |
|
2969 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cursorData)))))) { |
2970 | 0 | FatalError("Error deserializing 'nsCString'"); |
2971 | 0 | return MsgValueError; |
2972 | 0 | } |
2973 | 0 | // Sentinel = 'cursorData' |
2974 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1364264588)))) { |
2975 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
2976 | 0 | return MsgValueError; |
2977 | 0 | } |
2978 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(width)))))) { |
2979 | 0 | FatalError("Error deserializing 'uint32_t'"); |
2980 | 0 | return MsgValueError; |
2981 | 0 | } |
2982 | 0 | // Sentinel = 'width' |
2983 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1444841265)))) { |
2984 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
2985 | 0 | return MsgValueError; |
2986 | 0 | } |
2987 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(height)))))) { |
2988 | 0 | FatalError("Error deserializing 'uint32_t'"); |
2989 | 0 | return MsgValueError; |
2990 | 0 | } |
2991 | 0 | // Sentinel = 'height' |
2992 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 440091919)))) { |
2993 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
2994 | 0 | return MsgValueError; |
2995 | 0 | } |
2996 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(stride)))))) { |
2997 | 0 | FatalError("Error deserializing 'uint32_t'"); |
2998 | 0 | return MsgValueError; |
2999 | 0 | } |
3000 | 0 | // Sentinel = 'stride' |
3001 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2746301169)))) { |
3002 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3003 | 0 | return MsgValueError; |
3004 | 0 | } |
3005 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(format)))))) { |
3006 | 0 | FatalError("Error deserializing 'SurfaceFormat'"); |
3007 | 0 | return MsgValueError; |
3008 | 0 | } |
3009 | 0 | // Sentinel = 'format' |
3010 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2052265543)))) { |
3011 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'SurfaceFormat'"); |
3012 | 0 | return MsgValueError; |
3013 | 0 | } |
3014 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(hotspotX)))))) { |
3015 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3016 | 0 | return MsgValueError; |
3017 | 0 | } |
3018 | 0 | // Sentinel = 'hotspotX' |
3019 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1892179819)))) { |
3020 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3021 | 0 | return MsgValueError; |
3022 | 0 | } |
3023 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(hotspotY)))))) { |
3024 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3025 | 0 | return MsgValueError; |
3026 | 0 | } |
3027 | 0 | // Sentinel = 'hotspotY' |
3028 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1892179818)))) { |
3029 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3030 | 0 | return MsgValueError; |
3031 | 0 | } |
3032 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(force)))))) { |
3033 | 0 | FatalError("Error deserializing 'bool'"); |
3034 | 0 | return MsgValueError; |
3035 | 0 | } |
3036 | 0 | // Sentinel = 'force' |
3037 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 627294340)))) { |
3038 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
3039 | 0 | return MsgValueError; |
3040 | 0 | } |
3041 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3042 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3043 | 0 | FatalError("Transition error"); |
3044 | 0 | return MsgValueError; |
3045 | 0 | } |
3046 | 0 | if ((!(RecvSetCustomCursor(cursorData, width, height, stride, format, hotspotX, hotspotY, force)))) { |
3047 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3048 | 0 | // Error handled in mozilla::ipc::IPCResult |
3049 | 0 | return MsgProcessingError; |
3050 | 0 | } |
3051 | 0 | |
3052 | 0 | return MsgProcessed; |
3053 | 0 | } |
3054 | 0 | case PBrowser::Msg_SetStatus__ID: |
3055 | 0 | { |
3056 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3057 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3058 | 0 | } |
3059 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetStatus", OTHER); |
3060 | 0 |
|
3061 | 0 | PickleIterator iter__(msg__); |
3062 | 0 | uint32_t type; |
3063 | 0 | nsString status; |
3064 | 0 |
|
3065 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(type)))))) { |
3066 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3067 | 0 | return MsgValueError; |
3068 | 0 | } |
3069 | 0 | // Sentinel = 'type' |
3070 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2982068540)))) { |
3071 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3072 | 0 | return MsgValueError; |
3073 | 0 | } |
3074 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(status)))))) { |
3075 | 0 | FatalError("Error deserializing 'nsString'"); |
3076 | 0 | return MsgValueError; |
3077 | 0 | } |
3078 | 0 | // Sentinel = 'status' |
3079 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3714608576)))) { |
3080 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3081 | 0 | return MsgValueError; |
3082 | 0 | } |
3083 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3084 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3085 | 0 | FatalError("Transition error"); |
3086 | 0 | return MsgValueError; |
3087 | 0 | } |
3088 | 0 | if ((!(RecvSetStatus(type, status)))) { |
3089 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3090 | 0 | // Error handled in mozilla::ipc::IPCResult |
3091 | 0 | return MsgProcessingError; |
3092 | 0 | } |
3093 | 0 | |
3094 | 0 | return MsgProcessed; |
3095 | 0 | } |
3096 | 0 | case PBrowser::Msg_ShowTooltip__ID: |
3097 | 0 | { |
3098 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3099 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3100 | 0 | } |
3101 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_ShowTooltip", OTHER); |
3102 | 0 |
|
3103 | 0 | PickleIterator iter__(msg__); |
3104 | 0 | uint32_t x; |
3105 | 0 | uint32_t y; |
3106 | 0 | nsString tooltip; |
3107 | 0 | nsString direction; |
3108 | 0 |
|
3109 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(x)))))) { |
3110 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3111 | 0 | return MsgValueError; |
3112 | 0 | } |
3113 | 0 | // Sentinel = 'x' |
3114 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2475144313)))) { |
3115 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3116 | 0 | return MsgValueError; |
3117 | 0 | } |
3118 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(y)))))) { |
3119 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3120 | 0 | return MsgValueError; |
3121 | 0 | } |
3122 | 0 | // Sentinel = 'y' |
3123 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2603144696)))) { |
3124 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3125 | 0 | return MsgValueError; |
3126 | 0 | } |
3127 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tooltip)))))) { |
3128 | 0 | FatalError("Error deserializing 'nsString'"); |
3129 | 0 | return MsgValueError; |
3130 | 0 | } |
3131 | 0 | // Sentinel = 'tooltip' |
3132 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1801535150)))) { |
3133 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3134 | 0 | return MsgValueError; |
3135 | 0 | } |
3136 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(direction)))))) { |
3137 | 0 | FatalError("Error deserializing 'nsString'"); |
3138 | 0 | return MsgValueError; |
3139 | 0 | } |
3140 | 0 | // Sentinel = 'direction' |
3141 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1283484994)))) { |
3142 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3143 | 0 | return MsgValueError; |
3144 | 0 | } |
3145 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3146 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3147 | 0 | FatalError("Transition error"); |
3148 | 0 | return MsgValueError; |
3149 | 0 | } |
3150 | 0 | if ((!(RecvShowTooltip(x, y, tooltip, direction)))) { |
3151 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3152 | 0 | // Error handled in mozilla::ipc::IPCResult |
3153 | 0 | return MsgProcessingError; |
3154 | 0 | } |
3155 | 0 | |
3156 | 0 | return MsgProcessed; |
3157 | 0 | } |
3158 | 0 | case PBrowser::Msg_HideTooltip__ID: |
3159 | 0 | { |
3160 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3161 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3162 | 0 | } |
3163 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_HideTooltip", OTHER); |
3164 | 0 |
|
3165 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3166 | 0 | FatalError("Transition error"); |
3167 | 0 | return MsgValueError; |
3168 | 0 | } |
3169 | 0 | if ((!(RecvHideTooltip()))) { |
3170 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3171 | 0 | // Error handled in mozilla::ipc::IPCResult |
3172 | 0 | return MsgProcessingError; |
3173 | 0 | } |
3174 | 0 | |
3175 | 0 | return MsgProcessed; |
3176 | 0 | } |
3177 | 0 | case PBrowser::Msg_PColorPickerConstructor__ID: |
3178 | 0 | { |
3179 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3180 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3181 | 0 | } |
3182 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PColorPickerConstructor", OTHER); |
3183 | 0 |
|
3184 | 0 | PickleIterator iter__(msg__); |
3185 | 0 | ActorHandle handle__; |
3186 | 0 | PColorPickerParent* actor; |
3187 | 0 | nsString title; |
3188 | 0 | nsString initialColor; |
3189 | 0 |
|
3190 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
3191 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
3192 | 0 | return MsgValueError; |
3193 | 0 | } |
3194 | 0 | // Sentinel = 'actor' |
3195 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
3196 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
3197 | 0 | return MsgValueError; |
3198 | 0 | } |
3199 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(title)))))) { |
3200 | 0 | FatalError("Error deserializing 'nsString'"); |
3201 | 0 | return MsgValueError; |
3202 | 0 | } |
3203 | 0 | // Sentinel = 'title' |
3204 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4272139303)))) { |
3205 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3206 | 0 | return MsgValueError; |
3207 | 0 | } |
3208 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(initialColor)))))) { |
3209 | 0 | FatalError("Error deserializing 'nsString'"); |
3210 | 0 | return MsgValueError; |
3211 | 0 | } |
3212 | 0 | // Sentinel = 'initialColor' |
3213 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2753427461)))) { |
3214 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3215 | 0 | return MsgValueError; |
3216 | 0 | } |
3217 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3218 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3219 | 0 | FatalError("Transition error"); |
3220 | 0 | return MsgValueError; |
3221 | 0 | } |
3222 | 0 | actor = AllocPColorPickerParent(title, initialColor); |
3223 | 0 | if ((!(actor))) { |
3224 | 0 | NS_WARNING("Error constructing actor PColorPickerParent"); |
3225 | 0 | return MsgValueError; |
3226 | 0 | } |
3227 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
3228 | 0 | (mManagedPColorPickerParent).PutEntry(actor); |
3229 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
3230 | 0 |
|
3231 | 0 | if ((!(RecvPColorPickerConstructor(actor, title, initialColor)))) { |
3232 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3233 | 0 | // Error handled in mozilla::ipc::IPCResult |
3234 | 0 | return MsgProcessingError; |
3235 | 0 | } |
3236 | 0 | |
3237 | 0 | return MsgProcessed; |
3238 | 0 | } |
3239 | 0 | case PBrowser::Msg_PFilePickerConstructor__ID: |
3240 | 0 | { |
3241 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3242 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3243 | 0 | } |
3244 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PFilePickerConstructor", OTHER); |
3245 | 0 |
|
3246 | 0 | PickleIterator iter__(msg__); |
3247 | 0 | ActorHandle handle__; |
3248 | 0 | PFilePickerParent* actor; |
3249 | 0 | nsString aTitle; |
3250 | 0 | int16_t aMode; |
3251 | 0 |
|
3252 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
3253 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
3254 | 0 | return MsgValueError; |
3255 | 0 | } |
3256 | 0 | // Sentinel = 'actor' |
3257 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
3258 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
3259 | 0 | return MsgValueError; |
3260 | 0 | } |
3261 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aTitle)))))) { |
3262 | 0 | FatalError("Error deserializing 'nsString'"); |
3263 | 0 | return MsgValueError; |
3264 | 0 | } |
3265 | 0 | // Sentinel = 'aTitle' |
3266 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4082117431)))) { |
3267 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3268 | 0 | return MsgValueError; |
3269 | 0 | } |
3270 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMode)))))) { |
3271 | 0 | FatalError("Error deserializing 'int16_t'"); |
3272 | 0 | return MsgValueError; |
3273 | 0 | } |
3274 | 0 | // Sentinel = 'aMode' |
3275 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2760257281)))) { |
3276 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int16_t'"); |
3277 | 0 | return MsgValueError; |
3278 | 0 | } |
3279 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3280 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3281 | 0 | FatalError("Transition error"); |
3282 | 0 | return MsgValueError; |
3283 | 0 | } |
3284 | 0 | actor = AllocPFilePickerParent(aTitle, aMode); |
3285 | 0 | if ((!(actor))) { |
3286 | 0 | NS_WARNING("Error constructing actor PFilePickerParent"); |
3287 | 0 | return MsgValueError; |
3288 | 0 | } |
3289 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
3290 | 0 | (mManagedPFilePickerParent).PutEntry(actor); |
3291 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
3292 | 0 |
|
3293 | 0 | if ((!(RecvPFilePickerConstructor(actor, aTitle, aMode)))) { |
3294 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3295 | 0 | // Error handled in mozilla::ipc::IPCResult |
3296 | 0 | return MsgProcessingError; |
3297 | 0 | } |
3298 | 0 | |
3299 | 0 | return MsgProcessed; |
3300 | 0 | } |
3301 | 0 | case PBrowser::Msg_PIndexedDBPermissionRequestConstructor__ID: |
3302 | 0 | { |
3303 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3304 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3305 | 0 | } |
3306 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PIndexedDBPermissionRequestConstructor", OTHER); |
3307 | 0 |
|
3308 | 0 | PickleIterator iter__(msg__); |
3309 | 0 | ActorHandle handle__; |
3310 | 0 | PIndexedDBPermissionRequestParent* actor; |
3311 | 0 | Principal principal; |
3312 | 0 |
|
3313 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
3314 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
3315 | 0 | return MsgValueError; |
3316 | 0 | } |
3317 | 0 | // Sentinel = 'actor' |
3318 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
3319 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
3320 | 0 | return MsgValueError; |
3321 | 0 | } |
3322 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) { |
3323 | 0 | FatalError("Error deserializing 'Principal'"); |
3324 | 0 | return MsgValueError; |
3325 | 0 | } |
3326 | 0 | // Sentinel = 'principal' |
3327 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) { |
3328 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
3329 | 0 | return MsgValueError; |
3330 | 0 | } |
3331 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3332 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3333 | 0 | FatalError("Transition error"); |
3334 | 0 | return MsgValueError; |
3335 | 0 | } |
3336 | 0 | actor = AllocPIndexedDBPermissionRequestParent(principal); |
3337 | 0 | if ((!(actor))) { |
3338 | 0 | NS_WARNING("Error constructing actor PIndexedDBPermissionRequestParent"); |
3339 | 0 | return MsgValueError; |
3340 | 0 | } |
3341 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
3342 | 0 | (mManagedPIndexedDBPermissionRequestParent).PutEntry(actor); |
3343 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
3344 | 0 |
|
3345 | 0 | if ((!(RecvPIndexedDBPermissionRequestConstructor(actor, principal)))) { |
3346 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3347 | 0 | // Error handled in mozilla::ipc::IPCResult |
3348 | 0 | return MsgProcessingError; |
3349 | 0 | } |
3350 | 0 | |
3351 | 0 | return MsgProcessed; |
3352 | 0 | } |
3353 | 0 | case PBrowser::Msg_BrowserFrameOpenWindow__ID: |
3354 | 0 | { |
3355 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3356 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3357 | 0 | } |
3358 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_BrowserFrameOpenWindow", OTHER); |
3359 | 0 |
|
3360 | 0 | PickleIterator iter__(msg__); |
3361 | 0 | PBrowserParent* opener; |
3362 | 0 | PRenderFrameParent* renderFrame; |
3363 | 0 | nsString aURL; |
3364 | 0 | nsString aName; |
3365 | 0 | nsString aFeatures; |
3366 | 0 |
|
3367 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(opener)))))) { |
3368 | 0 | FatalError("Error deserializing 'PBrowserParent'"); |
3369 | 0 | return MsgValueError; |
3370 | 0 | } |
3371 | 0 | if ((!((*((&(opener))))))) { |
3372 | 0 | FatalError("Error deserializing 'PBrowserParent'"); |
3373 | 0 | return MsgValueError; |
3374 | 0 | } |
3375 | 0 | // Sentinel = 'opener' |
3376 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2714806963)))) { |
3377 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'"); |
3378 | 0 | return MsgValueError; |
3379 | 0 | } |
3380 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(renderFrame)))))) { |
3381 | 0 | FatalError("Error deserializing 'PRenderFrameParent'"); |
3382 | 0 | return MsgValueError; |
3383 | 0 | } |
3384 | 0 | if ((!((*((&(renderFrame))))))) { |
3385 | 0 | FatalError("Error deserializing 'PRenderFrameParent'"); |
3386 | 0 | return MsgValueError; |
3387 | 0 | } |
3388 | 0 | // Sentinel = 'renderFrame' |
3389 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3592247652)))) { |
3390 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PRenderFrameParent'"); |
3391 | 0 | return MsgValueError; |
3392 | 0 | } |
3393 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aURL)))))) { |
3394 | 0 | FatalError("Error deserializing 'nsString'"); |
3395 | 0 | return MsgValueError; |
3396 | 0 | } |
3397 | 0 | // Sentinel = 'aURL' |
3398 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2075506328)))) { |
3399 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3400 | 0 | return MsgValueError; |
3401 | 0 | } |
3402 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aName)))))) { |
3403 | 0 | FatalError("Error deserializing 'nsString'"); |
3404 | 0 | return MsgValueError; |
3405 | 0 | } |
3406 | 0 | // Sentinel = 'aName' |
3407 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1450162941)))) { |
3408 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3409 | 0 | return MsgValueError; |
3410 | 0 | } |
3411 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFeatures)))))) { |
3412 | 0 | FatalError("Error deserializing 'nsString'"); |
3413 | 0 | return MsgValueError; |
3414 | 0 | } |
3415 | 0 | // Sentinel = 'aFeatures' |
3416 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1001034525)))) { |
3417 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3418 | 0 | return MsgValueError; |
3419 | 0 | } |
3420 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3421 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3422 | 0 | FatalError("Transition error"); |
3423 | 0 | return MsgValueError; |
3424 | 0 | } |
3425 | 0 | int32_t id__ = Id(); |
3426 | 0 |
|
3427 | 0 | int32_t seqno__ = (msg__).seqno(); |
3428 | 0 | WeakPtr<PBrowserParent> self__ = this; |
3429 | 0 | BrowserFrameOpenWindowResolver resolver = [this, self__, id__, seqno__](const CreatedWindowInfo& aParam) { |
3430 | 0 | if ((!(self__))) { |
3431 | 0 | NS_WARNING("Not resolving response because actor is dead."); |
3432 | 0 | return; |
3433 | 0 | } |
3434 | 0 | if ((mLivenessState) == (mozilla::ipc::LivenessState::Dead)) { |
3435 | 0 | NS_WARNING("Not resolving response because actor is destroyed."); |
3436 | 0 | return; |
3437 | 0 | } |
3438 | 0 | bool resolve__ = true; |
3439 | 0 | CreatedWindowInfo window; |
3440 | 0 | window = std::move(aParam); |
3441 | 0 | IPC::Message* reply__ = PBrowser::Reply_BrowserFrameOpenWindow(id__); |
3442 | 0 | WriteIPDLParam(reply__, self__, resolve__); |
3443 | 0 | // Sentinel = 'resolve__' |
3444 | 0 | (reply__)->WriteSentinel(3997392463); |
3445 | 0 | WriteIPDLParam(reply__, self__, window); |
3446 | 0 | // Sentinel = 'window' |
3447 | 0 | (reply__)->WriteSentinel(3032525362); |
3448 | 0 | (reply__)->set_seqno(seqno__); |
3449 | 0 |
|
3450 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3451 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
3452 | 0 | } |
3453 | 0 | bool sendok__ = (GetIPCChannel())->Send(reply__); |
3454 | 0 | if ((!(sendok__))) { |
3455 | 0 | NS_WARNING("Error sending reply"); |
3456 | 0 | } |
3457 | 0 | }; |
3458 | 0 | if ((!(RecvBrowserFrameOpenWindow(opener, renderFrame, aURL, aName, aFeatures, std::move(resolver))))) { |
3459 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3460 | 0 | // Error handled in mozilla::ipc::IPCResult |
3461 | 0 | return MsgProcessingError; |
3462 | 0 | } |
3463 | 0 | |
3464 | 0 | return MsgProcessed; |
3465 | 0 | } |
3466 | 0 | case PBrowser::Msg_RespondStartSwipeEvent__ID: |
3467 | 0 | { |
3468 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3469 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3470 | 0 | } |
3471 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RespondStartSwipeEvent", OTHER); |
3472 | 0 |
|
3473 | 0 | PickleIterator iter__(msg__); |
3474 | 0 | uint64_t aInputBlockId; |
3475 | 0 | bool aStartSwipe; |
3476 | 0 |
|
3477 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aInputBlockId)))))) { |
3478 | 0 | FatalError("Error deserializing 'uint64_t'"); |
3479 | 0 | return MsgValueError; |
3480 | 0 | } |
3481 | 0 | // Sentinel = 'aInputBlockId' |
3482 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3003300100)))) { |
3483 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
3484 | 0 | return MsgValueError; |
3485 | 0 | } |
3486 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aStartSwipe)))))) { |
3487 | 0 | FatalError("Error deserializing 'bool'"); |
3488 | 0 | return MsgValueError; |
3489 | 0 | } |
3490 | 0 | // Sentinel = 'aStartSwipe' |
3491 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2833790180)))) { |
3492 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
3493 | 0 | return MsgValueError; |
3494 | 0 | } |
3495 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3496 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3497 | 0 | FatalError("Transition error"); |
3498 | 0 | return MsgValueError; |
3499 | 0 | } |
3500 | 0 | if ((!(RecvRespondStartSwipeEvent(aInputBlockId, aStartSwipe)))) { |
3501 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3502 | 0 | // Error handled in mozilla::ipc::IPCResult |
3503 | 0 | return MsgProcessingError; |
3504 | 0 | } |
3505 | 0 | |
3506 | 0 | return MsgProcessed; |
3507 | 0 | } |
3508 | 0 | case PBrowser::Msg_AsyncAuthPrompt__ID: |
3509 | 0 | { |
3510 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3511 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3512 | 0 | } |
3513 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_AsyncAuthPrompt", OTHER); |
3514 | 0 |
|
3515 | 0 | PickleIterator iter__(msg__); |
3516 | 0 | nsCString uri; |
3517 | 0 | nsString realm; |
3518 | 0 | uint64_t aCallbackId; |
3519 | 0 |
|
3520 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) { |
3521 | 0 | FatalError("Error deserializing 'nsCString'"); |
3522 | 0 | return MsgValueError; |
3523 | 0 | } |
3524 | 0 | // Sentinel = 'uri' |
3525 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) { |
3526 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
3527 | 0 | return MsgValueError; |
3528 | 0 | } |
3529 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(realm)))))) { |
3530 | 0 | FatalError("Error deserializing 'nsString'"); |
3531 | 0 | return MsgValueError; |
3532 | 0 | } |
3533 | 0 | // Sentinel = 'realm' |
3534 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1127162788)))) { |
3535 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3536 | 0 | return MsgValueError; |
3537 | 0 | } |
3538 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCallbackId)))))) { |
3539 | 0 | FatalError("Error deserializing 'uint64_t'"); |
3540 | 0 | return MsgValueError; |
3541 | 0 | } |
3542 | 0 | // Sentinel = 'aCallbackId' |
3543 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1362998144)))) { |
3544 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
3545 | 0 | return MsgValueError; |
3546 | 0 | } |
3547 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3548 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3549 | 0 | FatalError("Transition error"); |
3550 | 0 | return MsgValueError; |
3551 | 0 | } |
3552 | 0 | if ((!(RecvAsyncAuthPrompt(uri, realm, aCallbackId)))) { |
3553 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3554 | 0 | // Error handled in mozilla::ipc::IPCResult |
3555 | 0 | return MsgProcessingError; |
3556 | 0 | } |
3557 | 0 | |
3558 | 0 | return MsgProcessed; |
3559 | 0 | } |
3560 | 0 | case PBrowser::Msg_LookUpDictionary__ID: |
3561 | 0 | { |
3562 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3563 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3564 | 0 | } |
3565 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_LookUpDictionary", OTHER); |
3566 | 0 |
|
3567 | 0 | PickleIterator iter__(msg__); |
3568 | 0 | nsString aText; |
3569 | 0 | nsTArray<FontRange> aFontRangeArray; |
3570 | 0 | bool aIsVertical; |
3571 | 0 | LayoutDeviceIntPoint aPoint; |
3572 | 0 |
|
3573 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aText)))))) { |
3574 | 0 | FatalError("Error deserializing 'nsString'"); |
3575 | 0 | return MsgValueError; |
3576 | 0 | } |
3577 | 0 | // Sentinel = 'aText' |
3578 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 711388569)))) { |
3579 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3580 | 0 | return MsgValueError; |
3581 | 0 | } |
3582 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFontRangeArray)))))) { |
3583 | 0 | FatalError("Error deserializing 'nsTArray'"); |
3584 | 0 | return MsgValueError; |
3585 | 0 | } |
3586 | 0 | // Sentinel = 'aFontRangeArray' |
3587 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 578754499)))) { |
3588 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
3589 | 0 | return MsgValueError; |
3590 | 0 | } |
3591 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aIsVertical)))))) { |
3592 | 0 | FatalError("Error deserializing 'bool'"); |
3593 | 0 | return MsgValueError; |
3594 | 0 | } |
3595 | 0 | // Sentinel = 'aIsVertical' |
3596 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 488523112)))) { |
3597 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
3598 | 0 | return MsgValueError; |
3599 | 0 | } |
3600 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPoint)))))) { |
3601 | 0 | FatalError("Error deserializing 'LayoutDeviceIntPoint'"); |
3602 | 0 | return MsgValueError; |
3603 | 0 | } |
3604 | 0 | // Sentinel = 'aPoint' |
3605 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1738826207)))) { |
3606 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'"); |
3607 | 0 | return MsgValueError; |
3608 | 0 | } |
3609 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3610 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3611 | 0 | FatalError("Transition error"); |
3612 | 0 | return MsgValueError; |
3613 | 0 | } |
3614 | 0 | if ((!(RecvLookUpDictionary(aText, std::move(aFontRangeArray), aIsVertical, aPoint)))) { |
3615 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3616 | 0 | // Error handled in mozilla::ipc::IPCResult |
3617 | 0 | return MsgProcessingError; |
3618 | 0 | } |
3619 | 0 | |
3620 | 0 | return MsgProcessed; |
3621 | 0 | } |
3622 | 0 | case PBrowser::Msg___delete____ID: |
3623 | 0 | { |
3624 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3625 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3626 | 0 | } |
3627 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg___delete__", OTHER); |
3628 | 0 |
|
3629 | 0 | PickleIterator iter__(msg__); |
3630 | 0 | PBrowserParent* actor; |
3631 | 0 |
|
3632 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(actor)))))) { |
3633 | 0 | FatalError("Error deserializing 'PBrowserParent'"); |
3634 | 0 | return MsgValueError; |
3635 | 0 | } |
3636 | 0 | if ((!((*((&(actor))))))) { |
3637 | 0 | FatalError("Error deserializing 'PBrowserParent'"); |
3638 | 0 | return MsgValueError; |
3639 | 0 | } |
3640 | 0 | // Sentinel = 'actor' |
3641 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
3642 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserParent'"); |
3643 | 0 | return MsgValueError; |
3644 | 0 | } |
3645 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3646 | 0 | if ((!(StateTransition(true, (&(mLivenessState)))))) { |
3647 | 0 | FatalError("Transition error"); |
3648 | 0 | return MsgValueError; |
3649 | 0 | } |
3650 | 0 | if ((!(Recv__delete__()))) { |
3651 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3652 | 0 | // Error handled in mozilla::ipc::IPCResult |
3653 | 0 | return MsgProcessingError; |
3654 | 0 | } |
3655 | 0 | |
3656 | 0 | |
3657 | 0 | IProtocol* mgr = (actor)->Manager(); |
3658 | 0 | (actor)->DestroySubtree(Deletion); |
3659 | 0 | (actor)->DeallocSubtree(); |
3660 | 0 | (mgr)->RemoveManagee(PBrowserMsgStart, actor); |
3661 | 0 |
|
3662 | 0 | return MsgProcessed; |
3663 | 0 | } |
3664 | 0 | case PBrowser::Msg_ReplyKeyEvent__ID: |
3665 | 0 | { |
3666 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3667 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3668 | 0 | } |
3669 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_ReplyKeyEvent", OTHER); |
3670 | 0 |
|
3671 | 0 | PickleIterator iter__(msg__); |
3672 | 0 | WidgetKeyboardEvent event; |
3673 | 0 |
|
3674 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(event)))))) { |
3675 | 0 | FatalError("Error deserializing 'WidgetKeyboardEvent'"); |
3676 | 0 | return MsgValueError; |
3677 | 0 | } |
3678 | 0 | // Sentinel = 'event' |
3679 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 82031261)))) { |
3680 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'WidgetKeyboardEvent'"); |
3681 | 0 | return MsgValueError; |
3682 | 0 | } |
3683 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3684 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3685 | 0 | FatalError("Transition error"); |
3686 | 0 | return MsgValueError; |
3687 | 0 | } |
3688 | 0 | if ((!(RecvReplyKeyEvent(event)))) { |
3689 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3690 | 0 | // Error handled in mozilla::ipc::IPCResult |
3691 | 0 | return MsgProcessingError; |
3692 | 0 | } |
3693 | 0 | |
3694 | 0 | return MsgProcessed; |
3695 | 0 | } |
3696 | 0 | case PBrowser::Msg_SynthesizeNativeKeyEvent__ID: |
3697 | 0 | { |
3698 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3699 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3700 | 0 | } |
3701 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SynthesizeNativeKeyEvent", OTHER); |
3702 | 0 |
|
3703 | 0 | PickleIterator iter__(msg__); |
3704 | 0 | int32_t aNativeKeyboardLayout; |
3705 | 0 | int32_t aNativeKeyCode; |
3706 | 0 | uint32_t aModifierFlags; |
3707 | 0 | nsString aCharacters; |
3708 | 0 | nsString aUnmodifiedCharacters; |
3709 | 0 | uint64_t aObserverId; |
3710 | 0 |
|
3711 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aNativeKeyboardLayout)))))) { |
3712 | 0 | FatalError("Error deserializing 'int32_t'"); |
3713 | 0 | return MsgValueError; |
3714 | 0 | } |
3715 | 0 | // Sentinel = 'aNativeKeyboardLayout' |
3716 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2296433160)))) { |
3717 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
3718 | 0 | return MsgValueError; |
3719 | 0 | } |
3720 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aNativeKeyCode)))))) { |
3721 | 0 | FatalError("Error deserializing 'int32_t'"); |
3722 | 0 | return MsgValueError; |
3723 | 0 | } |
3724 | 0 | // Sentinel = 'aNativeKeyCode' |
3725 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 748756164)))) { |
3726 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
3727 | 0 | return MsgValueError; |
3728 | 0 | } |
3729 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aModifierFlags)))))) { |
3730 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3731 | 0 | return MsgValueError; |
3732 | 0 | } |
3733 | 0 | // Sentinel = 'aModifierFlags' |
3734 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2919842913)))) { |
3735 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3736 | 0 | return MsgValueError; |
3737 | 0 | } |
3738 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCharacters)))))) { |
3739 | 0 | FatalError("Error deserializing 'nsString'"); |
3740 | 0 | return MsgValueError; |
3741 | 0 | } |
3742 | 0 | // Sentinel = 'aCharacters' |
3743 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3551406970)))) { |
3744 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3745 | 0 | return MsgValueError; |
3746 | 0 | } |
3747 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aUnmodifiedCharacters)))))) { |
3748 | 0 | FatalError("Error deserializing 'nsString'"); |
3749 | 0 | return MsgValueError; |
3750 | 0 | } |
3751 | 0 | // Sentinel = 'aUnmodifiedCharacters' |
3752 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3636472644)))) { |
3753 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3754 | 0 | return MsgValueError; |
3755 | 0 | } |
3756 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aObserverId)))))) { |
3757 | 0 | FatalError("Error deserializing 'uint64_t'"); |
3758 | 0 | return MsgValueError; |
3759 | 0 | } |
3760 | 0 | // Sentinel = 'aObserverId' |
3761 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 959110235)))) { |
3762 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
3763 | 0 | return MsgValueError; |
3764 | 0 | } |
3765 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3766 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3767 | 0 | FatalError("Transition error"); |
3768 | 0 | return MsgValueError; |
3769 | 0 | } |
3770 | 0 | if ((!(RecvSynthesizeNativeKeyEvent(aNativeKeyboardLayout, aNativeKeyCode, aModifierFlags, aCharacters, aUnmodifiedCharacters, aObserverId)))) { |
3771 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3772 | 0 | // Error handled in mozilla::ipc::IPCResult |
3773 | 0 | return MsgProcessingError; |
3774 | 0 | } |
3775 | 0 | |
3776 | 0 | return MsgProcessed; |
3777 | 0 | } |
3778 | 0 | case PBrowser::Msg_SynthesizeNativeMouseEvent__ID: |
3779 | 0 | { |
3780 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3781 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3782 | 0 | } |
3783 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SynthesizeNativeMouseEvent", OTHER); |
3784 | 0 |
|
3785 | 0 | PickleIterator iter__(msg__); |
3786 | 0 | LayoutDeviceIntPoint aPoint; |
3787 | 0 | uint32_t aNativeMessage; |
3788 | 0 | uint32_t aModifierFlags; |
3789 | 0 | uint64_t aObserverId; |
3790 | 0 |
|
3791 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPoint)))))) { |
3792 | 0 | FatalError("Error deserializing 'LayoutDeviceIntPoint'"); |
3793 | 0 | return MsgValueError; |
3794 | 0 | } |
3795 | 0 | // Sentinel = 'aPoint' |
3796 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1738826207)))) { |
3797 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'"); |
3798 | 0 | return MsgValueError; |
3799 | 0 | } |
3800 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aNativeMessage)))))) { |
3801 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3802 | 0 | return MsgValueError; |
3803 | 0 | } |
3804 | 0 | // Sentinel = 'aNativeMessage' |
3805 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2551948163)))) { |
3806 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3807 | 0 | return MsgValueError; |
3808 | 0 | } |
3809 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aModifierFlags)))))) { |
3810 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3811 | 0 | return MsgValueError; |
3812 | 0 | } |
3813 | 0 | // Sentinel = 'aModifierFlags' |
3814 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2919842913)))) { |
3815 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3816 | 0 | return MsgValueError; |
3817 | 0 | } |
3818 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aObserverId)))))) { |
3819 | 0 | FatalError("Error deserializing 'uint64_t'"); |
3820 | 0 | return MsgValueError; |
3821 | 0 | } |
3822 | 0 | // Sentinel = 'aObserverId' |
3823 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 959110235)))) { |
3824 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
3825 | 0 | return MsgValueError; |
3826 | 0 | } |
3827 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3828 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3829 | 0 | FatalError("Transition error"); |
3830 | 0 | return MsgValueError; |
3831 | 0 | } |
3832 | 0 | if ((!(RecvSynthesizeNativeMouseEvent(aPoint, aNativeMessage, aModifierFlags, aObserverId)))) { |
3833 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3834 | 0 | // Error handled in mozilla::ipc::IPCResult |
3835 | 0 | return MsgProcessingError; |
3836 | 0 | } |
3837 | 0 | |
3838 | 0 | return MsgProcessed; |
3839 | 0 | } |
3840 | 0 | case PBrowser::Msg_SynthesizeNativeMouseMove__ID: |
3841 | 0 | { |
3842 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3843 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3844 | 0 | } |
3845 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SynthesizeNativeMouseMove", OTHER); |
3846 | 0 |
|
3847 | 0 | PickleIterator iter__(msg__); |
3848 | 0 | LayoutDeviceIntPoint aPoint; |
3849 | 0 | uint64_t aObserverId; |
3850 | 0 |
|
3851 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPoint)))))) { |
3852 | 0 | FatalError("Error deserializing 'LayoutDeviceIntPoint'"); |
3853 | 0 | return MsgValueError; |
3854 | 0 | } |
3855 | 0 | // Sentinel = 'aPoint' |
3856 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1738826207)))) { |
3857 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'"); |
3858 | 0 | return MsgValueError; |
3859 | 0 | } |
3860 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aObserverId)))))) { |
3861 | 0 | FatalError("Error deserializing 'uint64_t'"); |
3862 | 0 | return MsgValueError; |
3863 | 0 | } |
3864 | 0 | // Sentinel = 'aObserverId' |
3865 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 959110235)))) { |
3866 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
3867 | 0 | return MsgValueError; |
3868 | 0 | } |
3869 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3870 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3871 | 0 | FatalError("Transition error"); |
3872 | 0 | return MsgValueError; |
3873 | 0 | } |
3874 | 0 | if ((!(RecvSynthesizeNativeMouseMove(aPoint, aObserverId)))) { |
3875 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3876 | 0 | // Error handled in mozilla::ipc::IPCResult |
3877 | 0 | return MsgProcessingError; |
3878 | 0 | } |
3879 | 0 | |
3880 | 0 | return MsgProcessed; |
3881 | 0 | } |
3882 | 0 | case PBrowser::Msg_SynthesizeNativeMouseScrollEvent__ID: |
3883 | 0 | { |
3884 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3885 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3886 | 0 | } |
3887 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SynthesizeNativeMouseScrollEvent", OTHER); |
3888 | 0 |
|
3889 | 0 | PickleIterator iter__(msg__); |
3890 | 0 | LayoutDeviceIntPoint aPoint; |
3891 | 0 | uint32_t aNativeMessage; |
3892 | 0 | double aDeltaX; |
3893 | 0 | double aDeltaY; |
3894 | 0 | double aDeltaZ; |
3895 | 0 | uint32_t aModifierFlags; |
3896 | 0 | uint32_t aAdditionalFlags; |
3897 | 0 | uint64_t aObserverId; |
3898 | 0 |
|
3899 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPoint)))))) { |
3900 | 0 | FatalError("Error deserializing 'LayoutDeviceIntPoint'"); |
3901 | 0 | return MsgValueError; |
3902 | 0 | } |
3903 | 0 | // Sentinel = 'aPoint' |
3904 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1738826207)))) { |
3905 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'"); |
3906 | 0 | return MsgValueError; |
3907 | 0 | } |
3908 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aNativeMessage)))))) { |
3909 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3910 | 0 | return MsgValueError; |
3911 | 0 | } |
3912 | 0 | // Sentinel = 'aNativeMessage' |
3913 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2551948163)))) { |
3914 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3915 | 0 | return MsgValueError; |
3916 | 0 | } |
3917 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDeltaX)))))) { |
3918 | 0 | FatalError("Error deserializing 'double'"); |
3919 | 0 | return MsgValueError; |
3920 | 0 | } |
3921 | 0 | // Sentinel = 'aDeltaX' |
3922 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3857017116)))) { |
3923 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'double'"); |
3924 | 0 | return MsgValueError; |
3925 | 0 | } |
3926 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDeltaY)))))) { |
3927 | 0 | FatalError("Error deserializing 'double'"); |
3928 | 0 | return MsgValueError; |
3929 | 0 | } |
3930 | 0 | // Sentinel = 'aDeltaY' |
3931 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3857017117)))) { |
3932 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'double'"); |
3933 | 0 | return MsgValueError; |
3934 | 0 | } |
3935 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDeltaZ)))))) { |
3936 | 0 | FatalError("Error deserializing 'double'"); |
3937 | 0 | return MsgValueError; |
3938 | 0 | } |
3939 | 0 | // Sentinel = 'aDeltaZ' |
3940 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3857017118)))) { |
3941 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'double'"); |
3942 | 0 | return MsgValueError; |
3943 | 0 | } |
3944 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aModifierFlags)))))) { |
3945 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3946 | 0 | return MsgValueError; |
3947 | 0 | } |
3948 | 0 | // Sentinel = 'aModifierFlags' |
3949 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2919842913)))) { |
3950 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3951 | 0 | return MsgValueError; |
3952 | 0 | } |
3953 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aAdditionalFlags)))))) { |
3954 | 0 | FatalError("Error deserializing 'uint32_t'"); |
3955 | 0 | return MsgValueError; |
3956 | 0 | } |
3957 | 0 | // Sentinel = 'aAdditionalFlags' |
3958 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3734748559)))) { |
3959 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
3960 | 0 | return MsgValueError; |
3961 | 0 | } |
3962 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aObserverId)))))) { |
3963 | 0 | FatalError("Error deserializing 'uint64_t'"); |
3964 | 0 | return MsgValueError; |
3965 | 0 | } |
3966 | 0 | // Sentinel = 'aObserverId' |
3967 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 959110235)))) { |
3968 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
3969 | 0 | return MsgValueError; |
3970 | 0 | } |
3971 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
3972 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3973 | 0 | FatalError("Transition error"); |
3974 | 0 | return MsgValueError; |
3975 | 0 | } |
3976 | 0 | if ((!(RecvSynthesizeNativeMouseScrollEvent(aPoint, aNativeMessage, aDeltaX, aDeltaY, aDeltaZ, aModifierFlags, aAdditionalFlags, aObserverId)))) { |
3977 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
3978 | 0 | // Error handled in mozilla::ipc::IPCResult |
3979 | 0 | return MsgProcessingError; |
3980 | 0 | } |
3981 | 0 | |
3982 | 0 | return MsgProcessed; |
3983 | 0 | } |
3984 | 0 | case PBrowser::Msg_SynthesizeNativeTouchPoint__ID: |
3985 | 0 | { |
3986 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
3987 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3988 | 0 | } |
3989 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SynthesizeNativeTouchPoint", OTHER); |
3990 | 0 |
|
3991 | 0 | PickleIterator iter__(msg__); |
3992 | 0 | uint32_t aPointerId; |
3993 | 0 | TouchPointerState aPointerState; |
3994 | 0 | LayoutDeviceIntPoint aPoint; |
3995 | 0 | double aPointerPressure; |
3996 | 0 | uint32_t aPointerOrientation; |
3997 | 0 | uint64_t aObserverId; |
3998 | 0 |
|
3999 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPointerId)))))) { |
4000 | 0 | FatalError("Error deserializing 'uint32_t'"); |
4001 | 0 | return MsgValueError; |
4002 | 0 | } |
4003 | 0 | // Sentinel = 'aPointerId' |
4004 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 247770189)))) { |
4005 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
4006 | 0 | return MsgValueError; |
4007 | 0 | } |
4008 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPointerState)))))) { |
4009 | 0 | FatalError("Error deserializing 'TouchPointerState'"); |
4010 | 0 | return MsgValueError; |
4011 | 0 | } |
4012 | 0 | // Sentinel = 'aPointerState' |
4013 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3456771858)))) { |
4014 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'TouchPointerState'"); |
4015 | 0 | return MsgValueError; |
4016 | 0 | } |
4017 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPoint)))))) { |
4018 | 0 | FatalError("Error deserializing 'LayoutDeviceIntPoint'"); |
4019 | 0 | return MsgValueError; |
4020 | 0 | } |
4021 | 0 | // Sentinel = 'aPoint' |
4022 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1738826207)))) { |
4023 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'"); |
4024 | 0 | return MsgValueError; |
4025 | 0 | } |
4026 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPointerPressure)))))) { |
4027 | 0 | FatalError("Error deserializing 'double'"); |
4028 | 0 | return MsgValueError; |
4029 | 0 | } |
4030 | 0 | // Sentinel = 'aPointerPressure' |
4031 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1607929601)))) { |
4032 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'double'"); |
4033 | 0 | return MsgValueError; |
4034 | 0 | } |
4035 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPointerOrientation)))))) { |
4036 | 0 | FatalError("Error deserializing 'uint32_t'"); |
4037 | 0 | return MsgValueError; |
4038 | 0 | } |
4039 | 0 | // Sentinel = 'aPointerOrientation' |
4040 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1181512581)))) { |
4041 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
4042 | 0 | return MsgValueError; |
4043 | 0 | } |
4044 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aObserverId)))))) { |
4045 | 0 | FatalError("Error deserializing 'uint64_t'"); |
4046 | 0 | return MsgValueError; |
4047 | 0 | } |
4048 | 0 | // Sentinel = 'aObserverId' |
4049 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 959110235)))) { |
4050 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
4051 | 0 | return MsgValueError; |
4052 | 0 | } |
4053 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4054 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4055 | 0 | FatalError("Transition error"); |
4056 | 0 | return MsgValueError; |
4057 | 0 | } |
4058 | 0 | if ((!(RecvSynthesizeNativeTouchPoint(aPointerId, aPointerState, aPoint, aPointerPressure, aPointerOrientation, aObserverId)))) { |
4059 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4060 | 0 | // Error handled in mozilla::ipc::IPCResult |
4061 | 0 | return MsgProcessingError; |
4062 | 0 | } |
4063 | 0 | |
4064 | 0 | return MsgProcessed; |
4065 | 0 | } |
4066 | 0 | case PBrowser::Msg_SynthesizeNativeTouchTap__ID: |
4067 | 0 | { |
4068 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4069 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4070 | 0 | } |
4071 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SynthesizeNativeTouchTap", OTHER); |
4072 | 0 |
|
4073 | 0 | PickleIterator iter__(msg__); |
4074 | 0 | LayoutDeviceIntPoint aPoint; |
4075 | 0 | bool aLongTap; |
4076 | 0 | uint64_t aObserverId; |
4077 | 0 |
|
4078 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPoint)))))) { |
4079 | 0 | FatalError("Error deserializing 'LayoutDeviceIntPoint'"); |
4080 | 0 | return MsgValueError; |
4081 | 0 | } |
4082 | 0 | // Sentinel = 'aPoint' |
4083 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1738826207)))) { |
4084 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'"); |
4085 | 0 | return MsgValueError; |
4086 | 0 | } |
4087 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aLongTap)))))) { |
4088 | 0 | FatalError("Error deserializing 'bool'"); |
4089 | 0 | return MsgValueError; |
4090 | 0 | } |
4091 | 0 | // Sentinel = 'aLongTap' |
4092 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 614806710)))) { |
4093 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
4094 | 0 | return MsgValueError; |
4095 | 0 | } |
4096 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aObserverId)))))) { |
4097 | 0 | FatalError("Error deserializing 'uint64_t'"); |
4098 | 0 | return MsgValueError; |
4099 | 0 | } |
4100 | 0 | // Sentinel = 'aObserverId' |
4101 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 959110235)))) { |
4102 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
4103 | 0 | return MsgValueError; |
4104 | 0 | } |
4105 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4106 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4107 | 0 | FatalError("Transition error"); |
4108 | 0 | return MsgValueError; |
4109 | 0 | } |
4110 | 0 | if ((!(RecvSynthesizeNativeTouchTap(aPoint, aLongTap, aObserverId)))) { |
4111 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4112 | 0 | // Error handled in mozilla::ipc::IPCResult |
4113 | 0 | return MsgProcessingError; |
4114 | 0 | } |
4115 | 0 | |
4116 | 0 | return MsgProcessed; |
4117 | 0 | } |
4118 | 0 | case PBrowser::Msg_ClearNativeTouchSequence__ID: |
4119 | 0 | { |
4120 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4121 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4122 | 0 | } |
4123 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_ClearNativeTouchSequence", OTHER); |
4124 | 0 |
|
4125 | 0 | PickleIterator iter__(msg__); |
4126 | 0 | uint64_t aObserverId; |
4127 | 0 |
|
4128 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aObserverId)))))) { |
4129 | 0 | FatalError("Error deserializing 'uint64_t'"); |
4130 | 0 | return MsgValueError; |
4131 | 0 | } |
4132 | 0 | // Sentinel = 'aObserverId' |
4133 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 959110235)))) { |
4134 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
4135 | 0 | return MsgValueError; |
4136 | 0 | } |
4137 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4138 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4139 | 0 | FatalError("Transition error"); |
4140 | 0 | return MsgValueError; |
4141 | 0 | } |
4142 | 0 | if ((!(RecvClearNativeTouchSequence(aObserverId)))) { |
4143 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4144 | 0 | // Error handled in mozilla::ipc::IPCResult |
4145 | 0 | return MsgProcessingError; |
4146 | 0 | } |
4147 | 0 | |
4148 | 0 | return MsgProcessed; |
4149 | 0 | } |
4150 | 0 | case PBrowser::Msg_AccessKeyNotHandled__ID: |
4151 | 0 | { |
4152 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4153 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4154 | 0 | } |
4155 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_AccessKeyNotHandled", OTHER); |
4156 | 0 |
|
4157 | 0 | PickleIterator iter__(msg__); |
4158 | 0 | WidgetKeyboardEvent event; |
4159 | 0 |
|
4160 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(event)))))) { |
4161 | 0 | FatalError("Error deserializing 'WidgetKeyboardEvent'"); |
4162 | 0 | return MsgValueError; |
4163 | 0 | } |
4164 | 0 | // Sentinel = 'event' |
4165 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 82031261)))) { |
4166 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'WidgetKeyboardEvent'"); |
4167 | 0 | return MsgValueError; |
4168 | 0 | } |
4169 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4170 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4171 | 0 | FatalError("Transition error"); |
4172 | 0 | return MsgValueError; |
4173 | 0 | } |
4174 | 0 | if ((!(RecvAccessKeyNotHandled(event)))) { |
4175 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4176 | 0 | // Error handled in mozilla::ipc::IPCResult |
4177 | 0 | return MsgProcessingError; |
4178 | 0 | } |
4179 | 0 | |
4180 | 0 | return MsgProcessed; |
4181 | 0 | } |
4182 | 0 | case PBrowser::Msg_SetHasBeforeUnload__ID: |
4183 | 0 | { |
4184 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4185 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4186 | 0 | } |
4187 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetHasBeforeUnload", OTHER); |
4188 | 0 |
|
4189 | 0 | PickleIterator iter__(msg__); |
4190 | 0 | bool aHasBeforeUnload; |
4191 | 0 |
|
4192 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aHasBeforeUnload)))))) { |
4193 | 0 | FatalError("Error deserializing 'bool'"); |
4194 | 0 | return MsgValueError; |
4195 | 0 | } |
4196 | 0 | // Sentinel = 'aHasBeforeUnload' |
4197 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1455174591)))) { |
4198 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
4199 | 0 | return MsgValueError; |
4200 | 0 | } |
4201 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4202 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4203 | 0 | FatalError("Transition error"); |
4204 | 0 | return MsgValueError; |
4205 | 0 | } |
4206 | 0 | if ((!(RecvSetHasBeforeUnload(aHasBeforeUnload)))) { |
4207 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4208 | 0 | // Error handled in mozilla::ipc::IPCResult |
4209 | 0 | return MsgProcessingError; |
4210 | 0 | } |
4211 | 0 | |
4212 | 0 | return MsgProcessed; |
4213 | 0 | } |
4214 | 0 | case PBrowser::Msg_RemotePaintIsReady__ID: |
4215 | 0 | { |
4216 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4217 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4218 | 0 | } |
4219 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RemotePaintIsReady", OTHER); |
4220 | 0 |
|
4221 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4222 | 0 | FatalError("Transition error"); |
4223 | 0 | return MsgValueError; |
4224 | 0 | } |
4225 | 0 | if ((!(RecvRemotePaintIsReady()))) { |
4226 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4227 | 0 | // Error handled in mozilla::ipc::IPCResult |
4228 | 0 | return MsgProcessingError; |
4229 | 0 | } |
4230 | 0 | |
4231 | 0 | return MsgProcessed; |
4232 | 0 | } |
4233 | 0 | case PBrowser::Msg_RemoteIsReadyToHandleInputEvents__ID: |
4234 | 0 | { |
4235 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4236 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4237 | 0 | } |
4238 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RemoteIsReadyToHandleInputEvents", OTHER); |
4239 | 0 |
|
4240 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4241 | 0 | FatalError("Transition error"); |
4242 | 0 | return MsgValueError; |
4243 | 0 | } |
4244 | 0 | if ((!(RecvRemoteIsReadyToHandleInputEvents()))) { |
4245 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4246 | 0 | // Error handled in mozilla::ipc::IPCResult |
4247 | 0 | return MsgProcessingError; |
4248 | 0 | } |
4249 | 0 | |
4250 | 0 | return MsgProcessed; |
4251 | 0 | } |
4252 | 0 | case PBrowser::Msg_PaintWhileInterruptingJSNoOp__ID: |
4253 | 0 | { |
4254 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4255 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4256 | 0 | } |
4257 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PaintWhileInterruptingJSNoOp", OTHER); |
4258 | 0 |
|
4259 | 0 | PickleIterator iter__(msg__); |
4260 | 0 | LayersObserverEpoch aEpoch; |
4261 | 0 |
|
4262 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEpoch)))))) { |
4263 | 0 | FatalError("Error deserializing 'LayersObserverEpoch'"); |
4264 | 0 | return MsgValueError; |
4265 | 0 | } |
4266 | 0 | // Sentinel = 'aEpoch' |
4267 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2333012390)))) { |
4268 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayersObserverEpoch'"); |
4269 | 0 | return MsgValueError; |
4270 | 0 | } |
4271 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4272 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4273 | 0 | FatalError("Transition error"); |
4274 | 0 | return MsgValueError; |
4275 | 0 | } |
4276 | 0 | if ((!(RecvPaintWhileInterruptingJSNoOp(aEpoch)))) { |
4277 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4278 | 0 | // Error handled in mozilla::ipc::IPCResult |
4279 | 0 | return MsgProcessingError; |
4280 | 0 | } |
4281 | 0 | |
4282 | 0 | return MsgProcessed; |
4283 | 0 | } |
4284 | 0 | case PBrowser::Msg_SetDimensions__ID: |
4285 | 0 | { |
4286 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4287 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4288 | 0 | } |
4289 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetDimensions", OTHER); |
4290 | 0 |
|
4291 | 0 | PickleIterator iter__(msg__); |
4292 | 0 | uint32_t aFlags; |
4293 | 0 | int32_t aX; |
4294 | 0 | int32_t aY; |
4295 | 0 | int32_t aCx; |
4296 | 0 | int32_t aCy; |
4297 | 0 |
|
4298 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFlags)))))) { |
4299 | 0 | FatalError("Error deserializing 'uint32_t'"); |
4300 | 0 | return MsgValueError; |
4301 | 0 | } |
4302 | 0 | // Sentinel = 'aFlags' |
4303 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3595665704)))) { |
4304 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
4305 | 0 | return MsgValueError; |
4306 | 0 | } |
4307 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aX)))))) { |
4308 | 0 | FatalError("Error deserializing 'int32_t'"); |
4309 | 0 | return MsgValueError; |
4310 | 0 | } |
4311 | 0 | // Sentinel = 'aX' |
4312 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2745208761)))) { |
4313 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
4314 | 0 | return MsgValueError; |
4315 | 0 | } |
4316 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aY)))))) { |
4317 | 0 | FatalError("Error deserializing 'int32_t'"); |
4318 | 0 | return MsgValueError; |
4319 | 0 | } |
4320 | 0 | // Sentinel = 'aY' |
4321 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2745208760)))) { |
4322 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
4323 | 0 | return MsgValueError; |
4324 | 0 | } |
4325 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCx)))))) { |
4326 | 0 | FatalError("Error deserializing 'int32_t'"); |
4327 | 0 | return MsgValueError; |
4328 | 0 | } |
4329 | 0 | // Sentinel = 'aCx' |
4330 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2725041819)))) { |
4331 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
4332 | 0 | return MsgValueError; |
4333 | 0 | } |
4334 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCy)))))) { |
4335 | 0 | FatalError("Error deserializing 'int32_t'"); |
4336 | 0 | return MsgValueError; |
4337 | 0 | } |
4338 | 0 | // Sentinel = 'aCy' |
4339 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2725041818)))) { |
4340 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
4341 | 0 | return MsgValueError; |
4342 | 0 | } |
4343 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4344 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4345 | 0 | FatalError("Transition error"); |
4346 | 0 | return MsgValueError; |
4347 | 0 | } |
4348 | 0 | if ((!(RecvSetDimensions(aFlags, aX, aY, aCx, aCy)))) { |
4349 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4350 | 0 | // Error handled in mozilla::ipc::IPCResult |
4351 | 0 | return MsgProcessingError; |
4352 | 0 | } |
4353 | 0 | |
4354 | 0 | return MsgProcessed; |
4355 | 0 | } |
4356 | 0 | case PBrowser::Msg_InvokeDragSession__ID: |
4357 | 0 | { |
4358 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4359 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4360 | 0 | } |
4361 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_InvokeDragSession", OTHER); |
4362 | 0 |
|
4363 | 0 | PickleIterator iter__(msg__); |
4364 | 0 | nsTArray<IPCDataTransfer> transfers; |
4365 | 0 | uint32_t action; |
4366 | 0 | OptionalShmem visualData; |
4367 | 0 | uint32_t stride; |
4368 | 0 | SurfaceFormat format; |
4369 | 0 | LayoutDeviceIntRect dragRect; |
4370 | 0 | nsCString principalURISpec; |
4371 | 0 |
|
4372 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(transfers)))))) { |
4373 | 0 | FatalError("Error deserializing 'nsTArray'"); |
4374 | 0 | return MsgValueError; |
4375 | 0 | } |
4376 | 0 | // Sentinel = 'transfers' |
4377 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3048523737)))) { |
4378 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
4379 | 0 | return MsgValueError; |
4380 | 0 | } |
4381 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(action)))))) { |
4382 | 0 | FatalError("Error deserializing 'uint32_t'"); |
4383 | 0 | return MsgValueError; |
4384 | 0 | } |
4385 | 0 | // Sentinel = 'action' |
4386 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 991072504)))) { |
4387 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
4388 | 0 | return MsgValueError; |
4389 | 0 | } |
4390 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(visualData)))))) { |
4391 | 0 | FatalError("Error deserializing 'OptionalShmem'"); |
4392 | 0 | return MsgValueError; |
4393 | 0 | } |
4394 | 0 | // Sentinel = 'visualData' |
4395 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 790909542)))) { |
4396 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'OptionalShmem'"); |
4397 | 0 | return MsgValueError; |
4398 | 0 | } |
4399 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(stride)))))) { |
4400 | 0 | FatalError("Error deserializing 'uint32_t'"); |
4401 | 0 | return MsgValueError; |
4402 | 0 | } |
4403 | 0 | // Sentinel = 'stride' |
4404 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2746301169)))) { |
4405 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
4406 | 0 | return MsgValueError; |
4407 | 0 | } |
4408 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(format)))))) { |
4409 | 0 | FatalError("Error deserializing 'SurfaceFormat'"); |
4410 | 0 | return MsgValueError; |
4411 | 0 | } |
4412 | 0 | // Sentinel = 'format' |
4413 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2052265543)))) { |
4414 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'SurfaceFormat'"); |
4415 | 0 | return MsgValueError; |
4416 | 0 | } |
4417 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(dragRect)))))) { |
4418 | 0 | FatalError("Error deserializing 'LayoutDeviceIntRect'"); |
4419 | 0 | return MsgValueError; |
4420 | 0 | } |
4421 | 0 | // Sentinel = 'dragRect' |
4422 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2591283112)))) { |
4423 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntRect'"); |
4424 | 0 | return MsgValueError; |
4425 | 0 | } |
4426 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principalURISpec)))))) { |
4427 | 0 | FatalError("Error deserializing 'nsCString'"); |
4428 | 0 | return MsgValueError; |
4429 | 0 | } |
4430 | 0 | // Sentinel = 'principalURISpec' |
4431 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3763833853)))) { |
4432 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
4433 | 0 | return MsgValueError; |
4434 | 0 | } |
4435 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4436 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4437 | 0 | FatalError("Transition error"); |
4438 | 0 | return MsgValueError; |
4439 | 0 | } |
4440 | 0 | if ((!(RecvInvokeDragSession(std::move(transfers), action, visualData, stride, format, dragRect, principalURISpec)))) { |
4441 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4442 | 0 | // Error handled in mozilla::ipc::IPCResult |
4443 | 0 | return MsgProcessingError; |
4444 | 0 | } |
4445 | 0 | |
4446 | 0 | return MsgProcessed; |
4447 | 0 | } |
4448 | 0 | case PBrowser::Msg_ShowCanvasPermissionPrompt__ID: |
4449 | 0 | { |
4450 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4451 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4452 | 0 | } |
4453 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_ShowCanvasPermissionPrompt", OTHER); |
4454 | 0 |
|
4455 | 0 | PickleIterator iter__(msg__); |
4456 | 0 | nsCString aFirstPartyURI; |
4457 | 0 |
|
4458 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFirstPartyURI)))))) { |
4459 | 0 | FatalError("Error deserializing 'nsCString'"); |
4460 | 0 | return MsgValueError; |
4461 | 0 | } |
4462 | 0 | // Sentinel = 'aFirstPartyURI' |
4463 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3363371141)))) { |
4464 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
4465 | 0 | return MsgValueError; |
4466 | 0 | } |
4467 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4468 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4469 | 0 | FatalError("Transition error"); |
4470 | 0 | return MsgValueError; |
4471 | 0 | } |
4472 | 0 | if ((!(RecvShowCanvasPermissionPrompt(aFirstPartyURI)))) { |
4473 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4474 | 0 | // Error handled in mozilla::ipc::IPCResult |
4475 | 0 | return MsgProcessingError; |
4476 | 0 | } |
4477 | 0 | |
4478 | 0 | return MsgProcessed; |
4479 | 0 | } |
4480 | 0 | default: |
4481 | 0 | { |
4482 | 0 | return MsgNotKnown; |
4483 | 0 | } |
4484 | 0 | } |
4485 | 0 | } |
4486 | | |
4487 | | auto PBrowserParent::OnMessageReceived( |
4488 | | const Message& msg__, |
4489 | | Message*& reply__) -> PBrowserParent::Result |
4490 | 0 | { |
4491 | 0 | switch ((msg__).type()) { |
4492 | 0 | case PBrowser::Msg_PPluginWidgetConstructor__ID: |
4493 | 0 | { |
4494 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4495 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4496 | 0 | } |
4497 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_PPluginWidgetConstructor", OTHER); |
4498 | 0 |
|
4499 | 0 | PickleIterator iter__(msg__); |
4500 | 0 | ActorHandle handle__; |
4501 | 0 | PPluginWidgetParent* actor; |
4502 | 0 |
|
4503 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
4504 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
4505 | 0 | return MsgValueError; |
4506 | 0 | } |
4507 | 0 | // Sentinel = 'actor' |
4508 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
4509 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
4510 | 0 | return MsgValueError; |
4511 | 0 | } |
4512 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4513 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4514 | 0 | FatalError("Transition error"); |
4515 | 0 | return MsgValueError; |
4516 | 0 | } |
4517 | 0 | actor = AllocPPluginWidgetParent(); |
4518 | 0 | if ((!(actor))) { |
4519 | 0 | NS_WARNING("Error constructing actor PPluginWidgetParent"); |
4520 | 0 | return MsgValueError; |
4521 | 0 | } |
4522 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
4523 | 0 | (mManagedPPluginWidgetParent).PutEntry(actor); |
4524 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
4525 | 0 |
|
4526 | 0 | int32_t id__ = Id(); |
4527 | 0 | if ((!(RecvPPluginWidgetConstructor(actor)))) { |
4528 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4529 | 0 | // Error handled in mozilla::ipc::IPCResult |
4530 | 0 | return MsgProcessingError; |
4531 | 0 | } |
4532 | 0 | reply__ = PBrowser::Reply_PPluginWidgetConstructor(id__); |
4533 | 0 |
|
4534 | 0 |
|
4535 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4536 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
4537 | 0 | } |
4538 | 0 |
|
4539 | 0 | return MsgProcessed; |
4540 | 0 | } |
4541 | 0 | case PBrowser::Msg_DispatchFocusToTopLevelWindow__ID: |
4542 | 0 | { |
4543 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4544 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4545 | 0 | } |
4546 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_DispatchFocusToTopLevelWindow", OTHER); |
4547 | 0 |
|
4548 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4549 | 0 | FatalError("Transition error"); |
4550 | 0 | return MsgValueError; |
4551 | 0 | } |
4552 | 0 | int32_t id__ = Id(); |
4553 | 0 | if ((!(RecvDispatchFocusToTopLevelWindow()))) { |
4554 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4555 | 0 | // Error handled in mozilla::ipc::IPCResult |
4556 | 0 | return MsgProcessingError; |
4557 | 0 | } |
4558 | 0 | |
4559 | 0 | reply__ = PBrowser::Reply_DispatchFocusToTopLevelWindow(id__); |
4560 | 0 |
|
4561 | 0 |
|
4562 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4563 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
4564 | 0 | } |
4565 | 0 | return MsgProcessed; |
4566 | 0 | } |
4567 | 0 | case PBrowser::Msg_SyncMessage__ID: |
4568 | 0 | { |
4569 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4570 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4571 | 0 | } |
4572 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SyncMessage", OTHER); |
4573 | 0 |
|
4574 | 0 | PickleIterator iter__(msg__); |
4575 | 0 | nsString aMessage; |
4576 | 0 | ClonedMessageData aData; |
4577 | 0 | nsTArray<CpowEntry> aCpows; |
4578 | 0 | Principal aPrincipal; |
4579 | 0 |
|
4580 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMessage)))))) { |
4581 | 0 | FatalError("Error deserializing 'nsString'"); |
4582 | 0 | return MsgValueError; |
4583 | 0 | } |
4584 | 0 | // Sentinel = 'aMessage' |
4585 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) { |
4586 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
4587 | 0 | return MsgValueError; |
4588 | 0 | } |
4589 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aData)))))) { |
4590 | 0 | FatalError("Error deserializing 'ClonedMessageData'"); |
4591 | 0 | return MsgValueError; |
4592 | 0 | } |
4593 | 0 | // Sentinel = 'aData' |
4594 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) { |
4595 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'"); |
4596 | 0 | return MsgValueError; |
4597 | 0 | } |
4598 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCpows)))))) { |
4599 | 0 | FatalError("Error deserializing 'nsTArray'"); |
4600 | 0 | return MsgValueError; |
4601 | 0 | } |
4602 | 0 | // Sentinel = 'aCpows' |
4603 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) { |
4604 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
4605 | 0 | return MsgValueError; |
4606 | 0 | } |
4607 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipal)))))) { |
4608 | 0 | FatalError("Error deserializing 'Principal'"); |
4609 | 0 | return MsgValueError; |
4610 | 0 | } |
4611 | 0 | // Sentinel = 'aPrincipal' |
4612 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) { |
4613 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
4614 | 0 | return MsgValueError; |
4615 | 0 | } |
4616 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4617 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4618 | 0 | FatalError("Transition error"); |
4619 | 0 | return MsgValueError; |
4620 | 0 | } |
4621 | 0 | int32_t id__ = Id(); |
4622 | 0 | nsTArray<StructuredCloneData> retval; |
4623 | 0 | if ((!(RecvSyncMessage(aMessage, aData, std::move(aCpows), aPrincipal, (&(retval)))))) { |
4624 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4625 | 0 | // Error handled in mozilla::ipc::IPCResult |
4626 | 0 | return MsgProcessingError; |
4627 | 0 | } |
4628 | 0 | |
4629 | 0 | reply__ = PBrowser::Reply_SyncMessage(id__); |
4630 | 0 |
|
4631 | 0 | WriteIPDLParam(reply__, this, retval); |
4632 | 0 | // Sentinel = 'retval' |
4633 | 0 | (reply__)->WriteSentinel(3130628604); |
4634 | 0 |
|
4635 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4636 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
4637 | 0 | } |
4638 | 0 | return MsgProcessed; |
4639 | 0 | } |
4640 | 0 | case PBrowser::Msg_RpcMessage__ID: |
4641 | 0 | { |
4642 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4643 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4644 | 0 | } |
4645 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RpcMessage", OTHER); |
4646 | 0 |
|
4647 | 0 | PickleIterator iter__(msg__); |
4648 | 0 | nsString aMessage; |
4649 | 0 | ClonedMessageData aData; |
4650 | 0 | nsTArray<CpowEntry> aCpows; |
4651 | 0 | Principal aPrincipal; |
4652 | 0 |
|
4653 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMessage)))))) { |
4654 | 0 | FatalError("Error deserializing 'nsString'"); |
4655 | 0 | return MsgValueError; |
4656 | 0 | } |
4657 | 0 | // Sentinel = 'aMessage' |
4658 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) { |
4659 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
4660 | 0 | return MsgValueError; |
4661 | 0 | } |
4662 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aData)))))) { |
4663 | 0 | FatalError("Error deserializing 'ClonedMessageData'"); |
4664 | 0 | return MsgValueError; |
4665 | 0 | } |
4666 | 0 | // Sentinel = 'aData' |
4667 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) { |
4668 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'"); |
4669 | 0 | return MsgValueError; |
4670 | 0 | } |
4671 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCpows)))))) { |
4672 | 0 | FatalError("Error deserializing 'nsTArray'"); |
4673 | 0 | return MsgValueError; |
4674 | 0 | } |
4675 | 0 | // Sentinel = 'aCpows' |
4676 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) { |
4677 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
4678 | 0 | return MsgValueError; |
4679 | 0 | } |
4680 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipal)))))) { |
4681 | 0 | FatalError("Error deserializing 'Principal'"); |
4682 | 0 | return MsgValueError; |
4683 | 0 | } |
4684 | 0 | // Sentinel = 'aPrincipal' |
4685 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) { |
4686 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
4687 | 0 | return MsgValueError; |
4688 | 0 | } |
4689 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4690 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4691 | 0 | FatalError("Transition error"); |
4692 | 0 | return MsgValueError; |
4693 | 0 | } |
4694 | 0 | int32_t id__ = Id(); |
4695 | 0 | nsTArray<StructuredCloneData> retval; |
4696 | 0 | if ((!(RecvRpcMessage(aMessage, aData, std::move(aCpows), aPrincipal, (&(retval)))))) { |
4697 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4698 | 0 | // Error handled in mozilla::ipc::IPCResult |
4699 | 0 | return MsgProcessingError; |
4700 | 0 | } |
4701 | 0 | |
4702 | 0 | reply__ = PBrowser::Reply_RpcMessage(id__); |
4703 | 0 |
|
4704 | 0 | WriteIPDLParam(reply__, this, retval); |
4705 | 0 | // Sentinel = 'retval' |
4706 | 0 | (reply__)->WriteSentinel(3130628604); |
4707 | 0 |
|
4708 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4709 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
4710 | 0 | } |
4711 | 0 | return MsgProcessed; |
4712 | 0 | } |
4713 | 0 | case PBrowser::Msg_NotifyIMEMouseButtonEvent__ID: |
4714 | 0 | { |
4715 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4716 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4717 | 0 | } |
4718 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_NotifyIMEMouseButtonEvent", OTHER); |
4719 | 0 |
|
4720 | 0 | PickleIterator iter__(msg__); |
4721 | 0 | IMENotification notification; |
4722 | 0 |
|
4723 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(notification)))))) { |
4724 | 0 | FatalError("Error deserializing 'IMENotification'"); |
4725 | 0 | return MsgValueError; |
4726 | 0 | } |
4727 | 0 | // Sentinel = 'notification' |
4728 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3678717609)))) { |
4729 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'IMENotification'"); |
4730 | 0 | return MsgValueError; |
4731 | 0 | } |
4732 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4733 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4734 | 0 | FatalError("Transition error"); |
4735 | 0 | return MsgValueError; |
4736 | 0 | } |
4737 | 0 | int32_t id__ = Id(); |
4738 | 0 | bool consumedByIME; |
4739 | 0 | if ((!(RecvNotifyIMEMouseButtonEvent(notification, (&(consumedByIME)))))) { |
4740 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4741 | 0 | // Error handled in mozilla::ipc::IPCResult |
4742 | 0 | return MsgProcessingError; |
4743 | 0 | } |
4744 | 0 | |
4745 | 0 | reply__ = PBrowser::Reply_NotifyIMEMouseButtonEvent(id__); |
4746 | 0 |
|
4747 | 0 | WriteIPDLParam(reply__, this, consumedByIME); |
4748 | 0 | // Sentinel = 'consumedByIME' |
4749 | 0 | (reply__)->WriteSentinel(2514569093); |
4750 | 0 |
|
4751 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4752 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
4753 | 0 | } |
4754 | 0 | return MsgProcessed; |
4755 | 0 | } |
4756 | 0 | case PBrowser::Msg_RequestIMEToCommitComposition__ID: |
4757 | 0 | { |
4758 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4759 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4760 | 0 | } |
4761 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RequestIMEToCommitComposition", OTHER); |
4762 | 0 |
|
4763 | 0 | PickleIterator iter__(msg__); |
4764 | 0 | bool cancel; |
4765 | 0 |
|
4766 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cancel)))))) { |
4767 | 0 | FatalError("Error deserializing 'bool'"); |
4768 | 0 | return MsgValueError; |
4769 | 0 | } |
4770 | 0 | // Sentinel = 'cancel' |
4771 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3175271704)))) { |
4772 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
4773 | 0 | return MsgValueError; |
4774 | 0 | } |
4775 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4776 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4777 | 0 | FatalError("Transition error"); |
4778 | 0 | return MsgValueError; |
4779 | 0 | } |
4780 | 0 | int32_t id__ = Id(); |
4781 | 0 | bool isCommitted; |
4782 | 0 | nsString committedString; |
4783 | 0 | if ((!(RecvRequestIMEToCommitComposition(cancel, (&(isCommitted)), (&(committedString)))))) { |
4784 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4785 | 0 | // Error handled in mozilla::ipc::IPCResult |
4786 | 0 | return MsgProcessingError; |
4787 | 0 | } |
4788 | 0 | |
4789 | 0 | reply__ = PBrowser::Reply_RequestIMEToCommitComposition(id__); |
4790 | 0 |
|
4791 | 0 | WriteIPDLParam(reply__, this, isCommitted); |
4792 | 0 | // Sentinel = 'isCommitted' |
4793 | 0 | (reply__)->WriteSentinel(163282365); |
4794 | 0 | WriteIPDLParam(reply__, this, committedString); |
4795 | 0 | // Sentinel = 'committedString' |
4796 | 0 | (reply__)->WriteSentinel(1803687070); |
4797 | 0 |
|
4798 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4799 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
4800 | 0 | } |
4801 | 0 | return MsgProcessed; |
4802 | 0 | } |
4803 | 0 | case PBrowser::Msg_StartPluginIME__ID: |
4804 | 0 | { |
4805 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4806 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4807 | 0 | } |
4808 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_StartPluginIME", OTHER); |
4809 | 0 |
|
4810 | 0 | PickleIterator iter__(msg__); |
4811 | 0 | WidgetKeyboardEvent aKeyboardEvent; |
4812 | 0 | int32_t panelX; |
4813 | 0 | int32_t panelY; |
4814 | 0 |
|
4815 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aKeyboardEvent)))))) { |
4816 | 0 | FatalError("Error deserializing 'WidgetKeyboardEvent'"); |
4817 | 0 | return MsgValueError; |
4818 | 0 | } |
4819 | 0 | // Sentinel = 'aKeyboardEvent' |
4820 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1132649948)))) { |
4821 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'WidgetKeyboardEvent'"); |
4822 | 0 | return MsgValueError; |
4823 | 0 | } |
4824 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(panelX)))))) { |
4825 | 0 | FatalError("Error deserializing 'int32_t'"); |
4826 | 0 | return MsgValueError; |
4827 | 0 | } |
4828 | 0 | // Sentinel = 'panelX' |
4829 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1642891088)))) { |
4830 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
4831 | 0 | return MsgValueError; |
4832 | 0 | } |
4833 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(panelY)))))) { |
4834 | 0 | FatalError("Error deserializing 'int32_t'"); |
4835 | 0 | return MsgValueError; |
4836 | 0 | } |
4837 | 0 | // Sentinel = 'panelY' |
4838 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1642891089)))) { |
4839 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
4840 | 0 | return MsgValueError; |
4841 | 0 | } |
4842 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4843 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4844 | 0 | FatalError("Transition error"); |
4845 | 0 | return MsgValueError; |
4846 | 0 | } |
4847 | 0 | int32_t id__ = Id(); |
4848 | 0 | nsString aCommitted; |
4849 | 0 | if ((!(RecvStartPluginIME(aKeyboardEvent, panelX, panelY, (&(aCommitted)))))) { |
4850 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4851 | 0 | // Error handled in mozilla::ipc::IPCResult |
4852 | 0 | return MsgProcessingError; |
4853 | 0 | } |
4854 | 0 | |
4855 | 0 | reply__ = PBrowser::Reply_StartPluginIME(id__); |
4856 | 0 |
|
4857 | 0 | WriteIPDLParam(reply__, this, aCommitted); |
4858 | 0 | // Sentinel = 'aCommitted' |
4859 | 0 | (reply__)->WriteSentinel(2171170435); |
4860 | 0 |
|
4861 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4862 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
4863 | 0 | } |
4864 | 0 | return MsgProcessed; |
4865 | 0 | } |
4866 | 0 | case PBrowser::Msg_GetInputContext__ID: |
4867 | 0 | { |
4868 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4869 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4870 | 0 | } |
4871 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_GetInputContext", OTHER); |
4872 | 0 |
|
4873 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4874 | 0 | FatalError("Transition error"); |
4875 | 0 | return MsgValueError; |
4876 | 0 | } |
4877 | 0 | int32_t id__ = Id(); |
4878 | 0 | IMEState state; |
4879 | 0 | if ((!(RecvGetInputContext((&(state)))))) { |
4880 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4881 | 0 | // Error handled in mozilla::ipc::IPCResult |
4882 | 0 | return MsgProcessingError; |
4883 | 0 | } |
4884 | 0 | |
4885 | 0 | reply__ = PBrowser::Reply_GetInputContext(id__); |
4886 | 0 |
|
4887 | 0 | WriteIPDLParam(reply__, this, state); |
4888 | 0 | // Sentinel = 'state' |
4889 | 0 | (reply__)->WriteSentinel(2094644402); |
4890 | 0 |
|
4891 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4892 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
4893 | 0 | } |
4894 | 0 | return MsgProcessed; |
4895 | 0 | } |
4896 | 0 | case PBrowser::Msg_RequestNativeKeyBindings__ID: |
4897 | 0 | { |
4898 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4899 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4900 | 0 | } |
4901 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_RequestNativeKeyBindings", OTHER); |
4902 | 0 |
|
4903 | 0 | PickleIterator iter__(msg__); |
4904 | 0 | uint32_t aType; |
4905 | 0 | WidgetKeyboardEvent aEvent; |
4906 | 0 |
|
4907 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aType)))))) { |
4908 | 0 | FatalError("Error deserializing 'uint32_t'"); |
4909 | 0 | return MsgValueError; |
4910 | 0 | } |
4911 | 0 | // Sentinel = 'aType' |
4912 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) { |
4913 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
4914 | 0 | return MsgValueError; |
4915 | 0 | } |
4916 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEvent)))))) { |
4917 | 0 | FatalError("Error deserializing 'WidgetKeyboardEvent'"); |
4918 | 0 | return MsgValueError; |
4919 | 0 | } |
4920 | 0 | // Sentinel = 'aEvent' |
4921 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) { |
4922 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'WidgetKeyboardEvent'"); |
4923 | 0 | return MsgValueError; |
4924 | 0 | } |
4925 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4926 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4927 | 0 | FatalError("Transition error"); |
4928 | 0 | return MsgValueError; |
4929 | 0 | } |
4930 | 0 | int32_t id__ = Id(); |
4931 | 0 | nsTArray<CommandInt> commands; |
4932 | 0 | if ((!(RecvRequestNativeKeyBindings(aType, aEvent, (&(commands)))))) { |
4933 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4934 | 0 | // Error handled in mozilla::ipc::IPCResult |
4935 | 0 | return MsgProcessingError; |
4936 | 0 | } |
4937 | 0 | |
4938 | 0 | reply__ = PBrowser::Reply_RequestNativeKeyBindings(id__); |
4939 | 0 |
|
4940 | 0 | WriteIPDLParam(reply__, this, commands); |
4941 | 0 | // Sentinel = 'commands' |
4942 | 0 | (reply__)->WriteSentinel(766311650); |
4943 | 0 |
|
4944 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4945 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
4946 | 0 | } |
4947 | 0 | return MsgProcessed; |
4948 | 0 | } |
4949 | 0 | case PBrowser::Msg_DispatchWheelEvent__ID: |
4950 | 0 | { |
4951 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4952 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4953 | 0 | } |
4954 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_DispatchWheelEvent", OTHER); |
4955 | 0 |
|
4956 | 0 | PickleIterator iter__(msg__); |
4957 | 0 | WidgetWheelEvent event; |
4958 | 0 |
|
4959 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(event)))))) { |
4960 | 0 | FatalError("Error deserializing 'WidgetWheelEvent'"); |
4961 | 0 | return MsgValueError; |
4962 | 0 | } |
4963 | 0 | // Sentinel = 'event' |
4964 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 82031261)))) { |
4965 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'WidgetWheelEvent'"); |
4966 | 0 | return MsgValueError; |
4967 | 0 | } |
4968 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
4969 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4970 | 0 | FatalError("Transition error"); |
4971 | 0 | return MsgValueError; |
4972 | 0 | } |
4973 | 0 | int32_t id__ = Id(); |
4974 | 0 | if ((!(RecvDispatchWheelEvent(event)))) { |
4975 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
4976 | 0 | // Error handled in mozilla::ipc::IPCResult |
4977 | 0 | return MsgProcessingError; |
4978 | 0 | } |
4979 | 0 | |
4980 | 0 | reply__ = PBrowser::Reply_DispatchWheelEvent(id__); |
4981 | 0 |
|
4982 | 0 |
|
4983 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4984 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
4985 | 0 | } |
4986 | 0 | return MsgProcessed; |
4987 | 0 | } |
4988 | 0 | case PBrowser::Msg_DispatchMouseEvent__ID: |
4989 | 0 | { |
4990 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
4991 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4992 | 0 | } |
4993 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_DispatchMouseEvent", OTHER); |
4994 | 0 |
|
4995 | 0 | PickleIterator iter__(msg__); |
4996 | 0 | WidgetMouseEvent event; |
4997 | 0 |
|
4998 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(event)))))) { |
4999 | 0 | FatalError("Error deserializing 'WidgetMouseEvent'"); |
5000 | 0 | return MsgValueError; |
5001 | 0 | } |
5002 | 0 | // Sentinel = 'event' |
5003 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 82031261)))) { |
5004 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'WidgetMouseEvent'"); |
5005 | 0 | return MsgValueError; |
5006 | 0 | } |
5007 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5008 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5009 | 0 | FatalError("Transition error"); |
5010 | 0 | return MsgValueError; |
5011 | 0 | } |
5012 | 0 | int32_t id__ = Id(); |
5013 | 0 | if ((!(RecvDispatchMouseEvent(event)))) { |
5014 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5015 | 0 | // Error handled in mozilla::ipc::IPCResult |
5016 | 0 | return MsgProcessingError; |
5017 | 0 | } |
5018 | 0 | |
5019 | 0 | reply__ = PBrowser::Reply_DispatchMouseEvent(id__); |
5020 | 0 |
|
5021 | 0 |
|
5022 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5023 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
5024 | 0 | } |
5025 | 0 | return MsgProcessed; |
5026 | 0 | } |
5027 | 0 | case PBrowser::Msg_DispatchKeyboardEvent__ID: |
5028 | 0 | { |
5029 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5030 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5031 | 0 | } |
5032 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_DispatchKeyboardEvent", OTHER); |
5033 | 0 |
|
5034 | 0 | PickleIterator iter__(msg__); |
5035 | 0 | WidgetKeyboardEvent event; |
5036 | 0 |
|
5037 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(event)))))) { |
5038 | 0 | FatalError("Error deserializing 'WidgetKeyboardEvent'"); |
5039 | 0 | return MsgValueError; |
5040 | 0 | } |
5041 | 0 | // Sentinel = 'event' |
5042 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 82031261)))) { |
5043 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'WidgetKeyboardEvent'"); |
5044 | 0 | return MsgValueError; |
5045 | 0 | } |
5046 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5047 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5048 | 0 | FatalError("Transition error"); |
5049 | 0 | return MsgValueError; |
5050 | 0 | } |
5051 | 0 | int32_t id__ = Id(); |
5052 | 0 | if ((!(RecvDispatchKeyboardEvent(event)))) { |
5053 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5054 | 0 | // Error handled in mozilla::ipc::IPCResult |
5055 | 0 | return MsgProcessingError; |
5056 | 0 | } |
5057 | 0 | |
5058 | 0 | reply__ = PBrowser::Reply_DispatchKeyboardEvent(id__); |
5059 | 0 |
|
5060 | 0 |
|
5061 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5062 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
5063 | 0 | } |
5064 | 0 | return MsgProcessed; |
5065 | 0 | } |
5066 | 0 | case PBrowser::Msg_EnsureLayersConnected__ID: |
5067 | 0 | { |
5068 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5069 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5070 | 0 | } |
5071 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_EnsureLayersConnected", OTHER); |
5072 | 0 |
|
5073 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5074 | 0 | FatalError("Transition error"); |
5075 | 0 | return MsgValueError; |
5076 | 0 | } |
5077 | 0 | int32_t id__ = Id(); |
5078 | 0 | CompositorOptions compositorOptions; |
5079 | 0 | if ((!(RecvEnsureLayersConnected((&(compositorOptions)))))) { |
5080 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5081 | 0 | // Error handled in mozilla::ipc::IPCResult |
5082 | 0 | return MsgProcessingError; |
5083 | 0 | } |
5084 | 0 | |
5085 | 0 | reply__ = PBrowser::Reply_EnsureLayersConnected(id__); |
5086 | 0 |
|
5087 | 0 | WriteIPDLParam(reply__, this, compositorOptions); |
5088 | 0 | // Sentinel = 'compositorOptions' |
5089 | 0 | (reply__)->WriteSentinel(1905928698); |
5090 | 0 |
|
5091 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5092 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
5093 | 0 | } |
5094 | 0 | return MsgProcessed; |
5095 | 0 | } |
5096 | 0 | case PBrowser::Msg_SetSystemFont__ID: |
5097 | 0 | { |
5098 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5099 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5100 | 0 | } |
5101 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetSystemFont", OTHER); |
5102 | 0 |
|
5103 | 0 | PickleIterator iter__(msg__); |
5104 | 0 | nsCString aFontName; |
5105 | 0 |
|
5106 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFontName)))))) { |
5107 | 0 | FatalError("Error deserializing 'nsCString'"); |
5108 | 0 | return MsgValueError; |
5109 | 0 | } |
5110 | 0 | // Sentinel = 'aFontName' |
5111 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2270839266)))) { |
5112 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
5113 | 0 | return MsgValueError; |
5114 | 0 | } |
5115 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5116 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5117 | 0 | FatalError("Transition error"); |
5118 | 0 | return MsgValueError; |
5119 | 0 | } |
5120 | 0 | int32_t id__ = Id(); |
5121 | 0 | if ((!(RecvSetSystemFont(aFontName)))) { |
5122 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5123 | 0 | // Error handled in mozilla::ipc::IPCResult |
5124 | 0 | return MsgProcessingError; |
5125 | 0 | } |
5126 | 0 | |
5127 | 0 | reply__ = PBrowser::Reply_SetSystemFont(id__); |
5128 | 0 |
|
5129 | 0 |
|
5130 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5131 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
5132 | 0 | } |
5133 | 0 | return MsgProcessed; |
5134 | 0 | } |
5135 | 0 | case PBrowser::Msg_GetSystemFont__ID: |
5136 | 0 | { |
5137 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5138 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5139 | 0 | } |
5140 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_GetSystemFont", OTHER); |
5141 | 0 |
|
5142 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5143 | 0 | FatalError("Transition error"); |
5144 | 0 | return MsgValueError; |
5145 | 0 | } |
5146 | 0 | int32_t id__ = Id(); |
5147 | 0 | nsCString retval; |
5148 | 0 | if ((!(RecvGetSystemFont((&(retval)))))) { |
5149 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5150 | 0 | // Error handled in mozilla::ipc::IPCResult |
5151 | 0 | return MsgProcessingError; |
5152 | 0 | } |
5153 | 0 | |
5154 | 0 | reply__ = PBrowser::Reply_GetSystemFont(id__); |
5155 | 0 |
|
5156 | 0 | WriteIPDLParam(reply__, this, retval); |
5157 | 0 | // Sentinel = 'retval' |
5158 | 0 | (reply__)->WriteSentinel(3130628604); |
5159 | 0 |
|
5160 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5161 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
5162 | 0 | } |
5163 | 0 | return MsgProcessed; |
5164 | 0 | } |
5165 | 0 | case PBrowser::Msg_SetPrefersReducedMotionOverrideForTest__ID: |
5166 | 0 | { |
5167 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5168 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5169 | 0 | } |
5170 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_SetPrefersReducedMotionOverrideForTest", OTHER); |
5171 | 0 |
|
5172 | 0 | PickleIterator iter__(msg__); |
5173 | 0 | bool aValue; |
5174 | 0 |
|
5175 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aValue)))))) { |
5176 | 0 | FatalError("Error deserializing 'bool'"); |
5177 | 0 | return MsgValueError; |
5178 | 0 | } |
5179 | 0 | // Sentinel = 'aValue' |
5180 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2522186438)))) { |
5181 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
5182 | 0 | return MsgValueError; |
5183 | 0 | } |
5184 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5185 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5186 | 0 | FatalError("Transition error"); |
5187 | 0 | return MsgValueError; |
5188 | 0 | } |
5189 | 0 | int32_t id__ = Id(); |
5190 | 0 | if ((!(RecvSetPrefersReducedMotionOverrideForTest(aValue)))) { |
5191 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5192 | 0 | // Error handled in mozilla::ipc::IPCResult |
5193 | 0 | return MsgProcessingError; |
5194 | 0 | } |
5195 | 0 | |
5196 | 0 | reply__ = PBrowser::Reply_SetPrefersReducedMotionOverrideForTest(id__); |
5197 | 0 |
|
5198 | 0 |
|
5199 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5200 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
5201 | 0 | } |
5202 | 0 | return MsgProcessed; |
5203 | 0 | } |
5204 | 0 | case PBrowser::Msg_ResetPrefersReducedMotionOverrideForTest__ID: |
5205 | 0 | { |
5206 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5207 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5208 | 0 | } |
5209 | 0 | AUTO_PROFILER_LABEL("PBrowser::Msg_ResetPrefersReducedMotionOverrideForTest", OTHER); |
5210 | 0 |
|
5211 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5212 | 0 | FatalError("Transition error"); |
5213 | 0 | return MsgValueError; |
5214 | 0 | } |
5215 | 0 | int32_t id__ = Id(); |
5216 | 0 | if ((!(RecvResetPrefersReducedMotionOverrideForTest()))) { |
5217 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5218 | 0 | // Error handled in mozilla::ipc::IPCResult |
5219 | 0 | return MsgProcessingError; |
5220 | 0 | } |
5221 | 0 | |
5222 | 0 | reply__ = PBrowser::Reply_ResetPrefersReducedMotionOverrideForTest(id__); |
5223 | 0 |
|
5224 | 0 |
|
5225 | 0 | if (mozilla::ipc::LoggingEnabledFor("PBrowserParent")) { |
5226 | 0 | mozilla::ipc::LogMessageForProtocol("PBrowserParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
5227 | 0 | } |
5228 | 0 | return MsgProcessed; |
5229 | 0 | } |
5230 | 0 | default: |
5231 | 0 | { |
5232 | 0 | return MsgNotKnown; |
5233 | 0 | } |
5234 | 0 | } |
5235 | 0 | } |
5236 | | |
5237 | | auto PBrowserParent::OnCallReceived( |
5238 | | const Message& msg__, |
5239 | | Message*& reply__) -> PBrowserParent::Result |
5240 | 0 | { |
5241 | 0 | MOZ_ASSERT_UNREACHABLE("message protocol not supported"); |
5242 | 0 | return MsgNotKnown; |
5243 | 0 | } |
5244 | | |
5245 | | auto PBrowserParent::GetProtocolTypeId() -> int32_t |
5246 | 0 | { |
5247 | 0 | return PBrowserMsgStart; |
5248 | 0 | } |
5249 | | |
5250 | | auto PBrowserParent::DestroySubtree(ActorDestroyReason why) -> void |
5251 | 0 | { |
5252 | 0 | // Unregister from our manager. |
5253 | 0 | Unregister(Id()); |
5254 | 0 |
|
5255 | 0 | ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why); |
5256 | 0 |
|
5257 | 0 | { |
5258 | 0 | // Recursively shutting down PColorPicker kids |
5259 | 0 | nsTArray<PColorPickerParent*> kids; |
5260 | 0 | // Accumulate kids into a stable structure to iterate over |
5261 | 0 | ManagedPColorPickerParent(kids); |
5262 | 0 | for (auto& kid : kids) { |
5263 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
5264 | 0 | if ((mManagedPColorPickerParent).Contains(kid)) { |
5265 | 0 | (kid)->DestroySubtree(subtreewhy); |
5266 | 0 | } |
5267 | 0 | } |
5268 | 0 | } |
5269 | 0 | { |
5270 | 0 | // Recursively shutting down PDocAccessible kids |
5271 | 0 | nsTArray<PDocAccessibleParent*> kids; |
5272 | 0 | // Accumulate kids into a stable structure to iterate over |
5273 | 0 | ManagedPDocAccessibleParent(kids); |
5274 | 0 | for (auto& kid : kids) { |
5275 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
5276 | 0 | if ((mManagedPDocAccessibleParent).Contains(kid)) { |
5277 | 0 | (kid)->DestroySubtree(subtreewhy); |
5278 | 0 | } |
5279 | 0 | } |
5280 | 0 | } |
5281 | 0 | { |
5282 | 0 | // Recursively shutting down PFilePicker kids |
5283 | 0 | nsTArray<PFilePickerParent*> kids; |
5284 | 0 | // Accumulate kids into a stable structure to iterate over |
5285 | 0 | ManagedPFilePickerParent(kids); |
5286 | 0 | for (auto& kid : kids) { |
5287 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
5288 | 0 | if ((mManagedPFilePickerParent).Contains(kid)) { |
5289 | 0 | (kid)->DestroySubtree(subtreewhy); |
5290 | 0 | } |
5291 | 0 | } |
5292 | 0 | } |
5293 | 0 | { |
5294 | 0 | // Recursively shutting down PIndexedDBPermissionRequest kids |
5295 | 0 | nsTArray<PIndexedDBPermissionRequestParent*> kids; |
5296 | 0 | // Accumulate kids into a stable structure to iterate over |
5297 | 0 | ManagedPIndexedDBPermissionRequestParent(kids); |
5298 | 0 | for (auto& kid : kids) { |
5299 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
5300 | 0 | if ((mManagedPIndexedDBPermissionRequestParent).Contains(kid)) { |
5301 | 0 | (kid)->DestroySubtree(subtreewhy); |
5302 | 0 | } |
5303 | 0 | } |
5304 | 0 | } |
5305 | 0 | { |
5306 | 0 | // Recursively shutting down PRenderFrame kids |
5307 | 0 | nsTArray<PRenderFrameParent*> kids; |
5308 | 0 | // Accumulate kids into a stable structure to iterate over |
5309 | 0 | ManagedPRenderFrameParent(kids); |
5310 | 0 | for (auto& kid : kids) { |
5311 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
5312 | 0 | if ((mManagedPRenderFrameParent).Contains(kid)) { |
5313 | 0 | (kid)->DestroySubtree(subtreewhy); |
5314 | 0 | } |
5315 | 0 | } |
5316 | 0 | } |
5317 | 0 | { |
5318 | 0 | // Recursively shutting down PPluginWidget kids |
5319 | 0 | nsTArray<PPluginWidgetParent*> kids; |
5320 | 0 | // Accumulate kids into a stable structure to iterate over |
5321 | 0 | ManagedPPluginWidgetParent(kids); |
5322 | 0 | for (auto& kid : kids) { |
5323 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
5324 | 0 | if ((mManagedPPluginWidgetParent).Contains(kid)) { |
5325 | 0 | (kid)->DestroySubtree(subtreewhy); |
5326 | 0 | } |
5327 | 0 | } |
5328 | 0 | } |
5329 | 0 | { |
5330 | 0 | // Recursively shutting down PPaymentRequest kids |
5331 | 0 | nsTArray<PPaymentRequestParent*> kids; |
5332 | 0 | // Accumulate kids into a stable structure to iterate over |
5333 | 0 | ManagedPPaymentRequestParent(kids); |
5334 | 0 | for (auto& kid : kids) { |
5335 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
5336 | 0 | if ((mManagedPPaymentRequestParent).Contains(kid)) { |
5337 | 0 | (kid)->DestroySubtree(subtreewhy); |
5338 | 0 | } |
5339 | 0 | } |
5340 | 0 | } |
5341 | 0 |
|
5342 | 0 | // Reject owning pending responses. |
5343 | 0 | (GetIPCChannel())->RejectPendingResponsesForActor(this); |
5344 | 0 |
|
5345 | 0 | // Finally, destroy "us". |
5346 | 0 | ActorDestroy(why); |
5347 | 0 | } |
5348 | | |
5349 | | auto PBrowserParent::DeallocSubtree() -> void |
5350 | 0 | { |
5351 | 0 | { |
5352 | 0 | // Recursively deleting PColorPicker kids |
5353 | 0 | for (auto iter = (mManagedPColorPickerParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5354 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
5355 | 0 | } |
5356 | 0 |
|
5357 | 0 | for (auto iter = (mManagedPColorPickerParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5358 | 0 | DeallocPColorPickerParent(((iter).Get())->GetKey()); |
5359 | 0 | } |
5360 | 0 | (mManagedPColorPickerParent).Clear(); |
5361 | 0 | } |
5362 | 0 | { |
5363 | 0 | // Recursively deleting PDocAccessible kids |
5364 | 0 | for (auto iter = (mManagedPDocAccessibleParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5365 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
5366 | 0 | } |
5367 | 0 |
|
5368 | 0 | for (auto iter = (mManagedPDocAccessibleParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5369 | 0 | DeallocPDocAccessibleParent(((iter).Get())->GetKey()); |
5370 | 0 | } |
5371 | 0 | (mManagedPDocAccessibleParent).Clear(); |
5372 | 0 | } |
5373 | 0 | { |
5374 | 0 | // Recursively deleting PFilePicker kids |
5375 | 0 | for (auto iter = (mManagedPFilePickerParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5376 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
5377 | 0 | } |
5378 | 0 |
|
5379 | 0 | for (auto iter = (mManagedPFilePickerParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5380 | 0 | DeallocPFilePickerParent(((iter).Get())->GetKey()); |
5381 | 0 | } |
5382 | 0 | (mManagedPFilePickerParent).Clear(); |
5383 | 0 | } |
5384 | 0 | { |
5385 | 0 | // Recursively deleting PIndexedDBPermissionRequest kids |
5386 | 0 | for (auto iter = (mManagedPIndexedDBPermissionRequestParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5387 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
5388 | 0 | } |
5389 | 0 |
|
5390 | 0 | for (auto iter = (mManagedPIndexedDBPermissionRequestParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5391 | 0 | DeallocPIndexedDBPermissionRequestParent(((iter).Get())->GetKey()); |
5392 | 0 | } |
5393 | 0 | (mManagedPIndexedDBPermissionRequestParent).Clear(); |
5394 | 0 | } |
5395 | 0 | { |
5396 | 0 | // Recursively deleting PRenderFrame kids |
5397 | 0 | for (auto iter = (mManagedPRenderFrameParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5398 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
5399 | 0 | } |
5400 | 0 |
|
5401 | 0 | for (auto iter = (mManagedPRenderFrameParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5402 | 0 | DeallocPRenderFrameParent(((iter).Get())->GetKey()); |
5403 | 0 | } |
5404 | 0 | (mManagedPRenderFrameParent).Clear(); |
5405 | 0 | } |
5406 | 0 | { |
5407 | 0 | // Recursively deleting PPluginWidget kids |
5408 | 0 | for (auto iter = (mManagedPPluginWidgetParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5409 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
5410 | 0 | } |
5411 | 0 |
|
5412 | 0 | for (auto iter = (mManagedPPluginWidgetParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5413 | 0 | DeallocPPluginWidgetParent(((iter).Get())->GetKey()); |
5414 | 0 | } |
5415 | 0 | (mManagedPPluginWidgetParent).Clear(); |
5416 | 0 | } |
5417 | 0 | { |
5418 | 0 | // Recursively deleting PPaymentRequest kids |
5419 | 0 | for (auto iter = (mManagedPPaymentRequestParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5420 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
5421 | 0 | } |
5422 | 0 |
|
5423 | 0 | for (auto iter = (mManagedPPaymentRequestParent).Iter(); (!((iter).Done())); (iter).Next()) { |
5424 | 0 | DeallocPPaymentRequestParent(((iter).Get())->GetKey()); |
5425 | 0 | } |
5426 | 0 | (mManagedPPaymentRequestParent).Clear(); |
5427 | 0 | } |
5428 | 0 | } |
5429 | | |
5430 | | |
5431 | | |
5432 | | } // namespace dom |
5433 | | } // namespace mozilla |
5434 | | namespace mozilla { |
5435 | | namespace ipc { |
5436 | | auto IPDLParamTraits<mozilla::dom::PBrowserParent>::Write( |
5437 | | IPC::Message* aMsg, |
5438 | | mozilla::ipc::IProtocol* aActor, |
5439 | | const paramType& aVar) -> void |
5440 | 0 | { |
5441 | 0 | int32_t id; |
5442 | 0 | if ((!(aVar))) { |
5443 | 0 | id = 0; |
5444 | 0 | } |
5445 | 0 | else { |
5446 | 0 | id = (aVar)->Id(); |
5447 | 0 | if ((1) == (id)) { |
5448 | 0 | (aActor)->FatalError("actor has been |delete|d"); |
5449 | 0 | } |
5450 | 0 | } |
5451 | 0 | WriteIPDLParam(aMsg, aActor, id); |
5452 | 0 | } |
5453 | | |
5454 | | auto IPDLParamTraits<mozilla::dom::PBrowserParent>::Read( |
5455 | | const IPC::Message* aMsg, |
5456 | | PickleIterator* aIter, |
5457 | | mozilla::ipc::IProtocol* aActor, |
5458 | | paramType* aVar) -> bool |
5459 | 0 | { |
5460 | 0 | mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PBrowser", PBrowserMsgStart); |
5461 | 0 | if ((actor).isNothing()) { |
5462 | 0 | return false; |
5463 | 0 | } |
5464 | 0 | |
5465 | 0 | (*(aVar)) = static_cast<mozilla::dom::PBrowserParent*>((actor).value()); |
5466 | 0 | return true; |
5467 | 0 | } |
5468 | | |
5469 | | } // namespace ipc |
5470 | | } // namespace mozilla |