Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/embedding/PPrintingChild.h"
8 :
9 : #include "mozilla/dom/PContentChild.h"
10 : #include "mozilla/dom/PBrowserChild.h"
11 : #include "mozilla/embedding/PPrintProgressDialogChild.h"
12 : #include "mozilla/embedding/PPrintSettingsDialogChild.h"
13 : #include "mozilla/layout/PRemotePrintJobChild.h"
14 :
15 : #include "nsIFile.h"
16 : #include "GeckoProfiler.h"
17 :
18 : namespace mozilla {
19 : namespace embedding {
20 :
21 :
22 0 : auto PPrintingChild::RecvPRemotePrintJobConstructor(PRemotePrintJobChild* actor) -> mozilla::ipc::IPCResult
23 : {
24 0 : return IPC_OK();
25 : }
26 :
27 0 : auto PPrintingChild::Recv__delete__() -> mozilla::ipc::IPCResult
28 : {
29 0 : return IPC_OK();
30 : }
31 :
32 0 : auto PPrintingChild::ActorDestroy(ActorDestroyReason aWhy) -> void
33 : {
34 0 : }
35 :
36 2 : MOZ_IMPLICIT PPrintingChild::PPrintingChild() :
37 : mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
38 2 : mState(PPrinting::__Dead)
39 : {
40 2 : MOZ_COUNT_CTOR(PPrintingChild);
41 2 : }
42 :
43 0 : PPrintingChild::~PPrintingChild()
44 : {
45 0 : MOZ_COUNT_DTOR(PPrintingChild);
46 0 : }
47 :
48 0 : auto PPrintingChild::Manager() const -> PContentChild*
49 : {
50 0 : return static_cast<PContentChild*>(IProtocol::Manager());
51 : }
52 :
53 0 : auto PPrintingChild::ManagedPPrintProgressDialogChild(nsTArray<PPrintProgressDialogChild*>& aArr) const -> void
54 : {
55 0 : (mManagedPPrintProgressDialogChild).ToArray(aArr);
56 0 : }
57 :
58 0 : auto PPrintingChild::ManagedPPrintProgressDialogChild() const -> const ManagedContainer<PPrintProgressDialogChild>&
59 : {
60 0 : return mManagedPPrintProgressDialogChild;
61 : }
62 :
63 0 : auto PPrintingChild::ManagedPPrintSettingsDialogChild(nsTArray<PPrintSettingsDialogChild*>& aArr) const -> void
64 : {
65 0 : (mManagedPPrintSettingsDialogChild).ToArray(aArr);
66 0 : }
67 :
68 0 : auto PPrintingChild::ManagedPPrintSettingsDialogChild() const -> const ManagedContainer<PPrintSettingsDialogChild>&
69 : {
70 0 : return mManagedPPrintSettingsDialogChild;
71 : }
72 :
73 0 : auto PPrintingChild::ManagedPRemotePrintJobChild(nsTArray<PRemotePrintJobChild*>& aArr) const -> void
74 : {
75 0 : (mManagedPRemotePrintJobChild).ToArray(aArr);
76 0 : }
77 :
78 0 : auto PPrintingChild::ManagedPRemotePrintJobChild() const -> const ManagedContainer<PRemotePrintJobChild>&
79 : {
80 0 : return mManagedPRemotePrintJobChild;
81 : }
82 :
83 0 : auto PPrintingChild::SendShowProgress(
84 : PBrowserChild* browser,
85 : PPrintProgressDialogChild* printProgressDialog,
86 : PRemotePrintJobChild* remotePrintJob,
87 : const bool& isForPrinting) -> bool
88 : {
89 0 : IPC::Message* msg__ = PPrinting::Msg_ShowProgress(Id());
90 :
91 0 : Write(browser, msg__, false);
92 : // Sentinel = 'browser'
93 0 : (msg__)->WriteSentinel(2836343679);
94 0 : Write(printProgressDialog, msg__, false);
95 : // Sentinel = 'printProgressDialog'
96 0 : (msg__)->WriteSentinel(1704049755);
97 0 : Write(remotePrintJob, msg__, true);
98 : // Sentinel = 'remotePrintJob'
99 0 : (msg__)->WriteSentinel(2408336150);
100 0 : Write(isForPrinting, msg__);
101 : // Sentinel = 'isForPrinting'
102 0 : (msg__)->WriteSentinel(2165625195);
103 :
104 :
105 :
106 :
107 0 : if (mozilla::ipc::LoggingEnabledFor("PPrintingChild")) {
108 0 : mozilla::ipc::LogMessageForProtocol("PPrintingChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
109 : }
110 0 : AUTO_PROFILER_LABEL("PPrinting::Msg_ShowProgress", OTHER);
111 0 : PPrinting::Transition(PPrinting::Msg_ShowProgress__ID, (&(mState)));
112 :
113 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
114 0 : return sendok__;
115 : }
116 :
117 0 : auto PPrintingChild::SendShowPrintDialog(
118 : PPrintSettingsDialogChild* dialog,
119 : PBrowserChild* browser,
120 : const PrintData& settings) -> bool
121 : {
122 0 : IPC::Message* msg__ = PPrinting::Msg_ShowPrintDialog(Id());
123 :
124 0 : Write(dialog, msg__, false);
125 : // Sentinel = 'dialog'
126 0 : (msg__)->WriteSentinel(4200953590);
127 0 : Write(browser, msg__, true);
128 : // Sentinel = 'browser'
129 0 : (msg__)->WriteSentinel(2836343679);
130 0 : Write(settings, msg__);
131 : // Sentinel = 'settings'
132 0 : (msg__)->WriteSentinel(2402913383);
133 :
134 :
135 :
136 :
137 0 : if (mozilla::ipc::LoggingEnabledFor("PPrintingChild")) {
138 0 : mozilla::ipc::LogMessageForProtocol("PPrintingChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
139 : }
140 0 : AUTO_PROFILER_LABEL("PPrinting::Msg_ShowPrintDialog", OTHER);
141 0 : PPrinting::Transition(PPrinting::Msg_ShowPrintDialog__ID, (&(mState)));
142 :
143 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
144 0 : return sendok__;
145 : }
146 :
147 0 : auto PPrintingChild::SendPPrintProgressDialogConstructor() -> PPrintProgressDialogChild*
148 : {
149 0 : return SendPPrintProgressDialogConstructor(AllocPPrintProgressDialogChild());
150 : }
151 :
152 0 : auto PPrintingChild::SendPPrintProgressDialogConstructor(PPrintProgressDialogChild* actor) -> PPrintProgressDialogChild*
153 : {
154 0 : if ((!(actor))) {
155 0 : NS_WARNING("Error constructing actor PPrintProgressDialogChild");
156 0 : return nullptr;
157 : }
158 0 : (actor)->SetManager(this);
159 0 : Register(actor);
160 0 : (actor)->SetIPCChannel(GetIPCChannel());
161 0 : (mManagedPPrintProgressDialogChild).PutEntry(actor);
162 0 : (actor)->mState = mozilla::embedding::PPrintProgressDialog::__Start;
163 :
164 0 : IPC::Message* msg__ = PPrinting::Msg_PPrintProgressDialogConstructor(Id());
165 :
166 0 : Write(actor, msg__, false);
167 : // Sentinel = 'actor'
168 0 : (msg__)->WriteSentinel(875202478);
169 :
170 0 : (msg__)->set_constructor();
171 :
172 :
173 0 : if (mozilla::ipc::LoggingEnabledFor("PPrintingChild")) {
174 0 : mozilla::ipc::LogMessageForProtocol("PPrintingChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
175 : }
176 0 : AUTO_PROFILER_LABEL("PPrinting::Msg_PPrintProgressDialogConstructor", OTHER);
177 0 : PPrinting::Transition(PPrinting::Msg_PPrintProgressDialogConstructor__ID, (&(mState)));
178 :
179 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
180 0 : if ((!(sendok__))) {
181 0 : FatalError("constructor for actor failed");
182 0 : return nullptr;
183 : }
184 0 : return actor;
185 : }
186 :
187 0 : auto PPrintingChild::SendPPrintSettingsDialogConstructor() -> PPrintSettingsDialogChild*
188 : {
189 0 : return SendPPrintSettingsDialogConstructor(AllocPPrintSettingsDialogChild());
190 : }
191 :
192 0 : auto PPrintingChild::SendPPrintSettingsDialogConstructor(PPrintSettingsDialogChild* actor) -> PPrintSettingsDialogChild*
193 : {
194 0 : if ((!(actor))) {
195 0 : NS_WARNING("Error constructing actor PPrintSettingsDialogChild");
196 0 : return nullptr;
197 : }
198 0 : (actor)->SetManager(this);
199 0 : Register(actor);
200 0 : (actor)->SetIPCChannel(GetIPCChannel());
201 0 : (mManagedPPrintSettingsDialogChild).PutEntry(actor);
202 0 : (actor)->mState = mozilla::embedding::PPrintSettingsDialog::__Start;
203 :
204 0 : IPC::Message* msg__ = PPrinting::Msg_PPrintSettingsDialogConstructor(Id());
205 :
206 0 : Write(actor, msg__, false);
207 : // Sentinel = 'actor'
208 0 : (msg__)->WriteSentinel(875202478);
209 :
210 0 : (msg__)->set_constructor();
211 :
212 :
213 0 : if (mozilla::ipc::LoggingEnabledFor("PPrintingChild")) {
214 0 : mozilla::ipc::LogMessageForProtocol("PPrintingChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
215 : }
216 0 : AUTO_PROFILER_LABEL("PPrinting::Msg_PPrintSettingsDialogConstructor", OTHER);
217 0 : PPrinting::Transition(PPrinting::Msg_PPrintSettingsDialogConstructor__ID, (&(mState)));
218 :
219 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
220 0 : if ((!(sendok__))) {
221 0 : FatalError("constructor for actor failed");
222 0 : return nullptr;
223 : }
224 0 : return actor;
225 : }
226 :
227 0 : auto PPrintingChild::SendSavePrintSettings(
228 : const PrintData& settings,
229 : const bool& usePrinterNamePrefix,
230 : const uint32_t& flags,
231 : nsresult* rv) -> bool
232 : {
233 0 : IPC::Message* msg__ = PPrinting::Msg_SavePrintSettings(Id());
234 :
235 0 : Write(settings, msg__);
236 : // Sentinel = 'settings'
237 0 : (msg__)->WriteSentinel(2402913383);
238 0 : Write(usePrinterNamePrefix, msg__);
239 : // Sentinel = 'usePrinterNamePrefix'
240 0 : (msg__)->WriteSentinel(1614756826);
241 0 : Write(flags, msg__);
242 : // Sentinel = 'flags'
243 0 : (msg__)->WriteSentinel(2550519284);
244 :
245 0 : (msg__)->set_sync();
246 :
247 :
248 0 : Message reply__;
249 :
250 0 : if (mozilla::ipc::LoggingEnabledFor("PPrintingChild")) {
251 0 : mozilla::ipc::LogMessageForProtocol("PPrintingChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
252 : }
253 0 : AUTO_PROFILER_LABEL("PPrinting::Msg_SavePrintSettings", OTHER);
254 0 : PPrinting::Transition(PPrinting::Msg_SavePrintSettings__ID, (&(mState)));
255 :
256 : bool sendok__;
257 : {
258 : AutoProfilerTracing syncIPCTracer(
259 : "IPC",
260 0 : "PPrinting::Msg_SavePrintSettings");
261 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
262 : }
263 0 : if ((!(sendok__))) {
264 0 : return false;
265 : }
266 :
267 0 : if (mozilla::ipc::LoggingEnabledFor("PPrintingChild")) {
268 0 : mozilla::ipc::LogMessageForProtocol("PPrintingChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
269 : }
270 :
271 0 : PickleIterator iter__(reply__);
272 :
273 0 : if ((!(Read(rv, (&(reply__)), (&(iter__)))))) {
274 0 : FatalError("Error deserializing 'nsresult'");
275 0 : return false;
276 : }
277 : // Sentinel = 'rv'
278 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481058)))) {
279 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
280 0 : return false;
281 : }
282 0 : (reply__).EndRead(iter__, (reply__).type());
283 :
284 0 : return true;
285 : }
286 :
287 0 : auto PPrintingChild::RemoveManagee(
288 : int32_t aProtocolId,
289 : ProtocolBase* aListener) -> void
290 : {
291 0 : switch (aProtocolId) {
292 : case PPrintProgressDialogMsgStart:
293 : {
294 0 : PPrintProgressDialogChild* actor = static_cast<PPrintProgressDialogChild*>(aListener);
295 0 : auto& container = mManagedPPrintProgressDialogChild;
296 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
297 :
298 0 : (container).RemoveEntry(actor);
299 0 : DeallocPPrintProgressDialogChild(actor);
300 0 : return;
301 : }
302 : case PPrintSettingsDialogMsgStart:
303 : {
304 0 : PPrintSettingsDialogChild* actor = static_cast<PPrintSettingsDialogChild*>(aListener);
305 0 : auto& container = mManagedPPrintSettingsDialogChild;
306 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
307 :
308 0 : (container).RemoveEntry(actor);
309 0 : DeallocPPrintSettingsDialogChild(actor);
310 0 : return;
311 : }
312 : case PRemotePrintJobMsgStart:
313 : {
314 0 : PRemotePrintJobChild* actor = static_cast<PRemotePrintJobChild*>(aListener);
315 0 : auto& container = mManagedPRemotePrintJobChild;
316 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
317 :
318 0 : (container).RemoveEntry(actor);
319 0 : DeallocPRemotePrintJobChild(actor);
320 0 : return;
321 : }
322 : default:
323 : {
324 0 : FatalError("unreached");
325 0 : return;
326 : }
327 : }
328 : }
329 :
330 0 : auto PPrintingChild::OnMessageReceived(const Message& msg__) -> PPrintingChild::Result
331 : {
332 0 : switch ((msg__).type()) {
333 : case PPrinting::Reply_PPrintProgressDialogConstructor__ID:
334 : {
335 0 : return MsgProcessed;
336 : }
337 : case PPrinting::Reply_PPrintSettingsDialogConstructor__ID:
338 : {
339 0 : return MsgProcessed;
340 : }
341 : case PPrinting::Msg_PRemotePrintJobConstructor__ID:
342 : {
343 0 : if (mozilla::ipc::LoggingEnabledFor("PPrintingChild")) {
344 0 : mozilla::ipc::LogMessageForProtocol("PPrintingChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
345 : }
346 0 : AUTO_PROFILER_LABEL("PPrinting::Msg_PRemotePrintJobConstructor", OTHER);
347 :
348 0 : PickleIterator iter__(msg__);
349 : ActorHandle handle__;
350 : PRemotePrintJobChild* actor;
351 :
352 0 : if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
353 0 : FatalError("Error deserializing 'ActorHandle'");
354 0 : return MsgValueError;
355 : }
356 : // Sentinel = 'actor'
357 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
358 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
359 0 : return MsgValueError;
360 : }
361 0 : (msg__).EndRead(iter__, (msg__).type());
362 0 : PPrinting::Transition(PPrinting::Msg_PRemotePrintJobConstructor__ID, (&(mState)));
363 0 : actor = AllocPRemotePrintJobChild();
364 0 : if ((!(actor))) {
365 0 : NS_WARNING("Error constructing actor PRemotePrintJobChild");
366 0 : return MsgValueError;
367 : }
368 0 : (actor)->SetManager(this);
369 0 : RegisterID(actor, (handle__).mId);
370 0 : (actor)->SetIPCChannel(GetIPCChannel());
371 0 : (mManagedPRemotePrintJobChild).PutEntry(actor);
372 0 : (actor)->mState = mozilla::layout::PRemotePrintJob::__Start;
373 :
374 0 : if ((!(RecvPRemotePrintJobConstructor(mozilla::Move(actor))))) {
375 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
376 : // Error handled in mozilla::ipc::IPCResult
377 0 : return MsgProcessingError;
378 : }
379 :
380 0 : return MsgProcessed;
381 : }
382 : case PPrinting::Msg___delete____ID:
383 : {
384 0 : if (mozilla::ipc::LoggingEnabledFor("PPrintingChild")) {
385 0 : mozilla::ipc::LogMessageForProtocol("PPrintingChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
386 : }
387 0 : AUTO_PROFILER_LABEL("PPrinting::Msg___delete__", OTHER);
388 :
389 0 : PickleIterator iter__(msg__);
390 : PPrintingChild* actor;
391 :
392 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
393 0 : FatalError("Error deserializing 'PPrintingChild'");
394 0 : return MsgValueError;
395 : }
396 : // Sentinel = 'actor'
397 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
398 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PPrintingChild'");
399 0 : return MsgValueError;
400 : }
401 0 : (msg__).EndRead(iter__, (msg__).type());
402 0 : PPrinting::Transition(PPrinting::Msg___delete____ID, (&(mState)));
403 0 : if ((!(Recv__delete__()))) {
404 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
405 : // Error handled in mozilla::ipc::IPCResult
406 0 : return MsgProcessingError;
407 : }
408 :
409 :
410 0 : IProtocol* mgr = (actor)->Manager();
411 0 : (actor)->DestroySubtree(Deletion);
412 0 : (actor)->DeallocSubtree();
413 0 : (mgr)->RemoveManagee(PPrintingMsgStart, actor);
414 :
415 0 : return MsgProcessed;
416 : }
417 : default:
418 : {
419 0 : return MsgNotKnown;
420 : }
421 : }
422 : }
423 :
424 0 : auto PPrintingChild::OnMessageReceived(
425 : const Message& msg__,
426 : Message*& reply__) -> PPrintingChild::Result
427 : {
428 0 : return MsgNotKnown;
429 : }
430 :
431 0 : auto PPrintingChild::OnCallReceived(
432 : const Message& msg__,
433 : Message*& reply__) -> PPrintingChild::Result
434 : {
435 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
436 : return MsgNotKnown;
437 : }
438 :
439 0 : auto PPrintingChild::GetProtocolTypeId() -> int32_t
440 : {
441 0 : return PPrintingMsgStart;
442 : }
443 :
444 0 : auto PPrintingChild::ProtocolName() const -> const char*
445 : {
446 0 : return "PPrintingChild";
447 : }
448 :
449 0 : auto PPrintingChild::DestroySubtree(ActorDestroyReason why) -> void
450 : {
451 : // Unregister from our manager.
452 0 : Unregister(Id());
453 :
454 0 : ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
455 :
456 : {
457 : // Recursively shutting down PPrintProgressDialog kids
458 0 : nsTArray<PPrintProgressDialogChild*> kids;
459 : // Accumulate kids into a stable structure to iterate over
460 0 : ManagedPPrintProgressDialogChild(kids);
461 0 : for (auto& kid : kids) {
462 : // Guarding against a child removing a sibling from the list during the iteration.
463 0 : if ((mManagedPPrintProgressDialogChild).Contains(kid)) {
464 0 : (kid)->DestroySubtree(subtreewhy);
465 : }
466 : }
467 : }
468 : {
469 : // Recursively shutting down PPrintSettingsDialog kids
470 0 : nsTArray<PPrintSettingsDialogChild*> kids;
471 : // Accumulate kids into a stable structure to iterate over
472 0 : ManagedPPrintSettingsDialogChild(kids);
473 0 : for (auto& kid : kids) {
474 : // Guarding against a child removing a sibling from the list during the iteration.
475 0 : if ((mManagedPPrintSettingsDialogChild).Contains(kid)) {
476 0 : (kid)->DestroySubtree(subtreewhy);
477 : }
478 : }
479 : }
480 : {
481 : // Recursively shutting down PRemotePrintJob kids
482 0 : nsTArray<PRemotePrintJobChild*> kids;
483 : // Accumulate kids into a stable structure to iterate over
484 0 : ManagedPRemotePrintJobChild(kids);
485 0 : for (auto& kid : kids) {
486 : // Guarding against a child removing a sibling from the list during the iteration.
487 0 : if ((mManagedPRemotePrintJobChild).Contains(kid)) {
488 0 : (kid)->DestroySubtree(subtreewhy);
489 : }
490 : }
491 : }
492 :
493 : // Reject owning pending promises.
494 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
495 :
496 : // Finally, destroy "us".
497 0 : ActorDestroy(why);
498 0 : }
499 :
500 0 : auto PPrintingChild::DeallocSubtree() -> void
501 : {
502 : {
503 : // Recursively deleting PPrintProgressDialog kids
504 0 : for (auto iter = (mManagedPPrintProgressDialogChild).Iter(); (!((iter).Done())); (iter).Next()) {
505 0 : (((iter).Get())->GetKey())->DeallocSubtree();
506 : }
507 :
508 0 : for (auto iter = (mManagedPPrintProgressDialogChild).Iter(); (!((iter).Done())); (iter).Next()) {
509 0 : DeallocPPrintProgressDialogChild(((iter).Get())->GetKey());
510 : }
511 0 : (mManagedPPrintProgressDialogChild).Clear();
512 : }
513 : {
514 : // Recursively deleting PPrintSettingsDialog kids
515 0 : for (auto iter = (mManagedPPrintSettingsDialogChild).Iter(); (!((iter).Done())); (iter).Next()) {
516 0 : (((iter).Get())->GetKey())->DeallocSubtree();
517 : }
518 :
519 0 : for (auto iter = (mManagedPPrintSettingsDialogChild).Iter(); (!((iter).Done())); (iter).Next()) {
520 0 : DeallocPPrintSettingsDialogChild(((iter).Get())->GetKey());
521 : }
522 0 : (mManagedPPrintSettingsDialogChild).Clear();
523 : }
524 : {
525 : // Recursively deleting PRemotePrintJob kids
526 0 : for (auto iter = (mManagedPRemotePrintJobChild).Iter(); (!((iter).Done())); (iter).Next()) {
527 0 : (((iter).Get())->GetKey())->DeallocSubtree();
528 : }
529 :
530 0 : for (auto iter = (mManagedPRemotePrintJobChild).Iter(); (!((iter).Done())); (iter).Next()) {
531 0 : DeallocPRemotePrintJobChild(((iter).Get())->GetKey());
532 : }
533 0 : (mManagedPRemotePrintJobChild).Clear();
534 : }
535 0 : }
536 :
537 0 : auto PPrintingChild::Write(
538 : const CStringKeyValue& v__,
539 : Message* msg__) -> void
540 : {
541 0 : Write((v__).key(), msg__);
542 : // Sentinel = 'key'
543 0 : (msg__)->WriteSentinel(35142870);
544 0 : Write((v__).value(), msg__);
545 : // Sentinel = 'value'
546 0 : (msg__)->WriteSentinel(3456818542);
547 0 : }
548 :
549 0 : auto PPrintingChild::Read(
550 : CStringKeyValue* v__,
551 : const Message* msg__,
552 : PickleIterator* iter__) -> bool
553 : {
554 0 : if ((!(Read((&((v__)->key())), msg__, iter__)))) {
555 0 : FatalError("Error deserializing 'key' (nsCString) member of 'CStringKeyValue'");
556 0 : return false;
557 : }
558 : // Sentinel = 'key'
559 0 : if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
560 0 : mozilla::ipc::SentinelReadError("Error deserializing 'key' (nsCString) member of 'CStringKeyValue'");
561 0 : return false;
562 : }
563 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
564 0 : FatalError("Error deserializing 'value' (nsCString) member of 'CStringKeyValue'");
565 0 : return false;
566 : }
567 : // Sentinel = 'value'
568 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
569 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'CStringKeyValue'");
570 0 : return false;
571 : }
572 0 : return true;
573 : }
574 :
575 0 : auto PPrintingChild::Write(
576 : const PrintData& v__,
577 : Message* msg__) -> void
578 : {
579 : // skipping actor field that's meaningless on this side
580 0 : Write((v__).remotePrintJobChild(), msg__, true);
581 : // Sentinel = 'remotePrintJob'
582 0 : (msg__)->WriteSentinel(2408336150);
583 0 : Write((v__).startPageRange(), msg__);
584 : // Sentinel = 'startPageRange'
585 0 : (msg__)->WriteSentinel(1740949386);
586 0 : Write((v__).endPageRange(), msg__);
587 : // Sentinel = 'endPageRange'
588 0 : (msg__)->WriteSentinel(953063629);
589 0 : Write((v__).edgeTop(), msg__);
590 : // Sentinel = 'edgeTop'
591 0 : (msg__)->WriteSentinel(2921361411);
592 0 : Write((v__).edgeLeft(), msg__);
593 : // Sentinel = 'edgeLeft'
594 0 : (msg__)->WriteSentinel(2945930184);
595 0 : Write((v__).edgeBottom(), msg__);
596 : // Sentinel = 'edgeBottom'
597 0 : (msg__)->WriteSentinel(1887667460);
598 0 : Write((v__).edgeRight(), msg__);
599 : // Sentinel = 'edgeRight'
600 0 : (msg__)->WriteSentinel(157215326);
601 0 : Write((v__).marginTop(), msg__);
602 : // Sentinel = 'marginTop'
603 0 : (msg__)->WriteSentinel(2523949818);
604 0 : Write((v__).marginLeft(), msg__);
605 : // Sentinel = 'marginLeft'
606 0 : (msg__)->WriteSentinel(628365747);
607 0 : Write((v__).marginBottom(), msg__);
608 : // Sentinel = 'marginBottom'
609 0 : (msg__)->WriteSentinel(585974827);
610 0 : Write((v__).marginRight(), msg__);
611 : // Sentinel = 'marginRight'
612 0 : (msg__)->WriteSentinel(3106079639);
613 0 : Write((v__).unwriteableMarginTop(), msg__);
614 : // Sentinel = 'unwriteableMarginTop'
615 0 : (msg__)->WriteSentinel(4054023201);
616 0 : Write((v__).unwriteableMarginLeft(), msg__);
617 : // Sentinel = 'unwriteableMarginLeft'
618 0 : (msg__)->WriteSentinel(2112040842);
619 0 : Write((v__).unwriteableMarginBottom(), msg__);
620 : // Sentinel = 'unwriteableMarginBottom'
621 0 : (msg__)->WriteSentinel(2888689354);
622 0 : Write((v__).unwriteableMarginRight(), msg__);
623 : // Sentinel = 'unwriteableMarginRight'
624 0 : (msg__)->WriteSentinel(1561009124);
625 0 : Write((v__).scaling(), msg__);
626 : // Sentinel = 'scaling'
627 0 : (msg__)->WriteSentinel(215329360);
628 0 : Write((v__).printBGColors(), msg__);
629 : // Sentinel = 'printBGColors'
630 0 : (msg__)->WriteSentinel(3124494641);
631 0 : Write((v__).printBGImages(), msg__);
632 : // Sentinel = 'printBGImages'
633 0 : (msg__)->WriteSentinel(2911202491);
634 0 : Write((v__).printRange(), msg__);
635 : // Sentinel = 'printRange'
636 0 : (msg__)->WriteSentinel(1358535918);
637 0 : Write((v__).title(), msg__);
638 : // Sentinel = 'title'
639 0 : (msg__)->WriteSentinel(4272139303);
640 0 : Write((v__).docURL(), msg__);
641 : // Sentinel = 'docURL'
642 0 : (msg__)->WriteSentinel(4181982195);
643 0 : Write((v__).headerStrLeft(), msg__);
644 : // Sentinel = 'headerStrLeft'
645 0 : (msg__)->WriteSentinel(1878864390);
646 0 : Write((v__).headerStrCenter(), msg__);
647 : // Sentinel = 'headerStrCenter'
648 0 : (msg__)->WriteSentinel(126520924);
649 0 : Write((v__).headerStrRight(), msg__);
650 : // Sentinel = 'headerStrRight'
651 0 : (msg__)->WriteSentinel(2894716248);
652 0 : Write((v__).footerStrLeft(), msg__);
653 : // Sentinel = 'footerStrLeft'
654 0 : (msg__)->WriteSentinel(3329009408);
655 0 : Write((v__).footerStrCenter(), msg__);
656 : // Sentinel = 'footerStrCenter'
657 0 : (msg__)->WriteSentinel(898252666);
658 0 : Write((v__).footerStrRight(), msg__);
659 : // Sentinel = 'footerStrRight'
660 0 : (msg__)->WriteSentinel(2223010342);
661 0 : Write((v__).howToEnableFrameUI(), msg__);
662 : // Sentinel = 'howToEnableFrameUI'
663 0 : (msg__)->WriteSentinel(2883217655);
664 0 : Write((v__).isCancelled(), msg__);
665 : // Sentinel = 'isCancelled'
666 0 : (msg__)->WriteSentinel(1702075666);
667 0 : Write((v__).printFrameTypeUsage(), msg__);
668 : // Sentinel = 'printFrameTypeUsage'
669 0 : (msg__)->WriteSentinel(3503383418);
670 0 : Write((v__).printFrameType(), msg__);
671 : // Sentinel = 'printFrameType'
672 0 : (msg__)->WriteSentinel(2385437026);
673 0 : Write((v__).printSilent(), msg__);
674 : // Sentinel = 'printSilent'
675 0 : (msg__)->WriteSentinel(664247649);
676 0 : Write((v__).shrinkToFit(), msg__);
677 : // Sentinel = 'shrinkToFit'
678 0 : (msg__)->WriteSentinel(1889342798);
679 0 : Write((v__).showPrintProgress(), msg__);
680 : // Sentinel = 'showPrintProgress'
681 0 : (msg__)->WriteSentinel(4220456964);
682 0 : Write((v__).paperName(), msg__);
683 : // Sentinel = 'paperName'
684 0 : (msg__)->WriteSentinel(2193092426);
685 0 : Write((v__).paperData(), msg__);
686 : // Sentinel = 'paperData'
687 0 : (msg__)->WriteSentinel(4062004975);
688 0 : Write((v__).paperWidth(), msg__);
689 : // Sentinel = 'paperWidth'
690 0 : (msg__)->WriteSentinel(3003064432);
691 0 : Write((v__).paperHeight(), msg__);
692 : // Sentinel = 'paperHeight'
693 0 : (msg__)->WriteSentinel(2702009104);
694 0 : Write((v__).paperSizeUnit(), msg__);
695 : // Sentinel = 'paperSizeUnit'
696 0 : (msg__)->WriteSentinel(1555914182);
697 0 : Write((v__).printReversed(), msg__);
698 : // Sentinel = 'printReversed'
699 0 : (msg__)->WriteSentinel(2750785978);
700 0 : Write((v__).printInColor(), msg__);
701 : // Sentinel = 'printInColor'
702 0 : (msg__)->WriteSentinel(3912554141);
703 0 : Write((v__).orientation(), msg__);
704 : // Sentinel = 'orientation'
705 0 : (msg__)->WriteSentinel(759639429);
706 0 : Write((v__).numCopies(), msg__);
707 : // Sentinel = 'numCopies'
708 0 : (msg__)->WriteSentinel(207039186);
709 0 : Write((v__).printerName(), msg__);
710 : // Sentinel = 'printerName'
711 0 : (msg__)->WriteSentinel(114568230);
712 0 : Write((v__).printToFile(), msg__);
713 : // Sentinel = 'printToFile'
714 0 : (msg__)->WriteSentinel(1740131543);
715 0 : Write((v__).toFileName(), msg__);
716 : // Sentinel = 'toFileName'
717 0 : (msg__)->WriteSentinel(1204763262);
718 0 : Write((v__).outputFormat(), msg__);
719 : // Sentinel = 'outputFormat'
720 0 : (msg__)->WriteSentinel(1831305826);
721 0 : Write((v__).printPageDelay(), msg__);
722 : // Sentinel = 'printPageDelay'
723 0 : (msg__)->WriteSentinel(3763987991);
724 0 : Write((v__).resolution(), msg__);
725 : // Sentinel = 'resolution'
726 0 : (msg__)->WriteSentinel(4077768700);
727 0 : Write((v__).duplex(), msg__);
728 : // Sentinel = 'duplex'
729 0 : (msg__)->WriteSentinel(411036200);
730 0 : Write((v__).isInitializedFromPrinter(), msg__);
731 : // Sentinel = 'isInitializedFromPrinter'
732 0 : (msg__)->WriteSentinel(934901298);
733 0 : Write((v__).isInitializedFromPrefs(), msg__);
734 : // Sentinel = 'isInitializedFromPrefs'
735 0 : (msg__)->WriteSentinel(1549019882);
736 0 : Write((v__).optionFlags(), msg__);
737 : // Sentinel = 'optionFlags'
738 0 : (msg__)->WriteSentinel(977126139);
739 0 : Write((v__).driverName(), msg__);
740 : // Sentinel = 'driverName'
741 0 : (msg__)->WriteSentinel(4069408885);
742 0 : Write((v__).deviceName(), msg__);
743 : // Sentinel = 'deviceName'
744 0 : (msg__)->WriteSentinel(1005543041);
745 0 : Write((v__).printableWidthInInches(), msg__);
746 : // Sentinel = 'printableWidthInInches'
747 0 : (msg__)->WriteSentinel(3490618936);
748 0 : Write((v__).printableHeightInInches(), msg__);
749 : // Sentinel = 'printableHeightInInches'
750 0 : (msg__)->WriteSentinel(2512821318);
751 0 : Write((v__).isFramesetDocument(), msg__);
752 : // Sentinel = 'isFramesetDocument'
753 0 : (msg__)->WriteSentinel(2749193424);
754 0 : Write((v__).isFramesetFrameSelected(), msg__);
755 : // Sentinel = 'isFramesetFrameSelected'
756 0 : (msg__)->WriteSentinel(3597767852);
757 0 : Write((v__).isIFrameSelected(), msg__);
758 : // Sentinel = 'isIFrameSelected'
759 0 : (msg__)->WriteSentinel(43475451);
760 0 : Write((v__).isRangeSelection(), msg__);
761 : // Sentinel = 'isRangeSelection'
762 0 : (msg__)->WriteSentinel(1332533775);
763 0 : Write((v__).devModeData(), msg__);
764 : // Sentinel = 'devModeData'
765 0 : (msg__)->WriteSentinel(115925043);
766 0 : Write((v__).GTKPrintSettings(), msg__);
767 : // Sentinel = 'GTKPrintSettings'
768 0 : (msg__)->WriteSentinel(3468906358);
769 0 : Write((v__).printJobName(), msg__);
770 : // Sentinel = 'printJobName'
771 0 : (msg__)->WriteSentinel(2875659923);
772 0 : Write((v__).printAllPages(), msg__);
773 : // Sentinel = 'printAllPages'
774 0 : (msg__)->WriteSentinel(1278004999);
775 0 : Write((v__).mustCollate(), msg__);
776 : // Sentinel = 'mustCollate'
777 0 : (msg__)->WriteSentinel(1240412784);
778 0 : Write((v__).disposition(), msg__);
779 : // Sentinel = 'disposition'
780 0 : (msg__)->WriteSentinel(143184598);
781 0 : Write((v__).pagesAcross(), msg__);
782 : // Sentinel = 'pagesAcross'
783 0 : (msg__)->WriteSentinel(2231447816);
784 0 : Write((v__).pagesDown(), msg__);
785 : // Sentinel = 'pagesDown'
786 0 : (msg__)->WriteSentinel(2238219045);
787 0 : Write((v__).printTime(), msg__);
788 : // Sentinel = 'printTime'
789 0 : (msg__)->WriteSentinel(1825405227);
790 0 : Write((v__).detailedErrorReporting(), msg__);
791 : // Sentinel = 'detailedErrorReporting'
792 0 : (msg__)->WriteSentinel(2470597122);
793 0 : Write((v__).faxNumber(), msg__);
794 : // Sentinel = 'faxNumber'
795 0 : (msg__)->WriteSentinel(286348047);
796 0 : Write((v__).addHeaderAndFooter(), msg__);
797 : // Sentinel = 'addHeaderAndFooter'
798 0 : (msg__)->WriteSentinel(936511658);
799 0 : Write((v__).fileNameExtensionHidden(), msg__);
800 : // Sentinel = 'fileNameExtensionHidden'
801 0 : (msg__)->WriteSentinel(3429991713);
802 0 : Write((v__).scalingFactor(), msg__);
803 : // Sentinel = 'scalingFactor'
804 0 : (msg__)->WriteSentinel(759930239);
805 0 : Write((v__).widthScale(), msg__);
806 : // Sentinel = 'widthScale'
807 0 : (msg__)->WriteSentinel(692534408);
808 0 : Write((v__).heightScale(), msg__);
809 : // Sentinel = 'heightScale'
810 0 : (msg__)->WriteSentinel(1007139770);
811 0 : Write((v__).adjustedPaperWidth(), msg__);
812 : // Sentinel = 'adjustedPaperWidth'
813 0 : (msg__)->WriteSentinel(2163992630);
814 0 : Write((v__).adjustedPaperHeight(), msg__);
815 : // Sentinel = 'adjustedPaperHeight'
816 0 : (msg__)->WriteSentinel(3110257834);
817 0 : }
818 :
819 0 : auto PPrintingChild::Read(
820 : PrintData* v__,
821 : const Message* msg__,
822 : PickleIterator* iter__) -> bool
823 : {
824 : // skipping actor field that's meaningless on this side
825 0 : if ((!(Read((&((v__)->remotePrintJobChild())), msg__, iter__, true)))) {
826 0 : FatalError("Error deserializing 'remotePrintJobChild' (PRemotePrintJob) member of 'PrintData'");
827 0 : return false;
828 : }
829 : // Sentinel = 'remotePrintJob'
830 0 : if ((!((msg__)->ReadSentinel(iter__, 2408336150)))) {
831 0 : mozilla::ipc::SentinelReadError("Error deserializing 'remotePrintJobChild' (PRemotePrintJob) member of 'PrintData'");
832 0 : return false;
833 : }
834 0 : if ((!(Read((&((v__)->startPageRange())), msg__, iter__)))) {
835 0 : FatalError("Error deserializing 'startPageRange' (int32_t) member of 'PrintData'");
836 0 : return false;
837 : }
838 : // Sentinel = 'startPageRange'
839 0 : if ((!((msg__)->ReadSentinel(iter__, 1740949386)))) {
840 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPageRange' (int32_t) member of 'PrintData'");
841 0 : return false;
842 : }
843 0 : if ((!(Read((&((v__)->endPageRange())), msg__, iter__)))) {
844 0 : FatalError("Error deserializing 'endPageRange' (int32_t) member of 'PrintData'");
845 0 : return false;
846 : }
847 : // Sentinel = 'endPageRange'
848 0 : if ((!((msg__)->ReadSentinel(iter__, 953063629)))) {
849 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPageRange' (int32_t) member of 'PrintData'");
850 0 : return false;
851 : }
852 0 : if ((!(Read((&((v__)->edgeTop())), msg__, iter__)))) {
853 0 : FatalError("Error deserializing 'edgeTop' (double) member of 'PrintData'");
854 0 : return false;
855 : }
856 : // Sentinel = 'edgeTop'
857 0 : if ((!((msg__)->ReadSentinel(iter__, 2921361411)))) {
858 0 : mozilla::ipc::SentinelReadError("Error deserializing 'edgeTop' (double) member of 'PrintData'");
859 0 : return false;
860 : }
861 0 : if ((!(Read((&((v__)->edgeLeft())), msg__, iter__)))) {
862 0 : FatalError("Error deserializing 'edgeLeft' (double) member of 'PrintData'");
863 0 : return false;
864 : }
865 : // Sentinel = 'edgeLeft'
866 0 : if ((!((msg__)->ReadSentinel(iter__, 2945930184)))) {
867 0 : mozilla::ipc::SentinelReadError("Error deserializing 'edgeLeft' (double) member of 'PrintData'");
868 0 : return false;
869 : }
870 0 : if ((!(Read((&((v__)->edgeBottom())), msg__, iter__)))) {
871 0 : FatalError("Error deserializing 'edgeBottom' (double) member of 'PrintData'");
872 0 : return false;
873 : }
874 : // Sentinel = 'edgeBottom'
875 0 : if ((!((msg__)->ReadSentinel(iter__, 1887667460)))) {
876 0 : mozilla::ipc::SentinelReadError("Error deserializing 'edgeBottom' (double) member of 'PrintData'");
877 0 : return false;
878 : }
879 0 : if ((!(Read((&((v__)->edgeRight())), msg__, iter__)))) {
880 0 : FatalError("Error deserializing 'edgeRight' (double) member of 'PrintData'");
881 0 : return false;
882 : }
883 : // Sentinel = 'edgeRight'
884 0 : if ((!((msg__)->ReadSentinel(iter__, 157215326)))) {
885 0 : mozilla::ipc::SentinelReadError("Error deserializing 'edgeRight' (double) member of 'PrintData'");
886 0 : return false;
887 : }
888 0 : if ((!(Read((&((v__)->marginTop())), msg__, iter__)))) {
889 0 : FatalError("Error deserializing 'marginTop' (double) member of 'PrintData'");
890 0 : return false;
891 : }
892 : // Sentinel = 'marginTop'
893 0 : if ((!((msg__)->ReadSentinel(iter__, 2523949818)))) {
894 0 : mozilla::ipc::SentinelReadError("Error deserializing 'marginTop' (double) member of 'PrintData'");
895 0 : return false;
896 : }
897 0 : if ((!(Read((&((v__)->marginLeft())), msg__, iter__)))) {
898 0 : FatalError("Error deserializing 'marginLeft' (double) member of 'PrintData'");
899 0 : return false;
900 : }
901 : // Sentinel = 'marginLeft'
902 0 : if ((!((msg__)->ReadSentinel(iter__, 628365747)))) {
903 0 : mozilla::ipc::SentinelReadError("Error deserializing 'marginLeft' (double) member of 'PrintData'");
904 0 : return false;
905 : }
906 0 : if ((!(Read((&((v__)->marginBottom())), msg__, iter__)))) {
907 0 : FatalError("Error deserializing 'marginBottom' (double) member of 'PrintData'");
908 0 : return false;
909 : }
910 : // Sentinel = 'marginBottom'
911 0 : if ((!((msg__)->ReadSentinel(iter__, 585974827)))) {
912 0 : mozilla::ipc::SentinelReadError("Error deserializing 'marginBottom' (double) member of 'PrintData'");
913 0 : return false;
914 : }
915 0 : if ((!(Read((&((v__)->marginRight())), msg__, iter__)))) {
916 0 : FatalError("Error deserializing 'marginRight' (double) member of 'PrintData'");
917 0 : return false;
918 : }
919 : // Sentinel = 'marginRight'
920 0 : if ((!((msg__)->ReadSentinel(iter__, 3106079639)))) {
921 0 : mozilla::ipc::SentinelReadError("Error deserializing 'marginRight' (double) member of 'PrintData'");
922 0 : return false;
923 : }
924 0 : if ((!(Read((&((v__)->unwriteableMarginTop())), msg__, iter__)))) {
925 0 : FatalError("Error deserializing 'unwriteableMarginTop' (double) member of 'PrintData'");
926 0 : return false;
927 : }
928 : // Sentinel = 'unwriteableMarginTop'
929 0 : if ((!((msg__)->ReadSentinel(iter__, 4054023201)))) {
930 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginTop' (double) member of 'PrintData'");
931 0 : return false;
932 : }
933 0 : if ((!(Read((&((v__)->unwriteableMarginLeft())), msg__, iter__)))) {
934 0 : FatalError("Error deserializing 'unwriteableMarginLeft' (double) member of 'PrintData'");
935 0 : return false;
936 : }
937 : // Sentinel = 'unwriteableMarginLeft'
938 0 : if ((!((msg__)->ReadSentinel(iter__, 2112040842)))) {
939 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginLeft' (double) member of 'PrintData'");
940 0 : return false;
941 : }
942 0 : if ((!(Read((&((v__)->unwriteableMarginBottom())), msg__, iter__)))) {
943 0 : FatalError("Error deserializing 'unwriteableMarginBottom' (double) member of 'PrintData'");
944 0 : return false;
945 : }
946 : // Sentinel = 'unwriteableMarginBottom'
947 0 : if ((!((msg__)->ReadSentinel(iter__, 2888689354)))) {
948 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginBottom' (double) member of 'PrintData'");
949 0 : return false;
950 : }
951 0 : if ((!(Read((&((v__)->unwriteableMarginRight())), msg__, iter__)))) {
952 0 : FatalError("Error deserializing 'unwriteableMarginRight' (double) member of 'PrintData'");
953 0 : return false;
954 : }
955 : // Sentinel = 'unwriteableMarginRight'
956 0 : if ((!((msg__)->ReadSentinel(iter__, 1561009124)))) {
957 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginRight' (double) member of 'PrintData'");
958 0 : return false;
959 : }
960 0 : if ((!(Read((&((v__)->scaling())), msg__, iter__)))) {
961 0 : FatalError("Error deserializing 'scaling' (double) member of 'PrintData'");
962 0 : return false;
963 : }
964 : // Sentinel = 'scaling'
965 0 : if ((!((msg__)->ReadSentinel(iter__, 215329360)))) {
966 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scaling' (double) member of 'PrintData'");
967 0 : return false;
968 : }
969 0 : if ((!(Read((&((v__)->printBGColors())), msg__, iter__)))) {
970 0 : FatalError("Error deserializing 'printBGColors' (bool) member of 'PrintData'");
971 0 : return false;
972 : }
973 : // Sentinel = 'printBGColors'
974 0 : if ((!((msg__)->ReadSentinel(iter__, 3124494641)))) {
975 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printBGColors' (bool) member of 'PrintData'");
976 0 : return false;
977 : }
978 0 : if ((!(Read((&((v__)->printBGImages())), msg__, iter__)))) {
979 0 : FatalError("Error deserializing 'printBGImages' (bool) member of 'PrintData'");
980 0 : return false;
981 : }
982 : // Sentinel = 'printBGImages'
983 0 : if ((!((msg__)->ReadSentinel(iter__, 2911202491)))) {
984 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printBGImages' (bool) member of 'PrintData'");
985 0 : return false;
986 : }
987 0 : if ((!(Read((&((v__)->printRange())), msg__, iter__)))) {
988 0 : FatalError("Error deserializing 'printRange' (short) member of 'PrintData'");
989 0 : return false;
990 : }
991 : // Sentinel = 'printRange'
992 0 : if ((!((msg__)->ReadSentinel(iter__, 1358535918)))) {
993 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printRange' (short) member of 'PrintData'");
994 0 : return false;
995 : }
996 0 : if ((!(Read((&((v__)->title())), msg__, iter__)))) {
997 0 : FatalError("Error deserializing 'title' (nsString) member of 'PrintData'");
998 0 : return false;
999 : }
1000 : // Sentinel = 'title'
1001 0 : if ((!((msg__)->ReadSentinel(iter__, 4272139303)))) {
1002 0 : mozilla::ipc::SentinelReadError("Error deserializing 'title' (nsString) member of 'PrintData'");
1003 0 : return false;
1004 : }
1005 0 : if ((!(Read((&((v__)->docURL())), msg__, iter__)))) {
1006 0 : FatalError("Error deserializing 'docURL' (nsString) member of 'PrintData'");
1007 0 : return false;
1008 : }
1009 : // Sentinel = 'docURL'
1010 0 : if ((!((msg__)->ReadSentinel(iter__, 4181982195)))) {
1011 0 : mozilla::ipc::SentinelReadError("Error deserializing 'docURL' (nsString) member of 'PrintData'");
1012 0 : return false;
1013 : }
1014 0 : if ((!(Read((&((v__)->headerStrLeft())), msg__, iter__)))) {
1015 0 : FatalError("Error deserializing 'headerStrLeft' (nsString) member of 'PrintData'");
1016 0 : return false;
1017 : }
1018 : // Sentinel = 'headerStrLeft'
1019 0 : if ((!((msg__)->ReadSentinel(iter__, 1878864390)))) {
1020 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headerStrLeft' (nsString) member of 'PrintData'");
1021 0 : return false;
1022 : }
1023 0 : if ((!(Read((&((v__)->headerStrCenter())), msg__, iter__)))) {
1024 0 : FatalError("Error deserializing 'headerStrCenter' (nsString) member of 'PrintData'");
1025 0 : return false;
1026 : }
1027 : // Sentinel = 'headerStrCenter'
1028 0 : if ((!((msg__)->ReadSentinel(iter__, 126520924)))) {
1029 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headerStrCenter' (nsString) member of 'PrintData'");
1030 0 : return false;
1031 : }
1032 0 : if ((!(Read((&((v__)->headerStrRight())), msg__, iter__)))) {
1033 0 : FatalError("Error deserializing 'headerStrRight' (nsString) member of 'PrintData'");
1034 0 : return false;
1035 : }
1036 : // Sentinel = 'headerStrRight'
1037 0 : if ((!((msg__)->ReadSentinel(iter__, 2894716248)))) {
1038 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headerStrRight' (nsString) member of 'PrintData'");
1039 0 : return false;
1040 : }
1041 0 : if ((!(Read((&((v__)->footerStrLeft())), msg__, iter__)))) {
1042 0 : FatalError("Error deserializing 'footerStrLeft' (nsString) member of 'PrintData'");
1043 0 : return false;
1044 : }
1045 : // Sentinel = 'footerStrLeft'
1046 0 : if ((!((msg__)->ReadSentinel(iter__, 3329009408)))) {
1047 0 : mozilla::ipc::SentinelReadError("Error deserializing 'footerStrLeft' (nsString) member of 'PrintData'");
1048 0 : return false;
1049 : }
1050 0 : if ((!(Read((&((v__)->footerStrCenter())), msg__, iter__)))) {
1051 0 : FatalError("Error deserializing 'footerStrCenter' (nsString) member of 'PrintData'");
1052 0 : return false;
1053 : }
1054 : // Sentinel = 'footerStrCenter'
1055 0 : if ((!((msg__)->ReadSentinel(iter__, 898252666)))) {
1056 0 : mozilla::ipc::SentinelReadError("Error deserializing 'footerStrCenter' (nsString) member of 'PrintData'");
1057 0 : return false;
1058 : }
1059 0 : if ((!(Read((&((v__)->footerStrRight())), msg__, iter__)))) {
1060 0 : FatalError("Error deserializing 'footerStrRight' (nsString) member of 'PrintData'");
1061 0 : return false;
1062 : }
1063 : // Sentinel = 'footerStrRight'
1064 0 : if ((!((msg__)->ReadSentinel(iter__, 2223010342)))) {
1065 0 : mozilla::ipc::SentinelReadError("Error deserializing 'footerStrRight' (nsString) member of 'PrintData'");
1066 0 : return false;
1067 : }
1068 0 : if ((!(Read((&((v__)->howToEnableFrameUI())), msg__, iter__)))) {
1069 0 : FatalError("Error deserializing 'howToEnableFrameUI' (short) member of 'PrintData'");
1070 0 : return false;
1071 : }
1072 : // Sentinel = 'howToEnableFrameUI'
1073 0 : if ((!((msg__)->ReadSentinel(iter__, 2883217655)))) {
1074 0 : mozilla::ipc::SentinelReadError("Error deserializing 'howToEnableFrameUI' (short) member of 'PrintData'");
1075 0 : return false;
1076 : }
1077 0 : if ((!(Read((&((v__)->isCancelled())), msg__, iter__)))) {
1078 0 : FatalError("Error deserializing 'isCancelled' (bool) member of 'PrintData'");
1079 0 : return false;
1080 : }
1081 : // Sentinel = 'isCancelled'
1082 0 : if ((!((msg__)->ReadSentinel(iter__, 1702075666)))) {
1083 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isCancelled' (bool) member of 'PrintData'");
1084 0 : return false;
1085 : }
1086 0 : if ((!(Read((&((v__)->printFrameTypeUsage())), msg__, iter__)))) {
1087 0 : FatalError("Error deserializing 'printFrameTypeUsage' (short) member of 'PrintData'");
1088 0 : return false;
1089 : }
1090 : // Sentinel = 'printFrameTypeUsage'
1091 0 : if ((!((msg__)->ReadSentinel(iter__, 3503383418)))) {
1092 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printFrameTypeUsage' (short) member of 'PrintData'");
1093 0 : return false;
1094 : }
1095 0 : if ((!(Read((&((v__)->printFrameType())), msg__, iter__)))) {
1096 0 : FatalError("Error deserializing 'printFrameType' (short) member of 'PrintData'");
1097 0 : return false;
1098 : }
1099 : // Sentinel = 'printFrameType'
1100 0 : if ((!((msg__)->ReadSentinel(iter__, 2385437026)))) {
1101 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printFrameType' (short) member of 'PrintData'");
1102 0 : return false;
1103 : }
1104 0 : if ((!(Read((&((v__)->printSilent())), msg__, iter__)))) {
1105 0 : FatalError("Error deserializing 'printSilent' (bool) member of 'PrintData'");
1106 0 : return false;
1107 : }
1108 : // Sentinel = 'printSilent'
1109 0 : if ((!((msg__)->ReadSentinel(iter__, 664247649)))) {
1110 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printSilent' (bool) member of 'PrintData'");
1111 0 : return false;
1112 : }
1113 0 : if ((!(Read((&((v__)->shrinkToFit())), msg__, iter__)))) {
1114 0 : FatalError("Error deserializing 'shrinkToFit' (bool) member of 'PrintData'");
1115 0 : return false;
1116 : }
1117 : // Sentinel = 'shrinkToFit'
1118 0 : if ((!((msg__)->ReadSentinel(iter__, 1889342798)))) {
1119 0 : mozilla::ipc::SentinelReadError("Error deserializing 'shrinkToFit' (bool) member of 'PrintData'");
1120 0 : return false;
1121 : }
1122 0 : if ((!(Read((&((v__)->showPrintProgress())), msg__, iter__)))) {
1123 0 : FatalError("Error deserializing 'showPrintProgress' (bool) member of 'PrintData'");
1124 0 : return false;
1125 : }
1126 : // Sentinel = 'showPrintProgress'
1127 0 : if ((!((msg__)->ReadSentinel(iter__, 4220456964)))) {
1128 0 : mozilla::ipc::SentinelReadError("Error deserializing 'showPrintProgress' (bool) member of 'PrintData'");
1129 0 : return false;
1130 : }
1131 0 : if ((!(Read((&((v__)->paperName())), msg__, iter__)))) {
1132 0 : FatalError("Error deserializing 'paperName' (nsString) member of 'PrintData'");
1133 0 : return false;
1134 : }
1135 : // Sentinel = 'paperName'
1136 0 : if ((!((msg__)->ReadSentinel(iter__, 2193092426)))) {
1137 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paperName' (nsString) member of 'PrintData'");
1138 0 : return false;
1139 : }
1140 0 : if ((!(Read((&((v__)->paperData())), msg__, iter__)))) {
1141 0 : FatalError("Error deserializing 'paperData' (short) member of 'PrintData'");
1142 0 : return false;
1143 : }
1144 : // Sentinel = 'paperData'
1145 0 : if ((!((msg__)->ReadSentinel(iter__, 4062004975)))) {
1146 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paperData' (short) member of 'PrintData'");
1147 0 : return false;
1148 : }
1149 0 : if ((!(Read((&((v__)->paperWidth())), msg__, iter__)))) {
1150 0 : FatalError("Error deserializing 'paperWidth' (double) member of 'PrintData'");
1151 0 : return false;
1152 : }
1153 : // Sentinel = 'paperWidth'
1154 0 : if ((!((msg__)->ReadSentinel(iter__, 3003064432)))) {
1155 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paperWidth' (double) member of 'PrintData'");
1156 0 : return false;
1157 : }
1158 0 : if ((!(Read((&((v__)->paperHeight())), msg__, iter__)))) {
1159 0 : FatalError("Error deserializing 'paperHeight' (double) member of 'PrintData'");
1160 0 : return false;
1161 : }
1162 : // Sentinel = 'paperHeight'
1163 0 : if ((!((msg__)->ReadSentinel(iter__, 2702009104)))) {
1164 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paperHeight' (double) member of 'PrintData'");
1165 0 : return false;
1166 : }
1167 0 : if ((!(Read((&((v__)->paperSizeUnit())), msg__, iter__)))) {
1168 0 : FatalError("Error deserializing 'paperSizeUnit' (short) member of 'PrintData'");
1169 0 : return false;
1170 : }
1171 : // Sentinel = 'paperSizeUnit'
1172 0 : if ((!((msg__)->ReadSentinel(iter__, 1555914182)))) {
1173 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paperSizeUnit' (short) member of 'PrintData'");
1174 0 : return false;
1175 : }
1176 0 : if ((!(Read((&((v__)->printReversed())), msg__, iter__)))) {
1177 0 : FatalError("Error deserializing 'printReversed' (bool) member of 'PrintData'");
1178 0 : return false;
1179 : }
1180 : // Sentinel = 'printReversed'
1181 0 : if ((!((msg__)->ReadSentinel(iter__, 2750785978)))) {
1182 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printReversed' (bool) member of 'PrintData'");
1183 0 : return false;
1184 : }
1185 0 : if ((!(Read((&((v__)->printInColor())), msg__, iter__)))) {
1186 0 : FatalError("Error deserializing 'printInColor' (bool) member of 'PrintData'");
1187 0 : return false;
1188 : }
1189 : // Sentinel = 'printInColor'
1190 0 : if ((!((msg__)->ReadSentinel(iter__, 3912554141)))) {
1191 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printInColor' (bool) member of 'PrintData'");
1192 0 : return false;
1193 : }
1194 0 : if ((!(Read((&((v__)->orientation())), msg__, iter__)))) {
1195 0 : FatalError("Error deserializing 'orientation' (int32_t) member of 'PrintData'");
1196 0 : return false;
1197 : }
1198 : // Sentinel = 'orientation'
1199 0 : if ((!((msg__)->ReadSentinel(iter__, 759639429)))) {
1200 0 : mozilla::ipc::SentinelReadError("Error deserializing 'orientation' (int32_t) member of 'PrintData'");
1201 0 : return false;
1202 : }
1203 0 : if ((!(Read((&((v__)->numCopies())), msg__, iter__)))) {
1204 0 : FatalError("Error deserializing 'numCopies' (int32_t) member of 'PrintData'");
1205 0 : return false;
1206 : }
1207 : // Sentinel = 'numCopies'
1208 0 : if ((!((msg__)->ReadSentinel(iter__, 207039186)))) {
1209 0 : mozilla::ipc::SentinelReadError("Error deserializing 'numCopies' (int32_t) member of 'PrintData'");
1210 0 : return false;
1211 : }
1212 0 : if ((!(Read((&((v__)->printerName())), msg__, iter__)))) {
1213 0 : FatalError("Error deserializing 'printerName' (nsString) member of 'PrintData'");
1214 0 : return false;
1215 : }
1216 : // Sentinel = 'printerName'
1217 0 : if ((!((msg__)->ReadSentinel(iter__, 114568230)))) {
1218 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printerName' (nsString) member of 'PrintData'");
1219 0 : return false;
1220 : }
1221 0 : if ((!(Read((&((v__)->printToFile())), msg__, iter__)))) {
1222 0 : FatalError("Error deserializing 'printToFile' (bool) member of 'PrintData'");
1223 0 : return false;
1224 : }
1225 : // Sentinel = 'printToFile'
1226 0 : if ((!((msg__)->ReadSentinel(iter__, 1740131543)))) {
1227 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printToFile' (bool) member of 'PrintData'");
1228 0 : return false;
1229 : }
1230 0 : if ((!(Read((&((v__)->toFileName())), msg__, iter__)))) {
1231 0 : FatalError("Error deserializing 'toFileName' (nsString) member of 'PrintData'");
1232 0 : return false;
1233 : }
1234 : // Sentinel = 'toFileName'
1235 0 : if ((!((msg__)->ReadSentinel(iter__, 1204763262)))) {
1236 0 : mozilla::ipc::SentinelReadError("Error deserializing 'toFileName' (nsString) member of 'PrintData'");
1237 0 : return false;
1238 : }
1239 0 : if ((!(Read((&((v__)->outputFormat())), msg__, iter__)))) {
1240 0 : FatalError("Error deserializing 'outputFormat' (short) member of 'PrintData'");
1241 0 : return false;
1242 : }
1243 : // Sentinel = 'outputFormat'
1244 0 : if ((!((msg__)->ReadSentinel(iter__, 1831305826)))) {
1245 0 : mozilla::ipc::SentinelReadError("Error deserializing 'outputFormat' (short) member of 'PrintData'");
1246 0 : return false;
1247 : }
1248 0 : if ((!(Read((&((v__)->printPageDelay())), msg__, iter__)))) {
1249 0 : FatalError("Error deserializing 'printPageDelay' (int32_t) member of 'PrintData'");
1250 0 : return false;
1251 : }
1252 : // Sentinel = 'printPageDelay'
1253 0 : if ((!((msg__)->ReadSentinel(iter__, 3763987991)))) {
1254 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printPageDelay' (int32_t) member of 'PrintData'");
1255 0 : return false;
1256 : }
1257 0 : if ((!(Read((&((v__)->resolution())), msg__, iter__)))) {
1258 0 : FatalError("Error deserializing 'resolution' (int32_t) member of 'PrintData'");
1259 0 : return false;
1260 : }
1261 : // Sentinel = 'resolution'
1262 0 : if ((!((msg__)->ReadSentinel(iter__, 4077768700)))) {
1263 0 : mozilla::ipc::SentinelReadError("Error deserializing 'resolution' (int32_t) member of 'PrintData'");
1264 0 : return false;
1265 : }
1266 0 : if ((!(Read((&((v__)->duplex())), msg__, iter__)))) {
1267 0 : FatalError("Error deserializing 'duplex' (int32_t) member of 'PrintData'");
1268 0 : return false;
1269 : }
1270 : // Sentinel = 'duplex'
1271 0 : if ((!((msg__)->ReadSentinel(iter__, 411036200)))) {
1272 0 : mozilla::ipc::SentinelReadError("Error deserializing 'duplex' (int32_t) member of 'PrintData'");
1273 0 : return false;
1274 : }
1275 0 : if ((!(Read((&((v__)->isInitializedFromPrinter())), msg__, iter__)))) {
1276 0 : FatalError("Error deserializing 'isInitializedFromPrinter' (bool) member of 'PrintData'");
1277 0 : return false;
1278 : }
1279 : // Sentinel = 'isInitializedFromPrinter'
1280 0 : if ((!((msg__)->ReadSentinel(iter__, 934901298)))) {
1281 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isInitializedFromPrinter' (bool) member of 'PrintData'");
1282 0 : return false;
1283 : }
1284 0 : if ((!(Read((&((v__)->isInitializedFromPrefs())), msg__, iter__)))) {
1285 0 : FatalError("Error deserializing 'isInitializedFromPrefs' (bool) member of 'PrintData'");
1286 0 : return false;
1287 : }
1288 : // Sentinel = 'isInitializedFromPrefs'
1289 0 : if ((!((msg__)->ReadSentinel(iter__, 1549019882)))) {
1290 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isInitializedFromPrefs' (bool) member of 'PrintData'");
1291 0 : return false;
1292 : }
1293 0 : if ((!(Read((&((v__)->optionFlags())), msg__, iter__)))) {
1294 0 : FatalError("Error deserializing 'optionFlags' (int32_t) member of 'PrintData'");
1295 0 : return false;
1296 : }
1297 : // Sentinel = 'optionFlags'
1298 0 : if ((!((msg__)->ReadSentinel(iter__, 977126139)))) {
1299 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionFlags' (int32_t) member of 'PrintData'");
1300 0 : return false;
1301 : }
1302 0 : if ((!(Read((&((v__)->driverName())), msg__, iter__)))) {
1303 0 : FatalError("Error deserializing 'driverName' (nsString) member of 'PrintData'");
1304 0 : return false;
1305 : }
1306 : // Sentinel = 'driverName'
1307 0 : if ((!((msg__)->ReadSentinel(iter__, 4069408885)))) {
1308 0 : mozilla::ipc::SentinelReadError("Error deserializing 'driverName' (nsString) member of 'PrintData'");
1309 0 : return false;
1310 : }
1311 0 : if ((!(Read((&((v__)->deviceName())), msg__, iter__)))) {
1312 0 : FatalError("Error deserializing 'deviceName' (nsString) member of 'PrintData'");
1313 0 : return false;
1314 : }
1315 : // Sentinel = 'deviceName'
1316 0 : if ((!((msg__)->ReadSentinel(iter__, 1005543041)))) {
1317 0 : mozilla::ipc::SentinelReadError("Error deserializing 'deviceName' (nsString) member of 'PrintData'");
1318 0 : return false;
1319 : }
1320 0 : if ((!(Read((&((v__)->printableWidthInInches())), msg__, iter__)))) {
1321 0 : FatalError("Error deserializing 'printableWidthInInches' (double) member of 'PrintData'");
1322 0 : return false;
1323 : }
1324 : // Sentinel = 'printableWidthInInches'
1325 0 : if ((!((msg__)->ReadSentinel(iter__, 3490618936)))) {
1326 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printableWidthInInches' (double) member of 'PrintData'");
1327 0 : return false;
1328 : }
1329 0 : if ((!(Read((&((v__)->printableHeightInInches())), msg__, iter__)))) {
1330 0 : FatalError("Error deserializing 'printableHeightInInches' (double) member of 'PrintData'");
1331 0 : return false;
1332 : }
1333 : // Sentinel = 'printableHeightInInches'
1334 0 : if ((!((msg__)->ReadSentinel(iter__, 2512821318)))) {
1335 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printableHeightInInches' (double) member of 'PrintData'");
1336 0 : return false;
1337 : }
1338 0 : if ((!(Read((&((v__)->isFramesetDocument())), msg__, iter__)))) {
1339 0 : FatalError("Error deserializing 'isFramesetDocument' (bool) member of 'PrintData'");
1340 0 : return false;
1341 : }
1342 : // Sentinel = 'isFramesetDocument'
1343 0 : if ((!((msg__)->ReadSentinel(iter__, 2749193424)))) {
1344 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isFramesetDocument' (bool) member of 'PrintData'");
1345 0 : return false;
1346 : }
1347 0 : if ((!(Read((&((v__)->isFramesetFrameSelected())), msg__, iter__)))) {
1348 0 : FatalError("Error deserializing 'isFramesetFrameSelected' (bool) member of 'PrintData'");
1349 0 : return false;
1350 : }
1351 : // Sentinel = 'isFramesetFrameSelected'
1352 0 : if ((!((msg__)->ReadSentinel(iter__, 3597767852)))) {
1353 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isFramesetFrameSelected' (bool) member of 'PrintData'");
1354 0 : return false;
1355 : }
1356 0 : if ((!(Read((&((v__)->isIFrameSelected())), msg__, iter__)))) {
1357 0 : FatalError("Error deserializing 'isIFrameSelected' (bool) member of 'PrintData'");
1358 0 : return false;
1359 : }
1360 : // Sentinel = 'isIFrameSelected'
1361 0 : if ((!((msg__)->ReadSentinel(iter__, 43475451)))) {
1362 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isIFrameSelected' (bool) member of 'PrintData'");
1363 0 : return false;
1364 : }
1365 0 : if ((!(Read((&((v__)->isRangeSelection())), msg__, iter__)))) {
1366 0 : FatalError("Error deserializing 'isRangeSelection' (bool) member of 'PrintData'");
1367 0 : return false;
1368 : }
1369 : // Sentinel = 'isRangeSelection'
1370 0 : if ((!((msg__)->ReadSentinel(iter__, 1332533775)))) {
1371 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isRangeSelection' (bool) member of 'PrintData'");
1372 0 : return false;
1373 : }
1374 0 : if ((!(Read((&((v__)->devModeData())), msg__, iter__)))) {
1375 0 : FatalError("Error deserializing 'devModeData' (uint8_t[]) member of 'PrintData'");
1376 0 : return false;
1377 : }
1378 : // Sentinel = 'devModeData'
1379 0 : if ((!((msg__)->ReadSentinel(iter__, 115925043)))) {
1380 0 : mozilla::ipc::SentinelReadError("Error deserializing 'devModeData' (uint8_t[]) member of 'PrintData'");
1381 0 : return false;
1382 : }
1383 0 : if ((!(Read((&((v__)->GTKPrintSettings())), msg__, iter__)))) {
1384 0 : FatalError("Error deserializing 'GTKPrintSettings' (CStringKeyValue[]) member of 'PrintData'");
1385 0 : return false;
1386 : }
1387 : // Sentinel = 'GTKPrintSettings'
1388 0 : if ((!((msg__)->ReadSentinel(iter__, 3468906358)))) {
1389 0 : mozilla::ipc::SentinelReadError("Error deserializing 'GTKPrintSettings' (CStringKeyValue[]) member of 'PrintData'");
1390 0 : return false;
1391 : }
1392 0 : if ((!(Read((&((v__)->printJobName())), msg__, iter__)))) {
1393 0 : FatalError("Error deserializing 'printJobName' (nsString) member of 'PrintData'");
1394 0 : return false;
1395 : }
1396 : // Sentinel = 'printJobName'
1397 0 : if ((!((msg__)->ReadSentinel(iter__, 2875659923)))) {
1398 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printJobName' (nsString) member of 'PrintData'");
1399 0 : return false;
1400 : }
1401 0 : if ((!(Read((&((v__)->printAllPages())), msg__, iter__)))) {
1402 0 : FatalError("Error deserializing 'printAllPages' (bool) member of 'PrintData'");
1403 0 : return false;
1404 : }
1405 : // Sentinel = 'printAllPages'
1406 0 : if ((!((msg__)->ReadSentinel(iter__, 1278004999)))) {
1407 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printAllPages' (bool) member of 'PrintData'");
1408 0 : return false;
1409 : }
1410 0 : if ((!(Read((&((v__)->mustCollate())), msg__, iter__)))) {
1411 0 : FatalError("Error deserializing 'mustCollate' (bool) member of 'PrintData'");
1412 0 : return false;
1413 : }
1414 : // Sentinel = 'mustCollate'
1415 0 : if ((!((msg__)->ReadSentinel(iter__, 1240412784)))) {
1416 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mustCollate' (bool) member of 'PrintData'");
1417 0 : return false;
1418 : }
1419 0 : if ((!(Read((&((v__)->disposition())), msg__, iter__)))) {
1420 0 : FatalError("Error deserializing 'disposition' (nsString) member of 'PrintData'");
1421 0 : return false;
1422 : }
1423 : // Sentinel = 'disposition'
1424 0 : if ((!((msg__)->ReadSentinel(iter__, 143184598)))) {
1425 0 : mozilla::ipc::SentinelReadError("Error deserializing 'disposition' (nsString) member of 'PrintData'");
1426 0 : return false;
1427 : }
1428 0 : if ((!(Read((&((v__)->pagesAcross())), msg__, iter__)))) {
1429 0 : FatalError("Error deserializing 'pagesAcross' (short) member of 'PrintData'");
1430 0 : return false;
1431 : }
1432 : // Sentinel = 'pagesAcross'
1433 0 : if ((!((msg__)->ReadSentinel(iter__, 2231447816)))) {
1434 0 : mozilla::ipc::SentinelReadError("Error deserializing 'pagesAcross' (short) member of 'PrintData'");
1435 0 : return false;
1436 : }
1437 0 : if ((!(Read((&((v__)->pagesDown())), msg__, iter__)))) {
1438 0 : FatalError("Error deserializing 'pagesDown' (short) member of 'PrintData'");
1439 0 : return false;
1440 : }
1441 : // Sentinel = 'pagesDown'
1442 0 : if ((!((msg__)->ReadSentinel(iter__, 2238219045)))) {
1443 0 : mozilla::ipc::SentinelReadError("Error deserializing 'pagesDown' (short) member of 'PrintData'");
1444 0 : return false;
1445 : }
1446 0 : if ((!(Read((&((v__)->printTime())), msg__, iter__)))) {
1447 0 : FatalError("Error deserializing 'printTime' (double) member of 'PrintData'");
1448 0 : return false;
1449 : }
1450 : // Sentinel = 'printTime'
1451 0 : if ((!((msg__)->ReadSentinel(iter__, 1825405227)))) {
1452 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printTime' (double) member of 'PrintData'");
1453 0 : return false;
1454 : }
1455 0 : if ((!(Read((&((v__)->detailedErrorReporting())), msg__, iter__)))) {
1456 0 : FatalError("Error deserializing 'detailedErrorReporting' (bool) member of 'PrintData'");
1457 0 : return false;
1458 : }
1459 : // Sentinel = 'detailedErrorReporting'
1460 0 : if ((!((msg__)->ReadSentinel(iter__, 2470597122)))) {
1461 0 : mozilla::ipc::SentinelReadError("Error deserializing 'detailedErrorReporting' (bool) member of 'PrintData'");
1462 0 : return false;
1463 : }
1464 0 : if ((!(Read((&((v__)->faxNumber())), msg__, iter__)))) {
1465 0 : FatalError("Error deserializing 'faxNumber' (nsString) member of 'PrintData'");
1466 0 : return false;
1467 : }
1468 : // Sentinel = 'faxNumber'
1469 0 : if ((!((msg__)->ReadSentinel(iter__, 286348047)))) {
1470 0 : mozilla::ipc::SentinelReadError("Error deserializing 'faxNumber' (nsString) member of 'PrintData'");
1471 0 : return false;
1472 : }
1473 0 : if ((!(Read((&((v__)->addHeaderAndFooter())), msg__, iter__)))) {
1474 0 : FatalError("Error deserializing 'addHeaderAndFooter' (bool) member of 'PrintData'");
1475 0 : return false;
1476 : }
1477 : // Sentinel = 'addHeaderAndFooter'
1478 0 : if ((!((msg__)->ReadSentinel(iter__, 936511658)))) {
1479 0 : mozilla::ipc::SentinelReadError("Error deserializing 'addHeaderAndFooter' (bool) member of 'PrintData'");
1480 0 : return false;
1481 : }
1482 0 : if ((!(Read((&((v__)->fileNameExtensionHidden())), msg__, iter__)))) {
1483 0 : FatalError("Error deserializing 'fileNameExtensionHidden' (bool) member of 'PrintData'");
1484 0 : return false;
1485 : }
1486 : // Sentinel = 'fileNameExtensionHidden'
1487 0 : if ((!((msg__)->ReadSentinel(iter__, 3429991713)))) {
1488 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileNameExtensionHidden' (bool) member of 'PrintData'");
1489 0 : return false;
1490 : }
1491 0 : if ((!(Read((&((v__)->scalingFactor())), msg__, iter__)))) {
1492 0 : FatalError("Error deserializing 'scalingFactor' (float) member of 'PrintData'");
1493 0 : return false;
1494 : }
1495 : // Sentinel = 'scalingFactor'
1496 0 : if ((!((msg__)->ReadSentinel(iter__, 759930239)))) {
1497 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scalingFactor' (float) member of 'PrintData'");
1498 0 : return false;
1499 : }
1500 0 : if ((!(Read((&((v__)->widthScale())), msg__, iter__)))) {
1501 0 : FatalError("Error deserializing 'widthScale' (float) member of 'PrintData'");
1502 0 : return false;
1503 : }
1504 : // Sentinel = 'widthScale'
1505 0 : if ((!((msg__)->ReadSentinel(iter__, 692534408)))) {
1506 0 : mozilla::ipc::SentinelReadError("Error deserializing 'widthScale' (float) member of 'PrintData'");
1507 0 : return false;
1508 : }
1509 0 : if ((!(Read((&((v__)->heightScale())), msg__, iter__)))) {
1510 0 : FatalError("Error deserializing 'heightScale' (float) member of 'PrintData'");
1511 0 : return false;
1512 : }
1513 : // Sentinel = 'heightScale'
1514 0 : if ((!((msg__)->ReadSentinel(iter__, 1007139770)))) {
1515 0 : mozilla::ipc::SentinelReadError("Error deserializing 'heightScale' (float) member of 'PrintData'");
1516 0 : return false;
1517 : }
1518 0 : if ((!(Read((&((v__)->adjustedPaperWidth())), msg__, iter__)))) {
1519 0 : FatalError("Error deserializing 'adjustedPaperWidth' (double) member of 'PrintData'");
1520 0 : return false;
1521 : }
1522 : // Sentinel = 'adjustedPaperWidth'
1523 0 : if ((!((msg__)->ReadSentinel(iter__, 2163992630)))) {
1524 0 : mozilla::ipc::SentinelReadError("Error deserializing 'adjustedPaperWidth' (double) member of 'PrintData'");
1525 0 : return false;
1526 : }
1527 0 : if ((!(Read((&((v__)->adjustedPaperHeight())), msg__, iter__)))) {
1528 0 : FatalError("Error deserializing 'adjustedPaperHeight' (double) member of 'PrintData'");
1529 0 : return false;
1530 : }
1531 : // Sentinel = 'adjustedPaperHeight'
1532 0 : if ((!((msg__)->ReadSentinel(iter__, 3110257834)))) {
1533 0 : mozilla::ipc::SentinelReadError("Error deserializing 'adjustedPaperHeight' (double) member of 'PrintData'");
1534 0 : return false;
1535 : }
1536 0 : return true;
1537 : }
1538 :
1539 0 : auto PPrintingChild::Write(
1540 : const PBrowserChild* v__,
1541 : Message* msg__,
1542 : bool nullable__) -> void
1543 : {
1544 : int32_t id;
1545 0 : if ((!(v__))) {
1546 0 : if ((!(nullable__))) {
1547 0 : FatalError("NULL actor value passed to non-nullable param");
1548 : }
1549 0 : id = 0;
1550 : }
1551 : else {
1552 0 : id = (v__)->Id();
1553 0 : if ((1) == (id)) {
1554 0 : FatalError("actor has been |delete|d");
1555 : }
1556 : }
1557 :
1558 0 : Write(id, msg__);
1559 0 : }
1560 :
1561 0 : auto PPrintingChild::Read(
1562 : PBrowserChild** v__,
1563 : const Message* msg__,
1564 : PickleIterator* iter__,
1565 : bool nullable__) -> bool
1566 : {
1567 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBrowser", PBrowserMsgStart);
1568 0 : if ((actor).isNothing()) {
1569 0 : return false;
1570 : }
1571 :
1572 0 : (*(v__)) = static_cast<PBrowserChild*>((actor).value());
1573 0 : return true;
1574 : }
1575 :
1576 0 : auto PPrintingChild::Write(
1577 : const PPrintingChild* v__,
1578 : Message* msg__,
1579 : bool nullable__) -> void
1580 : {
1581 : int32_t id;
1582 0 : if ((!(v__))) {
1583 0 : if ((!(nullable__))) {
1584 0 : FatalError("NULL actor value passed to non-nullable param");
1585 : }
1586 0 : id = 0;
1587 : }
1588 : else {
1589 0 : id = (v__)->Id();
1590 0 : if ((1) == (id)) {
1591 0 : FatalError("actor has been |delete|d");
1592 : }
1593 : }
1594 :
1595 0 : Write(id, msg__);
1596 0 : }
1597 :
1598 0 : auto PPrintingChild::Read(
1599 : PPrintingChild** v__,
1600 : const Message* msg__,
1601 : PickleIterator* iter__,
1602 : bool nullable__) -> bool
1603 : {
1604 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPrinting", PPrintingMsgStart);
1605 0 : if ((actor).isNothing()) {
1606 0 : return false;
1607 : }
1608 :
1609 0 : (*(v__)) = static_cast<PPrintingChild*>((actor).value());
1610 0 : return true;
1611 : }
1612 :
1613 0 : auto PPrintingChild::Write(
1614 : const PPrintProgressDialogChild* v__,
1615 : Message* msg__,
1616 : bool nullable__) -> void
1617 : {
1618 : int32_t id;
1619 0 : if ((!(v__))) {
1620 0 : if ((!(nullable__))) {
1621 0 : FatalError("NULL actor value passed to non-nullable param");
1622 : }
1623 0 : id = 0;
1624 : }
1625 : else {
1626 0 : id = (v__)->Id();
1627 0 : if ((1) == (id)) {
1628 0 : FatalError("actor has been |delete|d");
1629 : }
1630 : }
1631 :
1632 0 : Write(id, msg__);
1633 0 : }
1634 :
1635 0 : auto PPrintingChild::Read(
1636 : PPrintProgressDialogChild** v__,
1637 : const Message* msg__,
1638 : PickleIterator* iter__,
1639 : bool nullable__) -> bool
1640 : {
1641 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPrintProgressDialog", PPrintProgressDialogMsgStart);
1642 0 : if ((actor).isNothing()) {
1643 0 : return false;
1644 : }
1645 :
1646 0 : (*(v__)) = static_cast<PPrintProgressDialogChild*>((actor).value());
1647 0 : return true;
1648 : }
1649 :
1650 0 : auto PPrintingChild::Write(
1651 : const nsTArray<CStringKeyValue>& v__,
1652 : Message* msg__) -> void
1653 : {
1654 0 : uint32_t length = (v__).Length();
1655 0 : Write(length, msg__);
1656 : // Sentinel = ('length', 'CStringKeyValue[]')
1657 0 : (msg__)->WriteSentinel(1519554322);
1658 :
1659 0 : for (auto& elem : v__) {
1660 0 : Write(elem, msg__);
1661 : // Sentinel = 'CStringKeyValue[]'
1662 0 : (msg__)->WriteSentinel(166419805);
1663 : }
1664 0 : }
1665 :
1666 0 : auto PPrintingChild::Read(
1667 : nsTArray<CStringKeyValue>* v__,
1668 : const Message* msg__,
1669 : PickleIterator* iter__) -> bool
1670 : {
1671 0 : nsTArray<CStringKeyValue> fa;
1672 : uint32_t length;
1673 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1674 0 : mozilla::ipc::ArrayLengthReadError("CStringKeyValue[]");
1675 0 : return false;
1676 : }
1677 : // Sentinel = ('length', 'CStringKeyValue[]')
1678 0 : if ((!((msg__)->ReadSentinel(iter__, 1519554322)))) {
1679 0 : mozilla::ipc::SentinelReadError("CStringKeyValue[]");
1680 0 : return false;
1681 : }
1682 :
1683 0 : CStringKeyValue* elems = (fa).AppendElements(length);
1684 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1685 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1686 0 : FatalError("Error deserializing 'CStringKeyValue[i]'");
1687 0 : return false;
1688 : }
1689 : // Sentinel = 'CStringKeyValue[]'
1690 0 : if ((!((msg__)->ReadSentinel(iter__, 166419805)))) {
1691 0 : mozilla::ipc::SentinelReadError("Error deserializing 'CStringKeyValue[i]'");
1692 0 : return false;
1693 : }
1694 : }
1695 0 : (v__)->SwapElements(fa);
1696 0 : return true;
1697 : }
1698 :
1699 0 : auto PPrintingChild::Write(
1700 : const PPrintSettingsDialogChild* v__,
1701 : Message* msg__,
1702 : bool nullable__) -> void
1703 : {
1704 : int32_t id;
1705 0 : if ((!(v__))) {
1706 0 : if ((!(nullable__))) {
1707 0 : FatalError("NULL actor value passed to non-nullable param");
1708 : }
1709 0 : id = 0;
1710 : }
1711 : else {
1712 0 : id = (v__)->Id();
1713 0 : if ((1) == (id)) {
1714 0 : FatalError("actor has been |delete|d");
1715 : }
1716 : }
1717 :
1718 0 : Write(id, msg__);
1719 0 : }
1720 :
1721 0 : auto PPrintingChild::Read(
1722 : PPrintSettingsDialogChild** v__,
1723 : const Message* msg__,
1724 : PickleIterator* iter__,
1725 : bool nullable__) -> bool
1726 : {
1727 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPrintSettingsDialog", PPrintSettingsDialogMsgStart);
1728 0 : if ((actor).isNothing()) {
1729 0 : return false;
1730 : }
1731 :
1732 0 : (*(v__)) = static_cast<PPrintSettingsDialogChild*>((actor).value());
1733 0 : return true;
1734 : }
1735 :
1736 0 : auto PPrintingChild::Write(
1737 : const PRemotePrintJobChild* v__,
1738 : Message* msg__,
1739 : bool nullable__) -> void
1740 : {
1741 : int32_t id;
1742 0 : if ((!(v__))) {
1743 0 : if ((!(nullable__))) {
1744 0 : FatalError("NULL actor value passed to non-nullable param");
1745 : }
1746 0 : id = 0;
1747 : }
1748 : else {
1749 0 : id = (v__)->Id();
1750 0 : if ((1) == (id)) {
1751 0 : FatalError("actor has been |delete|d");
1752 : }
1753 : }
1754 :
1755 0 : Write(id, msg__);
1756 0 : }
1757 :
1758 0 : auto PPrintingChild::Read(
1759 : PRemotePrintJobChild** v__,
1760 : const Message* msg__,
1761 : PickleIterator* iter__,
1762 : bool nullable__) -> bool
1763 : {
1764 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PRemotePrintJob", PRemotePrintJobMsgStart);
1765 0 : if ((actor).isNothing()) {
1766 0 : return false;
1767 : }
1768 :
1769 0 : (*(v__)) = static_cast<PRemotePrintJobChild*>((actor).value());
1770 0 : return true;
1771 : }
1772 :
1773 :
1774 :
1775 : } // namespace embedding
1776 : } // namespace mozilla
|