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