Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/embedding/PPrintSettingsDialogParent.h"
8 :
9 : #include "mozilla/embedding/PPrintingParent.h"
10 : #include "mozilla/layout/PRemotePrintJobParent.h"
11 :
12 : #include "nsIFile.h"
13 : #include "GeckoProfiler.h"
14 :
15 : namespace mozilla {
16 : namespace embedding {
17 :
18 :
19 :
20 0 : MOZ_IMPLICIT PPrintSettingsDialogParent::PPrintSettingsDialogParent() :
21 : mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
22 0 : mState(PPrintSettingsDialog::__Dead)
23 : {
24 0 : MOZ_COUNT_CTOR(PPrintSettingsDialogParent);
25 0 : }
26 :
27 0 : PPrintSettingsDialogParent::~PPrintSettingsDialogParent()
28 : {
29 0 : MOZ_COUNT_DTOR(PPrintSettingsDialogParent);
30 0 : }
31 :
32 0 : auto PPrintSettingsDialogParent::Manager() const -> PPrintingParent*
33 : {
34 0 : return static_cast<PPrintingParent*>(IProtocol::Manager());
35 : }
36 :
37 0 : auto PPrintSettingsDialogParent::Send__delete__(
38 : PPrintSettingsDialogParent* actor,
39 : const PrintDataOrNSResult& result) -> bool
40 : {
41 0 : if ((!(actor))) {
42 0 : return false;
43 : }
44 :
45 0 : IPC::Message* msg__ = PPrintSettingsDialog::Msg___delete__((actor)->Id());
46 :
47 0 : (actor)->Write(actor, msg__, false);
48 : // Sentinel = 'actor'
49 0 : (msg__)->WriteSentinel(875202478);
50 0 : (actor)->Write(result, msg__);
51 : // Sentinel = 'result'
52 0 : (msg__)->WriteSentinel(3991766165);
53 :
54 :
55 :
56 0 : if (mozilla::ipc::LoggingEnabledFor("PPrintSettingsDialogParent")) {
57 0 : mozilla::ipc::LogMessageForProtocol("PPrintSettingsDialogParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
58 : }
59 0 : AUTO_PROFILER_LABEL("PPrintSettingsDialog::Msg___delete__", OTHER);
60 0 : PPrintSettingsDialog::Transition(PPrintSettingsDialog::Msg___delete____ID, (&((actor)->mState)));
61 :
62 0 : bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
63 :
64 0 : IProtocol* mgr = (actor)->Manager();
65 0 : (actor)->DestroySubtree(Deletion);
66 0 : (actor)->DeallocSubtree();
67 0 : (mgr)->RemoveManagee(PPrintSettingsDialogMsgStart, actor);
68 0 : return sendok__;
69 : }
70 :
71 0 : auto PPrintSettingsDialogParent::RemoveManagee(
72 : int32_t aProtocolId,
73 : ProtocolBase* aListener) -> void
74 : {
75 0 : FatalError("unreached");
76 0 : return;
77 : }
78 :
79 0 : auto PPrintSettingsDialogParent::OnMessageReceived(const Message& msg__) -> PPrintSettingsDialogParent::Result
80 : {
81 0 : switch ((msg__).type()) {
82 : case PPrintSettingsDialog::Reply___delete____ID:
83 : {
84 0 : return MsgProcessed;
85 : }
86 : default:
87 : {
88 0 : return MsgNotKnown;
89 : }
90 : }
91 : }
92 :
93 0 : auto PPrintSettingsDialogParent::OnMessageReceived(
94 : const Message& msg__,
95 : Message*& reply__) -> PPrintSettingsDialogParent::Result
96 : {
97 0 : return MsgNotKnown;
98 : }
99 :
100 0 : auto PPrintSettingsDialogParent::OnCallReceived(
101 : const Message& msg__,
102 : Message*& reply__) -> PPrintSettingsDialogParent::Result
103 : {
104 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
105 : return MsgNotKnown;
106 : }
107 :
108 0 : auto PPrintSettingsDialogParent::GetProtocolTypeId() -> int32_t
109 : {
110 0 : return PPrintSettingsDialogMsgStart;
111 : }
112 :
113 0 : auto PPrintSettingsDialogParent::ProtocolName() const -> const char*
114 : {
115 0 : return "PPrintSettingsDialogParent";
116 : }
117 :
118 0 : auto PPrintSettingsDialogParent::DestroySubtree(ActorDestroyReason why) -> void
119 : {
120 : // Unregister from our manager.
121 0 : Unregister(Id());
122 :
123 : // Reject owning pending promises.
124 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
125 :
126 : // Finally, destroy "us".
127 0 : ActorDestroy(why);
128 0 : }
129 :
130 0 : auto PPrintSettingsDialogParent::DeallocSubtree() -> void
131 : {
132 0 : }
133 :
134 0 : auto PPrintSettingsDialogParent::Write(
135 : const CStringKeyValue& v__,
136 : Message* msg__) -> void
137 : {
138 0 : Write((v__).key(), msg__);
139 : // Sentinel = 'key'
140 0 : (msg__)->WriteSentinel(35142870);
141 0 : Write((v__).value(), msg__);
142 : // Sentinel = 'value'
143 0 : (msg__)->WriteSentinel(3456818542);
144 0 : }
145 :
146 0 : auto PPrintSettingsDialogParent::Read(
147 : CStringKeyValue* v__,
148 : const Message* msg__,
149 : PickleIterator* iter__) -> bool
150 : {
151 0 : if ((!(Read((&((v__)->key())), msg__, iter__)))) {
152 0 : FatalError("Error deserializing 'key' (nsCString) member of 'CStringKeyValue'");
153 0 : return false;
154 : }
155 : // Sentinel = 'key'
156 0 : if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
157 0 : mozilla::ipc::SentinelReadError("Error deserializing 'key' (nsCString) member of 'CStringKeyValue'");
158 0 : return false;
159 : }
160 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
161 0 : FatalError("Error deserializing 'value' (nsCString) member of 'CStringKeyValue'");
162 0 : return false;
163 : }
164 : // Sentinel = 'value'
165 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
166 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'CStringKeyValue'");
167 0 : return false;
168 : }
169 0 : return true;
170 : }
171 :
172 0 : auto PPrintSettingsDialogParent::Write(
173 : const PrintData& v__,
174 : Message* msg__) -> void
175 : {
176 0 : Write((v__).remotePrintJobParent(), msg__, true);
177 : // Sentinel = 'remotePrintJob'
178 0 : (msg__)->WriteSentinel(2408336150);
179 : // skipping actor field that's meaningless on this side
180 0 : Write((v__).startPageRange(), msg__);
181 : // Sentinel = 'startPageRange'
182 0 : (msg__)->WriteSentinel(1740949386);
183 0 : Write((v__).endPageRange(), msg__);
184 : // Sentinel = 'endPageRange'
185 0 : (msg__)->WriteSentinel(953063629);
186 0 : Write((v__).edgeTop(), msg__);
187 : // Sentinel = 'edgeTop'
188 0 : (msg__)->WriteSentinel(2921361411);
189 0 : Write((v__).edgeLeft(), msg__);
190 : // Sentinel = 'edgeLeft'
191 0 : (msg__)->WriteSentinel(2945930184);
192 0 : Write((v__).edgeBottom(), msg__);
193 : // Sentinel = 'edgeBottom'
194 0 : (msg__)->WriteSentinel(1887667460);
195 0 : Write((v__).edgeRight(), msg__);
196 : // Sentinel = 'edgeRight'
197 0 : (msg__)->WriteSentinel(157215326);
198 0 : Write((v__).marginTop(), msg__);
199 : // Sentinel = 'marginTop'
200 0 : (msg__)->WriteSentinel(2523949818);
201 0 : Write((v__).marginLeft(), msg__);
202 : // Sentinel = 'marginLeft'
203 0 : (msg__)->WriteSentinel(628365747);
204 0 : Write((v__).marginBottom(), msg__);
205 : // Sentinel = 'marginBottom'
206 0 : (msg__)->WriteSentinel(585974827);
207 0 : Write((v__).marginRight(), msg__);
208 : // Sentinel = 'marginRight'
209 0 : (msg__)->WriteSentinel(3106079639);
210 0 : Write((v__).unwriteableMarginTop(), msg__);
211 : // Sentinel = 'unwriteableMarginTop'
212 0 : (msg__)->WriteSentinel(4054023201);
213 0 : Write((v__).unwriteableMarginLeft(), msg__);
214 : // Sentinel = 'unwriteableMarginLeft'
215 0 : (msg__)->WriteSentinel(2112040842);
216 0 : Write((v__).unwriteableMarginBottom(), msg__);
217 : // Sentinel = 'unwriteableMarginBottom'
218 0 : (msg__)->WriteSentinel(2888689354);
219 0 : Write((v__).unwriteableMarginRight(), msg__);
220 : // Sentinel = 'unwriteableMarginRight'
221 0 : (msg__)->WriteSentinel(1561009124);
222 0 : Write((v__).scaling(), msg__);
223 : // Sentinel = 'scaling'
224 0 : (msg__)->WriteSentinel(215329360);
225 0 : Write((v__).printBGColors(), msg__);
226 : // Sentinel = 'printBGColors'
227 0 : (msg__)->WriteSentinel(3124494641);
228 0 : Write((v__).printBGImages(), msg__);
229 : // Sentinel = 'printBGImages'
230 0 : (msg__)->WriteSentinel(2911202491);
231 0 : Write((v__).printRange(), msg__);
232 : // Sentinel = 'printRange'
233 0 : (msg__)->WriteSentinel(1358535918);
234 0 : Write((v__).title(), msg__);
235 : // Sentinel = 'title'
236 0 : (msg__)->WriteSentinel(4272139303);
237 0 : Write((v__).docURL(), msg__);
238 : // Sentinel = 'docURL'
239 0 : (msg__)->WriteSentinel(4181982195);
240 0 : Write((v__).headerStrLeft(), msg__);
241 : // Sentinel = 'headerStrLeft'
242 0 : (msg__)->WriteSentinel(1878864390);
243 0 : Write((v__).headerStrCenter(), msg__);
244 : // Sentinel = 'headerStrCenter'
245 0 : (msg__)->WriteSentinel(126520924);
246 0 : Write((v__).headerStrRight(), msg__);
247 : // Sentinel = 'headerStrRight'
248 0 : (msg__)->WriteSentinel(2894716248);
249 0 : Write((v__).footerStrLeft(), msg__);
250 : // Sentinel = 'footerStrLeft'
251 0 : (msg__)->WriteSentinel(3329009408);
252 0 : Write((v__).footerStrCenter(), msg__);
253 : // Sentinel = 'footerStrCenter'
254 0 : (msg__)->WriteSentinel(898252666);
255 0 : Write((v__).footerStrRight(), msg__);
256 : // Sentinel = 'footerStrRight'
257 0 : (msg__)->WriteSentinel(2223010342);
258 0 : Write((v__).howToEnableFrameUI(), msg__);
259 : // Sentinel = 'howToEnableFrameUI'
260 0 : (msg__)->WriteSentinel(2883217655);
261 0 : Write((v__).isCancelled(), msg__);
262 : // Sentinel = 'isCancelled'
263 0 : (msg__)->WriteSentinel(1702075666);
264 0 : Write((v__).printFrameTypeUsage(), msg__);
265 : // Sentinel = 'printFrameTypeUsage'
266 0 : (msg__)->WriteSentinel(3503383418);
267 0 : Write((v__).printFrameType(), msg__);
268 : // Sentinel = 'printFrameType'
269 0 : (msg__)->WriteSentinel(2385437026);
270 0 : Write((v__).printSilent(), msg__);
271 : // Sentinel = 'printSilent'
272 0 : (msg__)->WriteSentinel(664247649);
273 0 : Write((v__).shrinkToFit(), msg__);
274 : // Sentinel = 'shrinkToFit'
275 0 : (msg__)->WriteSentinel(1889342798);
276 0 : Write((v__).showPrintProgress(), msg__);
277 : // Sentinel = 'showPrintProgress'
278 0 : (msg__)->WriteSentinel(4220456964);
279 0 : Write((v__).paperName(), msg__);
280 : // Sentinel = 'paperName'
281 0 : (msg__)->WriteSentinel(2193092426);
282 0 : Write((v__).paperData(), msg__);
283 : // Sentinel = 'paperData'
284 0 : (msg__)->WriteSentinel(4062004975);
285 0 : Write((v__).paperWidth(), msg__);
286 : // Sentinel = 'paperWidth'
287 0 : (msg__)->WriteSentinel(3003064432);
288 0 : Write((v__).paperHeight(), msg__);
289 : // Sentinel = 'paperHeight'
290 0 : (msg__)->WriteSentinel(2702009104);
291 0 : Write((v__).paperSizeUnit(), msg__);
292 : // Sentinel = 'paperSizeUnit'
293 0 : (msg__)->WriteSentinel(1555914182);
294 0 : Write((v__).printReversed(), msg__);
295 : // Sentinel = 'printReversed'
296 0 : (msg__)->WriteSentinel(2750785978);
297 0 : Write((v__).printInColor(), msg__);
298 : // Sentinel = 'printInColor'
299 0 : (msg__)->WriteSentinel(3912554141);
300 0 : Write((v__).orientation(), msg__);
301 : // Sentinel = 'orientation'
302 0 : (msg__)->WriteSentinel(759639429);
303 0 : Write((v__).numCopies(), msg__);
304 : // Sentinel = 'numCopies'
305 0 : (msg__)->WriteSentinel(207039186);
306 0 : Write((v__).printerName(), msg__);
307 : // Sentinel = 'printerName'
308 0 : (msg__)->WriteSentinel(114568230);
309 0 : Write((v__).printToFile(), msg__);
310 : // Sentinel = 'printToFile'
311 0 : (msg__)->WriteSentinel(1740131543);
312 0 : Write((v__).toFileName(), msg__);
313 : // Sentinel = 'toFileName'
314 0 : (msg__)->WriteSentinel(1204763262);
315 0 : Write((v__).outputFormat(), msg__);
316 : // Sentinel = 'outputFormat'
317 0 : (msg__)->WriteSentinel(1831305826);
318 0 : Write((v__).printPageDelay(), msg__);
319 : // Sentinel = 'printPageDelay'
320 0 : (msg__)->WriteSentinel(3763987991);
321 0 : Write((v__).resolution(), msg__);
322 : // Sentinel = 'resolution'
323 0 : (msg__)->WriteSentinel(4077768700);
324 0 : Write((v__).duplex(), msg__);
325 : // Sentinel = 'duplex'
326 0 : (msg__)->WriteSentinel(411036200);
327 0 : Write((v__).isInitializedFromPrinter(), msg__);
328 : // Sentinel = 'isInitializedFromPrinter'
329 0 : (msg__)->WriteSentinel(934901298);
330 0 : Write((v__).isInitializedFromPrefs(), msg__);
331 : // Sentinel = 'isInitializedFromPrefs'
332 0 : (msg__)->WriteSentinel(1549019882);
333 0 : Write((v__).optionFlags(), msg__);
334 : // Sentinel = 'optionFlags'
335 0 : (msg__)->WriteSentinel(977126139);
336 0 : Write((v__).driverName(), msg__);
337 : // Sentinel = 'driverName'
338 0 : (msg__)->WriteSentinel(4069408885);
339 0 : Write((v__).deviceName(), msg__);
340 : // Sentinel = 'deviceName'
341 0 : (msg__)->WriteSentinel(1005543041);
342 0 : Write((v__).printableWidthInInches(), msg__);
343 : // Sentinel = 'printableWidthInInches'
344 0 : (msg__)->WriteSentinel(3490618936);
345 0 : Write((v__).printableHeightInInches(), msg__);
346 : // Sentinel = 'printableHeightInInches'
347 0 : (msg__)->WriteSentinel(2512821318);
348 0 : Write((v__).isFramesetDocument(), msg__);
349 : // Sentinel = 'isFramesetDocument'
350 0 : (msg__)->WriteSentinel(2749193424);
351 0 : Write((v__).isFramesetFrameSelected(), msg__);
352 : // Sentinel = 'isFramesetFrameSelected'
353 0 : (msg__)->WriteSentinel(3597767852);
354 0 : Write((v__).isIFrameSelected(), msg__);
355 : // Sentinel = 'isIFrameSelected'
356 0 : (msg__)->WriteSentinel(43475451);
357 0 : Write((v__).isRangeSelection(), msg__);
358 : // Sentinel = 'isRangeSelection'
359 0 : (msg__)->WriteSentinel(1332533775);
360 0 : Write((v__).devModeData(), msg__);
361 : // Sentinel = 'devModeData'
362 0 : (msg__)->WriteSentinel(115925043);
363 0 : Write((v__).GTKPrintSettings(), msg__);
364 : // Sentinel = 'GTKPrintSettings'
365 0 : (msg__)->WriteSentinel(3468906358);
366 0 : Write((v__).printJobName(), msg__);
367 : // Sentinel = 'printJobName'
368 0 : (msg__)->WriteSentinel(2875659923);
369 0 : Write((v__).printAllPages(), msg__);
370 : // Sentinel = 'printAllPages'
371 0 : (msg__)->WriteSentinel(1278004999);
372 0 : Write((v__).mustCollate(), msg__);
373 : // Sentinel = 'mustCollate'
374 0 : (msg__)->WriteSentinel(1240412784);
375 0 : Write((v__).disposition(), msg__);
376 : // Sentinel = 'disposition'
377 0 : (msg__)->WriteSentinel(143184598);
378 0 : Write((v__).pagesAcross(), msg__);
379 : // Sentinel = 'pagesAcross'
380 0 : (msg__)->WriteSentinel(2231447816);
381 0 : Write((v__).pagesDown(), msg__);
382 : // Sentinel = 'pagesDown'
383 0 : (msg__)->WriteSentinel(2238219045);
384 0 : Write((v__).printTime(), msg__);
385 : // Sentinel = 'printTime'
386 0 : (msg__)->WriteSentinel(1825405227);
387 0 : Write((v__).detailedErrorReporting(), msg__);
388 : // Sentinel = 'detailedErrorReporting'
389 0 : (msg__)->WriteSentinel(2470597122);
390 0 : Write((v__).faxNumber(), msg__);
391 : // Sentinel = 'faxNumber'
392 0 : (msg__)->WriteSentinel(286348047);
393 0 : Write((v__).addHeaderAndFooter(), msg__);
394 : // Sentinel = 'addHeaderAndFooter'
395 0 : (msg__)->WriteSentinel(936511658);
396 0 : Write((v__).fileNameExtensionHidden(), msg__);
397 : // Sentinel = 'fileNameExtensionHidden'
398 0 : (msg__)->WriteSentinel(3429991713);
399 0 : Write((v__).scalingFactor(), msg__);
400 : // Sentinel = 'scalingFactor'
401 0 : (msg__)->WriteSentinel(759930239);
402 0 : Write((v__).widthScale(), msg__);
403 : // Sentinel = 'widthScale'
404 0 : (msg__)->WriteSentinel(692534408);
405 0 : Write((v__).heightScale(), msg__);
406 : // Sentinel = 'heightScale'
407 0 : (msg__)->WriteSentinel(1007139770);
408 0 : Write((v__).adjustedPaperWidth(), msg__);
409 : // Sentinel = 'adjustedPaperWidth'
410 0 : (msg__)->WriteSentinel(2163992630);
411 0 : Write((v__).adjustedPaperHeight(), msg__);
412 : // Sentinel = 'adjustedPaperHeight'
413 0 : (msg__)->WriteSentinel(3110257834);
414 0 : }
415 :
416 0 : auto PPrintSettingsDialogParent::Read(
417 : PrintData* v__,
418 : const Message* msg__,
419 : PickleIterator* iter__) -> bool
420 : {
421 0 : if ((!(Read((&((v__)->remotePrintJobParent())), msg__, iter__, true)))) {
422 0 : FatalError("Error deserializing 'remotePrintJobParent' (PRemotePrintJob) member of 'PrintData'");
423 0 : return false;
424 : }
425 : // Sentinel = 'remotePrintJob'
426 0 : if ((!((msg__)->ReadSentinel(iter__, 2408336150)))) {
427 0 : mozilla::ipc::SentinelReadError("Error deserializing 'remotePrintJobParent' (PRemotePrintJob) member of 'PrintData'");
428 0 : return false;
429 : }
430 : // skipping actor field that's meaningless on this side
431 0 : if ((!(Read((&((v__)->startPageRange())), msg__, iter__)))) {
432 0 : FatalError("Error deserializing 'startPageRange' (int32_t) member of 'PrintData'");
433 0 : return false;
434 : }
435 : // Sentinel = 'startPageRange'
436 0 : if ((!((msg__)->ReadSentinel(iter__, 1740949386)))) {
437 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPageRange' (int32_t) member of 'PrintData'");
438 0 : return false;
439 : }
440 0 : if ((!(Read((&((v__)->endPageRange())), msg__, iter__)))) {
441 0 : FatalError("Error deserializing 'endPageRange' (int32_t) member of 'PrintData'");
442 0 : return false;
443 : }
444 : // Sentinel = 'endPageRange'
445 0 : if ((!((msg__)->ReadSentinel(iter__, 953063629)))) {
446 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPageRange' (int32_t) member of 'PrintData'");
447 0 : return false;
448 : }
449 0 : if ((!(Read((&((v__)->edgeTop())), msg__, iter__)))) {
450 0 : FatalError("Error deserializing 'edgeTop' (double) member of 'PrintData'");
451 0 : return false;
452 : }
453 : // Sentinel = 'edgeTop'
454 0 : if ((!((msg__)->ReadSentinel(iter__, 2921361411)))) {
455 0 : mozilla::ipc::SentinelReadError("Error deserializing 'edgeTop' (double) member of 'PrintData'");
456 0 : return false;
457 : }
458 0 : if ((!(Read((&((v__)->edgeLeft())), msg__, iter__)))) {
459 0 : FatalError("Error deserializing 'edgeLeft' (double) member of 'PrintData'");
460 0 : return false;
461 : }
462 : // Sentinel = 'edgeLeft'
463 0 : if ((!((msg__)->ReadSentinel(iter__, 2945930184)))) {
464 0 : mozilla::ipc::SentinelReadError("Error deserializing 'edgeLeft' (double) member of 'PrintData'");
465 0 : return false;
466 : }
467 0 : if ((!(Read((&((v__)->edgeBottom())), msg__, iter__)))) {
468 0 : FatalError("Error deserializing 'edgeBottom' (double) member of 'PrintData'");
469 0 : return false;
470 : }
471 : // Sentinel = 'edgeBottom'
472 0 : if ((!((msg__)->ReadSentinel(iter__, 1887667460)))) {
473 0 : mozilla::ipc::SentinelReadError("Error deserializing 'edgeBottom' (double) member of 'PrintData'");
474 0 : return false;
475 : }
476 0 : if ((!(Read((&((v__)->edgeRight())), msg__, iter__)))) {
477 0 : FatalError("Error deserializing 'edgeRight' (double) member of 'PrintData'");
478 0 : return false;
479 : }
480 : // Sentinel = 'edgeRight'
481 0 : if ((!((msg__)->ReadSentinel(iter__, 157215326)))) {
482 0 : mozilla::ipc::SentinelReadError("Error deserializing 'edgeRight' (double) member of 'PrintData'");
483 0 : return false;
484 : }
485 0 : if ((!(Read((&((v__)->marginTop())), msg__, iter__)))) {
486 0 : FatalError("Error deserializing 'marginTop' (double) member of 'PrintData'");
487 0 : return false;
488 : }
489 : // Sentinel = 'marginTop'
490 0 : if ((!((msg__)->ReadSentinel(iter__, 2523949818)))) {
491 0 : mozilla::ipc::SentinelReadError("Error deserializing 'marginTop' (double) member of 'PrintData'");
492 0 : return false;
493 : }
494 0 : if ((!(Read((&((v__)->marginLeft())), msg__, iter__)))) {
495 0 : FatalError("Error deserializing 'marginLeft' (double) member of 'PrintData'");
496 0 : return false;
497 : }
498 : // Sentinel = 'marginLeft'
499 0 : if ((!((msg__)->ReadSentinel(iter__, 628365747)))) {
500 0 : mozilla::ipc::SentinelReadError("Error deserializing 'marginLeft' (double) member of 'PrintData'");
501 0 : return false;
502 : }
503 0 : if ((!(Read((&((v__)->marginBottom())), msg__, iter__)))) {
504 0 : FatalError("Error deserializing 'marginBottom' (double) member of 'PrintData'");
505 0 : return false;
506 : }
507 : // Sentinel = 'marginBottom'
508 0 : if ((!((msg__)->ReadSentinel(iter__, 585974827)))) {
509 0 : mozilla::ipc::SentinelReadError("Error deserializing 'marginBottom' (double) member of 'PrintData'");
510 0 : return false;
511 : }
512 0 : if ((!(Read((&((v__)->marginRight())), msg__, iter__)))) {
513 0 : FatalError("Error deserializing 'marginRight' (double) member of 'PrintData'");
514 0 : return false;
515 : }
516 : // Sentinel = 'marginRight'
517 0 : if ((!((msg__)->ReadSentinel(iter__, 3106079639)))) {
518 0 : mozilla::ipc::SentinelReadError("Error deserializing 'marginRight' (double) member of 'PrintData'");
519 0 : return false;
520 : }
521 0 : if ((!(Read((&((v__)->unwriteableMarginTop())), msg__, iter__)))) {
522 0 : FatalError("Error deserializing 'unwriteableMarginTop' (double) member of 'PrintData'");
523 0 : return false;
524 : }
525 : // Sentinel = 'unwriteableMarginTop'
526 0 : if ((!((msg__)->ReadSentinel(iter__, 4054023201)))) {
527 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginTop' (double) member of 'PrintData'");
528 0 : return false;
529 : }
530 0 : if ((!(Read((&((v__)->unwriteableMarginLeft())), msg__, iter__)))) {
531 0 : FatalError("Error deserializing 'unwriteableMarginLeft' (double) member of 'PrintData'");
532 0 : return false;
533 : }
534 : // Sentinel = 'unwriteableMarginLeft'
535 0 : if ((!((msg__)->ReadSentinel(iter__, 2112040842)))) {
536 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginLeft' (double) member of 'PrintData'");
537 0 : return false;
538 : }
539 0 : if ((!(Read((&((v__)->unwriteableMarginBottom())), msg__, iter__)))) {
540 0 : FatalError("Error deserializing 'unwriteableMarginBottom' (double) member of 'PrintData'");
541 0 : return false;
542 : }
543 : // Sentinel = 'unwriteableMarginBottom'
544 0 : if ((!((msg__)->ReadSentinel(iter__, 2888689354)))) {
545 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginBottom' (double) member of 'PrintData'");
546 0 : return false;
547 : }
548 0 : if ((!(Read((&((v__)->unwriteableMarginRight())), msg__, iter__)))) {
549 0 : FatalError("Error deserializing 'unwriteableMarginRight' (double) member of 'PrintData'");
550 0 : return false;
551 : }
552 : // Sentinel = 'unwriteableMarginRight'
553 0 : if ((!((msg__)->ReadSentinel(iter__, 1561009124)))) {
554 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unwriteableMarginRight' (double) member of 'PrintData'");
555 0 : return false;
556 : }
557 0 : if ((!(Read((&((v__)->scaling())), msg__, iter__)))) {
558 0 : FatalError("Error deserializing 'scaling' (double) member of 'PrintData'");
559 0 : return false;
560 : }
561 : // Sentinel = 'scaling'
562 0 : if ((!((msg__)->ReadSentinel(iter__, 215329360)))) {
563 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scaling' (double) member of 'PrintData'");
564 0 : return false;
565 : }
566 0 : if ((!(Read((&((v__)->printBGColors())), msg__, iter__)))) {
567 0 : FatalError("Error deserializing 'printBGColors' (bool) member of 'PrintData'");
568 0 : return false;
569 : }
570 : // Sentinel = 'printBGColors'
571 0 : if ((!((msg__)->ReadSentinel(iter__, 3124494641)))) {
572 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printBGColors' (bool) member of 'PrintData'");
573 0 : return false;
574 : }
575 0 : if ((!(Read((&((v__)->printBGImages())), msg__, iter__)))) {
576 0 : FatalError("Error deserializing 'printBGImages' (bool) member of 'PrintData'");
577 0 : return false;
578 : }
579 : // Sentinel = 'printBGImages'
580 0 : if ((!((msg__)->ReadSentinel(iter__, 2911202491)))) {
581 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printBGImages' (bool) member of 'PrintData'");
582 0 : return false;
583 : }
584 0 : if ((!(Read((&((v__)->printRange())), msg__, iter__)))) {
585 0 : FatalError("Error deserializing 'printRange' (short) member of 'PrintData'");
586 0 : return false;
587 : }
588 : // Sentinel = 'printRange'
589 0 : if ((!((msg__)->ReadSentinel(iter__, 1358535918)))) {
590 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printRange' (short) member of 'PrintData'");
591 0 : return false;
592 : }
593 0 : if ((!(Read((&((v__)->title())), msg__, iter__)))) {
594 0 : FatalError("Error deserializing 'title' (nsString) member of 'PrintData'");
595 0 : return false;
596 : }
597 : // Sentinel = 'title'
598 0 : if ((!((msg__)->ReadSentinel(iter__, 4272139303)))) {
599 0 : mozilla::ipc::SentinelReadError("Error deserializing 'title' (nsString) member of 'PrintData'");
600 0 : return false;
601 : }
602 0 : if ((!(Read((&((v__)->docURL())), msg__, iter__)))) {
603 0 : FatalError("Error deserializing 'docURL' (nsString) member of 'PrintData'");
604 0 : return false;
605 : }
606 : // Sentinel = 'docURL'
607 0 : if ((!((msg__)->ReadSentinel(iter__, 4181982195)))) {
608 0 : mozilla::ipc::SentinelReadError("Error deserializing 'docURL' (nsString) member of 'PrintData'");
609 0 : return false;
610 : }
611 0 : if ((!(Read((&((v__)->headerStrLeft())), msg__, iter__)))) {
612 0 : FatalError("Error deserializing 'headerStrLeft' (nsString) member of 'PrintData'");
613 0 : return false;
614 : }
615 : // Sentinel = 'headerStrLeft'
616 0 : if ((!((msg__)->ReadSentinel(iter__, 1878864390)))) {
617 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headerStrLeft' (nsString) member of 'PrintData'");
618 0 : return false;
619 : }
620 0 : if ((!(Read((&((v__)->headerStrCenter())), msg__, iter__)))) {
621 0 : FatalError("Error deserializing 'headerStrCenter' (nsString) member of 'PrintData'");
622 0 : return false;
623 : }
624 : // Sentinel = 'headerStrCenter'
625 0 : if ((!((msg__)->ReadSentinel(iter__, 126520924)))) {
626 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headerStrCenter' (nsString) member of 'PrintData'");
627 0 : return false;
628 : }
629 0 : if ((!(Read((&((v__)->headerStrRight())), msg__, iter__)))) {
630 0 : FatalError("Error deserializing 'headerStrRight' (nsString) member of 'PrintData'");
631 0 : return false;
632 : }
633 : // Sentinel = 'headerStrRight'
634 0 : if ((!((msg__)->ReadSentinel(iter__, 2894716248)))) {
635 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headerStrRight' (nsString) member of 'PrintData'");
636 0 : return false;
637 : }
638 0 : if ((!(Read((&((v__)->footerStrLeft())), msg__, iter__)))) {
639 0 : FatalError("Error deserializing 'footerStrLeft' (nsString) member of 'PrintData'");
640 0 : return false;
641 : }
642 : // Sentinel = 'footerStrLeft'
643 0 : if ((!((msg__)->ReadSentinel(iter__, 3329009408)))) {
644 0 : mozilla::ipc::SentinelReadError("Error deserializing 'footerStrLeft' (nsString) member of 'PrintData'");
645 0 : return false;
646 : }
647 0 : if ((!(Read((&((v__)->footerStrCenter())), msg__, iter__)))) {
648 0 : FatalError("Error deserializing 'footerStrCenter' (nsString) member of 'PrintData'");
649 0 : return false;
650 : }
651 : // Sentinel = 'footerStrCenter'
652 0 : if ((!((msg__)->ReadSentinel(iter__, 898252666)))) {
653 0 : mozilla::ipc::SentinelReadError("Error deserializing 'footerStrCenter' (nsString) member of 'PrintData'");
654 0 : return false;
655 : }
656 0 : if ((!(Read((&((v__)->footerStrRight())), msg__, iter__)))) {
657 0 : FatalError("Error deserializing 'footerStrRight' (nsString) member of 'PrintData'");
658 0 : return false;
659 : }
660 : // Sentinel = 'footerStrRight'
661 0 : if ((!((msg__)->ReadSentinel(iter__, 2223010342)))) {
662 0 : mozilla::ipc::SentinelReadError("Error deserializing 'footerStrRight' (nsString) member of 'PrintData'");
663 0 : return false;
664 : }
665 0 : if ((!(Read((&((v__)->howToEnableFrameUI())), msg__, iter__)))) {
666 0 : FatalError("Error deserializing 'howToEnableFrameUI' (short) member of 'PrintData'");
667 0 : return false;
668 : }
669 : // Sentinel = 'howToEnableFrameUI'
670 0 : if ((!((msg__)->ReadSentinel(iter__, 2883217655)))) {
671 0 : mozilla::ipc::SentinelReadError("Error deserializing 'howToEnableFrameUI' (short) member of 'PrintData'");
672 0 : return false;
673 : }
674 0 : if ((!(Read((&((v__)->isCancelled())), msg__, iter__)))) {
675 0 : FatalError("Error deserializing 'isCancelled' (bool) member of 'PrintData'");
676 0 : return false;
677 : }
678 : // Sentinel = 'isCancelled'
679 0 : if ((!((msg__)->ReadSentinel(iter__, 1702075666)))) {
680 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isCancelled' (bool) member of 'PrintData'");
681 0 : return false;
682 : }
683 0 : if ((!(Read((&((v__)->printFrameTypeUsage())), msg__, iter__)))) {
684 0 : FatalError("Error deserializing 'printFrameTypeUsage' (short) member of 'PrintData'");
685 0 : return false;
686 : }
687 : // Sentinel = 'printFrameTypeUsage'
688 0 : if ((!((msg__)->ReadSentinel(iter__, 3503383418)))) {
689 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printFrameTypeUsage' (short) member of 'PrintData'");
690 0 : return false;
691 : }
692 0 : if ((!(Read((&((v__)->printFrameType())), msg__, iter__)))) {
693 0 : FatalError("Error deserializing 'printFrameType' (short) member of 'PrintData'");
694 0 : return false;
695 : }
696 : // Sentinel = 'printFrameType'
697 0 : if ((!((msg__)->ReadSentinel(iter__, 2385437026)))) {
698 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printFrameType' (short) member of 'PrintData'");
699 0 : return false;
700 : }
701 0 : if ((!(Read((&((v__)->printSilent())), msg__, iter__)))) {
702 0 : FatalError("Error deserializing 'printSilent' (bool) member of 'PrintData'");
703 0 : return false;
704 : }
705 : // Sentinel = 'printSilent'
706 0 : if ((!((msg__)->ReadSentinel(iter__, 664247649)))) {
707 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printSilent' (bool) member of 'PrintData'");
708 0 : return false;
709 : }
710 0 : if ((!(Read((&((v__)->shrinkToFit())), msg__, iter__)))) {
711 0 : FatalError("Error deserializing 'shrinkToFit' (bool) member of 'PrintData'");
712 0 : return false;
713 : }
714 : // Sentinel = 'shrinkToFit'
715 0 : if ((!((msg__)->ReadSentinel(iter__, 1889342798)))) {
716 0 : mozilla::ipc::SentinelReadError("Error deserializing 'shrinkToFit' (bool) member of 'PrintData'");
717 0 : return false;
718 : }
719 0 : if ((!(Read((&((v__)->showPrintProgress())), msg__, iter__)))) {
720 0 : FatalError("Error deserializing 'showPrintProgress' (bool) member of 'PrintData'");
721 0 : return false;
722 : }
723 : // Sentinel = 'showPrintProgress'
724 0 : if ((!((msg__)->ReadSentinel(iter__, 4220456964)))) {
725 0 : mozilla::ipc::SentinelReadError("Error deserializing 'showPrintProgress' (bool) member of 'PrintData'");
726 0 : return false;
727 : }
728 0 : if ((!(Read((&((v__)->paperName())), msg__, iter__)))) {
729 0 : FatalError("Error deserializing 'paperName' (nsString) member of 'PrintData'");
730 0 : return false;
731 : }
732 : // Sentinel = 'paperName'
733 0 : if ((!((msg__)->ReadSentinel(iter__, 2193092426)))) {
734 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paperName' (nsString) member of 'PrintData'");
735 0 : return false;
736 : }
737 0 : if ((!(Read((&((v__)->paperData())), msg__, iter__)))) {
738 0 : FatalError("Error deserializing 'paperData' (short) member of 'PrintData'");
739 0 : return false;
740 : }
741 : // Sentinel = 'paperData'
742 0 : if ((!((msg__)->ReadSentinel(iter__, 4062004975)))) {
743 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paperData' (short) member of 'PrintData'");
744 0 : return false;
745 : }
746 0 : if ((!(Read((&((v__)->paperWidth())), msg__, iter__)))) {
747 0 : FatalError("Error deserializing 'paperWidth' (double) member of 'PrintData'");
748 0 : return false;
749 : }
750 : // Sentinel = 'paperWidth'
751 0 : if ((!((msg__)->ReadSentinel(iter__, 3003064432)))) {
752 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paperWidth' (double) member of 'PrintData'");
753 0 : return false;
754 : }
755 0 : if ((!(Read((&((v__)->paperHeight())), msg__, iter__)))) {
756 0 : FatalError("Error deserializing 'paperHeight' (double) member of 'PrintData'");
757 0 : return false;
758 : }
759 : // Sentinel = 'paperHeight'
760 0 : if ((!((msg__)->ReadSentinel(iter__, 2702009104)))) {
761 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paperHeight' (double) member of 'PrintData'");
762 0 : return false;
763 : }
764 0 : if ((!(Read((&((v__)->paperSizeUnit())), msg__, iter__)))) {
765 0 : FatalError("Error deserializing 'paperSizeUnit' (short) member of 'PrintData'");
766 0 : return false;
767 : }
768 : // Sentinel = 'paperSizeUnit'
769 0 : if ((!((msg__)->ReadSentinel(iter__, 1555914182)))) {
770 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paperSizeUnit' (short) member of 'PrintData'");
771 0 : return false;
772 : }
773 0 : if ((!(Read((&((v__)->printReversed())), msg__, iter__)))) {
774 0 : FatalError("Error deserializing 'printReversed' (bool) member of 'PrintData'");
775 0 : return false;
776 : }
777 : // Sentinel = 'printReversed'
778 0 : if ((!((msg__)->ReadSentinel(iter__, 2750785978)))) {
779 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printReversed' (bool) member of 'PrintData'");
780 0 : return false;
781 : }
782 0 : if ((!(Read((&((v__)->printInColor())), msg__, iter__)))) {
783 0 : FatalError("Error deserializing 'printInColor' (bool) member of 'PrintData'");
784 0 : return false;
785 : }
786 : // Sentinel = 'printInColor'
787 0 : if ((!((msg__)->ReadSentinel(iter__, 3912554141)))) {
788 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printInColor' (bool) member of 'PrintData'");
789 0 : return false;
790 : }
791 0 : if ((!(Read((&((v__)->orientation())), msg__, iter__)))) {
792 0 : FatalError("Error deserializing 'orientation' (int32_t) member of 'PrintData'");
793 0 : return false;
794 : }
795 : // Sentinel = 'orientation'
796 0 : if ((!((msg__)->ReadSentinel(iter__, 759639429)))) {
797 0 : mozilla::ipc::SentinelReadError("Error deserializing 'orientation' (int32_t) member of 'PrintData'");
798 0 : return false;
799 : }
800 0 : if ((!(Read((&((v__)->numCopies())), msg__, iter__)))) {
801 0 : FatalError("Error deserializing 'numCopies' (int32_t) member of 'PrintData'");
802 0 : return false;
803 : }
804 : // Sentinel = 'numCopies'
805 0 : if ((!((msg__)->ReadSentinel(iter__, 207039186)))) {
806 0 : mozilla::ipc::SentinelReadError("Error deserializing 'numCopies' (int32_t) member of 'PrintData'");
807 0 : return false;
808 : }
809 0 : if ((!(Read((&((v__)->printerName())), msg__, iter__)))) {
810 0 : FatalError("Error deserializing 'printerName' (nsString) member of 'PrintData'");
811 0 : return false;
812 : }
813 : // Sentinel = 'printerName'
814 0 : if ((!((msg__)->ReadSentinel(iter__, 114568230)))) {
815 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printerName' (nsString) member of 'PrintData'");
816 0 : return false;
817 : }
818 0 : if ((!(Read((&((v__)->printToFile())), msg__, iter__)))) {
819 0 : FatalError("Error deserializing 'printToFile' (bool) member of 'PrintData'");
820 0 : return false;
821 : }
822 : // Sentinel = 'printToFile'
823 0 : if ((!((msg__)->ReadSentinel(iter__, 1740131543)))) {
824 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printToFile' (bool) member of 'PrintData'");
825 0 : return false;
826 : }
827 0 : if ((!(Read((&((v__)->toFileName())), msg__, iter__)))) {
828 0 : FatalError("Error deserializing 'toFileName' (nsString) member of 'PrintData'");
829 0 : return false;
830 : }
831 : // Sentinel = 'toFileName'
832 0 : if ((!((msg__)->ReadSentinel(iter__, 1204763262)))) {
833 0 : mozilla::ipc::SentinelReadError("Error deserializing 'toFileName' (nsString) member of 'PrintData'");
834 0 : return false;
835 : }
836 0 : if ((!(Read((&((v__)->outputFormat())), msg__, iter__)))) {
837 0 : FatalError("Error deserializing 'outputFormat' (short) member of 'PrintData'");
838 0 : return false;
839 : }
840 : // Sentinel = 'outputFormat'
841 0 : if ((!((msg__)->ReadSentinel(iter__, 1831305826)))) {
842 0 : mozilla::ipc::SentinelReadError("Error deserializing 'outputFormat' (short) member of 'PrintData'");
843 0 : return false;
844 : }
845 0 : if ((!(Read((&((v__)->printPageDelay())), msg__, iter__)))) {
846 0 : FatalError("Error deserializing 'printPageDelay' (int32_t) member of 'PrintData'");
847 0 : return false;
848 : }
849 : // Sentinel = 'printPageDelay'
850 0 : if ((!((msg__)->ReadSentinel(iter__, 3763987991)))) {
851 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printPageDelay' (int32_t) member of 'PrintData'");
852 0 : return false;
853 : }
854 0 : if ((!(Read((&((v__)->resolution())), msg__, iter__)))) {
855 0 : FatalError("Error deserializing 'resolution' (int32_t) member of 'PrintData'");
856 0 : return false;
857 : }
858 : // Sentinel = 'resolution'
859 0 : if ((!((msg__)->ReadSentinel(iter__, 4077768700)))) {
860 0 : mozilla::ipc::SentinelReadError("Error deserializing 'resolution' (int32_t) member of 'PrintData'");
861 0 : return false;
862 : }
863 0 : if ((!(Read((&((v__)->duplex())), msg__, iter__)))) {
864 0 : FatalError("Error deserializing 'duplex' (int32_t) member of 'PrintData'");
865 0 : return false;
866 : }
867 : // Sentinel = 'duplex'
868 0 : if ((!((msg__)->ReadSentinel(iter__, 411036200)))) {
869 0 : mozilla::ipc::SentinelReadError("Error deserializing 'duplex' (int32_t) member of 'PrintData'");
870 0 : return false;
871 : }
872 0 : if ((!(Read((&((v__)->isInitializedFromPrinter())), msg__, iter__)))) {
873 0 : FatalError("Error deserializing 'isInitializedFromPrinter' (bool) member of 'PrintData'");
874 0 : return false;
875 : }
876 : // Sentinel = 'isInitializedFromPrinter'
877 0 : if ((!((msg__)->ReadSentinel(iter__, 934901298)))) {
878 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isInitializedFromPrinter' (bool) member of 'PrintData'");
879 0 : return false;
880 : }
881 0 : if ((!(Read((&((v__)->isInitializedFromPrefs())), msg__, iter__)))) {
882 0 : FatalError("Error deserializing 'isInitializedFromPrefs' (bool) member of 'PrintData'");
883 0 : return false;
884 : }
885 : // Sentinel = 'isInitializedFromPrefs'
886 0 : if ((!((msg__)->ReadSentinel(iter__, 1549019882)))) {
887 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isInitializedFromPrefs' (bool) member of 'PrintData'");
888 0 : return false;
889 : }
890 0 : if ((!(Read((&((v__)->optionFlags())), msg__, iter__)))) {
891 0 : FatalError("Error deserializing 'optionFlags' (int32_t) member of 'PrintData'");
892 0 : return false;
893 : }
894 : // Sentinel = 'optionFlags'
895 0 : if ((!((msg__)->ReadSentinel(iter__, 977126139)))) {
896 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionFlags' (int32_t) member of 'PrintData'");
897 0 : return false;
898 : }
899 0 : if ((!(Read((&((v__)->driverName())), msg__, iter__)))) {
900 0 : FatalError("Error deserializing 'driverName' (nsString) member of 'PrintData'");
901 0 : return false;
902 : }
903 : // Sentinel = 'driverName'
904 0 : if ((!((msg__)->ReadSentinel(iter__, 4069408885)))) {
905 0 : mozilla::ipc::SentinelReadError("Error deserializing 'driverName' (nsString) member of 'PrintData'");
906 0 : return false;
907 : }
908 0 : if ((!(Read((&((v__)->deviceName())), msg__, iter__)))) {
909 0 : FatalError("Error deserializing 'deviceName' (nsString) member of 'PrintData'");
910 0 : return false;
911 : }
912 : // Sentinel = 'deviceName'
913 0 : if ((!((msg__)->ReadSentinel(iter__, 1005543041)))) {
914 0 : mozilla::ipc::SentinelReadError("Error deserializing 'deviceName' (nsString) member of 'PrintData'");
915 0 : return false;
916 : }
917 0 : if ((!(Read((&((v__)->printableWidthInInches())), msg__, iter__)))) {
918 0 : FatalError("Error deserializing 'printableWidthInInches' (double) member of 'PrintData'");
919 0 : return false;
920 : }
921 : // Sentinel = 'printableWidthInInches'
922 0 : if ((!((msg__)->ReadSentinel(iter__, 3490618936)))) {
923 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printableWidthInInches' (double) member of 'PrintData'");
924 0 : return false;
925 : }
926 0 : if ((!(Read((&((v__)->printableHeightInInches())), msg__, iter__)))) {
927 0 : FatalError("Error deserializing 'printableHeightInInches' (double) member of 'PrintData'");
928 0 : return false;
929 : }
930 : // Sentinel = 'printableHeightInInches'
931 0 : if ((!((msg__)->ReadSentinel(iter__, 2512821318)))) {
932 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printableHeightInInches' (double) member of 'PrintData'");
933 0 : return false;
934 : }
935 0 : if ((!(Read((&((v__)->isFramesetDocument())), msg__, iter__)))) {
936 0 : FatalError("Error deserializing 'isFramesetDocument' (bool) member of 'PrintData'");
937 0 : return false;
938 : }
939 : // Sentinel = 'isFramesetDocument'
940 0 : if ((!((msg__)->ReadSentinel(iter__, 2749193424)))) {
941 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isFramesetDocument' (bool) member of 'PrintData'");
942 0 : return false;
943 : }
944 0 : if ((!(Read((&((v__)->isFramesetFrameSelected())), msg__, iter__)))) {
945 0 : FatalError("Error deserializing 'isFramesetFrameSelected' (bool) member of 'PrintData'");
946 0 : return false;
947 : }
948 : // Sentinel = 'isFramesetFrameSelected'
949 0 : if ((!((msg__)->ReadSentinel(iter__, 3597767852)))) {
950 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isFramesetFrameSelected' (bool) member of 'PrintData'");
951 0 : return false;
952 : }
953 0 : if ((!(Read((&((v__)->isIFrameSelected())), msg__, iter__)))) {
954 0 : FatalError("Error deserializing 'isIFrameSelected' (bool) member of 'PrintData'");
955 0 : return false;
956 : }
957 : // Sentinel = 'isIFrameSelected'
958 0 : if ((!((msg__)->ReadSentinel(iter__, 43475451)))) {
959 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isIFrameSelected' (bool) member of 'PrintData'");
960 0 : return false;
961 : }
962 0 : if ((!(Read((&((v__)->isRangeSelection())), msg__, iter__)))) {
963 0 : FatalError("Error deserializing 'isRangeSelection' (bool) member of 'PrintData'");
964 0 : return false;
965 : }
966 : // Sentinel = 'isRangeSelection'
967 0 : if ((!((msg__)->ReadSentinel(iter__, 1332533775)))) {
968 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isRangeSelection' (bool) member of 'PrintData'");
969 0 : return false;
970 : }
971 0 : if ((!(Read((&((v__)->devModeData())), msg__, iter__)))) {
972 0 : FatalError("Error deserializing 'devModeData' (uint8_t[]) member of 'PrintData'");
973 0 : return false;
974 : }
975 : // Sentinel = 'devModeData'
976 0 : if ((!((msg__)->ReadSentinel(iter__, 115925043)))) {
977 0 : mozilla::ipc::SentinelReadError("Error deserializing 'devModeData' (uint8_t[]) member of 'PrintData'");
978 0 : return false;
979 : }
980 0 : if ((!(Read((&((v__)->GTKPrintSettings())), msg__, iter__)))) {
981 0 : FatalError("Error deserializing 'GTKPrintSettings' (CStringKeyValue[]) member of 'PrintData'");
982 0 : return false;
983 : }
984 : // Sentinel = 'GTKPrintSettings'
985 0 : if ((!((msg__)->ReadSentinel(iter__, 3468906358)))) {
986 0 : mozilla::ipc::SentinelReadError("Error deserializing 'GTKPrintSettings' (CStringKeyValue[]) member of 'PrintData'");
987 0 : return false;
988 : }
989 0 : if ((!(Read((&((v__)->printJobName())), msg__, iter__)))) {
990 0 : FatalError("Error deserializing 'printJobName' (nsString) member of 'PrintData'");
991 0 : return false;
992 : }
993 : // Sentinel = 'printJobName'
994 0 : if ((!((msg__)->ReadSentinel(iter__, 2875659923)))) {
995 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printJobName' (nsString) member of 'PrintData'");
996 0 : return false;
997 : }
998 0 : if ((!(Read((&((v__)->printAllPages())), msg__, iter__)))) {
999 0 : FatalError("Error deserializing 'printAllPages' (bool) member of 'PrintData'");
1000 0 : return false;
1001 : }
1002 : // Sentinel = 'printAllPages'
1003 0 : if ((!((msg__)->ReadSentinel(iter__, 1278004999)))) {
1004 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printAllPages' (bool) member of 'PrintData'");
1005 0 : return false;
1006 : }
1007 0 : if ((!(Read((&((v__)->mustCollate())), msg__, iter__)))) {
1008 0 : FatalError("Error deserializing 'mustCollate' (bool) member of 'PrintData'");
1009 0 : return false;
1010 : }
1011 : // Sentinel = 'mustCollate'
1012 0 : if ((!((msg__)->ReadSentinel(iter__, 1240412784)))) {
1013 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mustCollate' (bool) member of 'PrintData'");
1014 0 : return false;
1015 : }
1016 0 : if ((!(Read((&((v__)->disposition())), msg__, iter__)))) {
1017 0 : FatalError("Error deserializing 'disposition' (nsString) member of 'PrintData'");
1018 0 : return false;
1019 : }
1020 : // Sentinel = 'disposition'
1021 0 : if ((!((msg__)->ReadSentinel(iter__, 143184598)))) {
1022 0 : mozilla::ipc::SentinelReadError("Error deserializing 'disposition' (nsString) member of 'PrintData'");
1023 0 : return false;
1024 : }
1025 0 : if ((!(Read((&((v__)->pagesAcross())), msg__, iter__)))) {
1026 0 : FatalError("Error deserializing 'pagesAcross' (short) member of 'PrintData'");
1027 0 : return false;
1028 : }
1029 : // Sentinel = 'pagesAcross'
1030 0 : if ((!((msg__)->ReadSentinel(iter__, 2231447816)))) {
1031 0 : mozilla::ipc::SentinelReadError("Error deserializing 'pagesAcross' (short) member of 'PrintData'");
1032 0 : return false;
1033 : }
1034 0 : if ((!(Read((&((v__)->pagesDown())), msg__, iter__)))) {
1035 0 : FatalError("Error deserializing 'pagesDown' (short) member of 'PrintData'");
1036 0 : return false;
1037 : }
1038 : // Sentinel = 'pagesDown'
1039 0 : if ((!((msg__)->ReadSentinel(iter__, 2238219045)))) {
1040 0 : mozilla::ipc::SentinelReadError("Error deserializing 'pagesDown' (short) member of 'PrintData'");
1041 0 : return false;
1042 : }
1043 0 : if ((!(Read((&((v__)->printTime())), msg__, iter__)))) {
1044 0 : FatalError("Error deserializing 'printTime' (double) member of 'PrintData'");
1045 0 : return false;
1046 : }
1047 : // Sentinel = 'printTime'
1048 0 : if ((!((msg__)->ReadSentinel(iter__, 1825405227)))) {
1049 0 : mozilla::ipc::SentinelReadError("Error deserializing 'printTime' (double) member of 'PrintData'");
1050 0 : return false;
1051 : }
1052 0 : if ((!(Read((&((v__)->detailedErrorReporting())), msg__, iter__)))) {
1053 0 : FatalError("Error deserializing 'detailedErrorReporting' (bool) member of 'PrintData'");
1054 0 : return false;
1055 : }
1056 : // Sentinel = 'detailedErrorReporting'
1057 0 : if ((!((msg__)->ReadSentinel(iter__, 2470597122)))) {
1058 0 : mozilla::ipc::SentinelReadError("Error deserializing 'detailedErrorReporting' (bool) member of 'PrintData'");
1059 0 : return false;
1060 : }
1061 0 : if ((!(Read((&((v__)->faxNumber())), msg__, iter__)))) {
1062 0 : FatalError("Error deserializing 'faxNumber' (nsString) member of 'PrintData'");
1063 0 : return false;
1064 : }
1065 : // Sentinel = 'faxNumber'
1066 0 : if ((!((msg__)->ReadSentinel(iter__, 286348047)))) {
1067 0 : mozilla::ipc::SentinelReadError("Error deserializing 'faxNumber' (nsString) member of 'PrintData'");
1068 0 : return false;
1069 : }
1070 0 : if ((!(Read((&((v__)->addHeaderAndFooter())), msg__, iter__)))) {
1071 0 : FatalError("Error deserializing 'addHeaderAndFooter' (bool) member of 'PrintData'");
1072 0 : return false;
1073 : }
1074 : // Sentinel = 'addHeaderAndFooter'
1075 0 : if ((!((msg__)->ReadSentinel(iter__, 936511658)))) {
1076 0 : mozilla::ipc::SentinelReadError("Error deserializing 'addHeaderAndFooter' (bool) member of 'PrintData'");
1077 0 : return false;
1078 : }
1079 0 : if ((!(Read((&((v__)->fileNameExtensionHidden())), msg__, iter__)))) {
1080 0 : FatalError("Error deserializing 'fileNameExtensionHidden' (bool) member of 'PrintData'");
1081 0 : return false;
1082 : }
1083 : // Sentinel = 'fileNameExtensionHidden'
1084 0 : if ((!((msg__)->ReadSentinel(iter__, 3429991713)))) {
1085 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileNameExtensionHidden' (bool) member of 'PrintData'");
1086 0 : return false;
1087 : }
1088 0 : if ((!(Read((&((v__)->scalingFactor())), msg__, iter__)))) {
1089 0 : FatalError("Error deserializing 'scalingFactor' (float) member of 'PrintData'");
1090 0 : return false;
1091 : }
1092 : // Sentinel = 'scalingFactor'
1093 0 : if ((!((msg__)->ReadSentinel(iter__, 759930239)))) {
1094 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scalingFactor' (float) member of 'PrintData'");
1095 0 : return false;
1096 : }
1097 0 : if ((!(Read((&((v__)->widthScale())), msg__, iter__)))) {
1098 0 : FatalError("Error deserializing 'widthScale' (float) member of 'PrintData'");
1099 0 : return false;
1100 : }
1101 : // Sentinel = 'widthScale'
1102 0 : if ((!((msg__)->ReadSentinel(iter__, 692534408)))) {
1103 0 : mozilla::ipc::SentinelReadError("Error deserializing 'widthScale' (float) member of 'PrintData'");
1104 0 : return false;
1105 : }
1106 0 : if ((!(Read((&((v__)->heightScale())), msg__, iter__)))) {
1107 0 : FatalError("Error deserializing 'heightScale' (float) member of 'PrintData'");
1108 0 : return false;
1109 : }
1110 : // Sentinel = 'heightScale'
1111 0 : if ((!((msg__)->ReadSentinel(iter__, 1007139770)))) {
1112 0 : mozilla::ipc::SentinelReadError("Error deserializing 'heightScale' (float) member of 'PrintData'");
1113 0 : return false;
1114 : }
1115 0 : if ((!(Read((&((v__)->adjustedPaperWidth())), msg__, iter__)))) {
1116 0 : FatalError("Error deserializing 'adjustedPaperWidth' (double) member of 'PrintData'");
1117 0 : return false;
1118 : }
1119 : // Sentinel = 'adjustedPaperWidth'
1120 0 : if ((!((msg__)->ReadSentinel(iter__, 2163992630)))) {
1121 0 : mozilla::ipc::SentinelReadError("Error deserializing 'adjustedPaperWidth' (double) member of 'PrintData'");
1122 0 : return false;
1123 : }
1124 0 : if ((!(Read((&((v__)->adjustedPaperHeight())), msg__, iter__)))) {
1125 0 : FatalError("Error deserializing 'adjustedPaperHeight' (double) member of 'PrintData'");
1126 0 : return false;
1127 : }
1128 : // Sentinel = 'adjustedPaperHeight'
1129 0 : if ((!((msg__)->ReadSentinel(iter__, 3110257834)))) {
1130 0 : mozilla::ipc::SentinelReadError("Error deserializing 'adjustedPaperHeight' (double) member of 'PrintData'");
1131 0 : return false;
1132 : }
1133 0 : return true;
1134 : }
1135 :
1136 0 : auto PPrintSettingsDialogParent::Write(
1137 : const PrintDataOrNSResult& v__,
1138 : Message* msg__) -> void
1139 : {
1140 : typedef PrintDataOrNSResult type__;
1141 0 : Write(int((v__).type()), msg__);
1142 : // Sentinel = 'PrintDataOrNSResult'
1143 0 : (msg__)->WriteSentinel(201504419);
1144 :
1145 0 : switch ((v__).type()) {
1146 : case type__::TPrintData:
1147 : {
1148 0 : Write((v__).get_PrintData(), msg__);
1149 : // Sentinel = 'TPrintData'
1150 0 : (msg__)->WriteSentinel(233443931);
1151 0 : return;
1152 : }
1153 : case type__::Tnsresult:
1154 : {
1155 0 : Write((v__).get_nsresult(), msg__);
1156 : // Sentinel = 'Tnsresult'
1157 0 : (msg__)->WriteSentinel(2293764539);
1158 0 : return;
1159 : }
1160 : default:
1161 : {
1162 0 : FatalError("unknown union type");
1163 0 : return;
1164 : }
1165 : }
1166 : }
1167 :
1168 0 : auto PPrintSettingsDialogParent::Read(
1169 : PrintDataOrNSResult* v__,
1170 : const Message* msg__,
1171 : PickleIterator* iter__) -> bool
1172 : {
1173 : typedef PrintDataOrNSResult type__;
1174 : int type;
1175 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1176 0 : mozilla::ipc::UnionTypeReadError("PrintDataOrNSResult");
1177 0 : return false;
1178 : }
1179 : // Sentinel = 'PrintDataOrNSResult'
1180 0 : if ((!((msg__)->ReadSentinel(iter__, 201504419)))) {
1181 0 : mozilla::ipc::SentinelReadError("PrintDataOrNSResult");
1182 0 : return false;
1183 : }
1184 :
1185 0 : switch (type) {
1186 : case type__::TPrintData:
1187 : {
1188 0 : PrintData tmp = PrintData();
1189 0 : (*(v__)) = tmp;
1190 0 : if ((!(Read((&((v__)->get_PrintData())), msg__, iter__)))) {
1191 0 : FatalError("Error deserializing Union type");
1192 0 : return false;
1193 : }
1194 : // Sentinel = 'TPrintData'
1195 0 : if ((!((msg__)->ReadSentinel(iter__, 233443931)))) {
1196 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1197 0 : return false;
1198 : }
1199 0 : return true;
1200 : }
1201 : case type__::Tnsresult:
1202 : {
1203 0 : nsresult tmp = nsresult();
1204 0 : (*(v__)) = tmp;
1205 0 : if ((!(Read((&((v__)->get_nsresult())), msg__, iter__)))) {
1206 0 : FatalError("Error deserializing Union type");
1207 0 : return false;
1208 : }
1209 : // Sentinel = 'Tnsresult'
1210 0 : if ((!((msg__)->ReadSentinel(iter__, 2293764539)))) {
1211 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1212 0 : return false;
1213 : }
1214 0 : return true;
1215 : }
1216 : default:
1217 : {
1218 0 : FatalError("unknown union type");
1219 0 : return false;
1220 : }
1221 : }
1222 : }
1223 :
1224 0 : auto PPrintSettingsDialogParent::Write(
1225 : const nsTArray<CStringKeyValue>& v__,
1226 : Message* msg__) -> void
1227 : {
1228 0 : uint32_t length = (v__).Length();
1229 0 : Write(length, msg__);
1230 : // Sentinel = ('length', 'CStringKeyValue[]')
1231 0 : (msg__)->WriteSentinel(1519554322);
1232 :
1233 0 : for (auto& elem : v__) {
1234 0 : Write(elem, msg__);
1235 : // Sentinel = 'CStringKeyValue[]'
1236 0 : (msg__)->WriteSentinel(166419805);
1237 : }
1238 0 : }
1239 :
1240 0 : auto PPrintSettingsDialogParent::Read(
1241 : nsTArray<CStringKeyValue>* v__,
1242 : const Message* msg__,
1243 : PickleIterator* iter__) -> bool
1244 : {
1245 0 : nsTArray<CStringKeyValue> fa;
1246 : uint32_t length;
1247 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1248 0 : mozilla::ipc::ArrayLengthReadError("CStringKeyValue[]");
1249 0 : return false;
1250 : }
1251 : // Sentinel = ('length', 'CStringKeyValue[]')
1252 0 : if ((!((msg__)->ReadSentinel(iter__, 1519554322)))) {
1253 0 : mozilla::ipc::SentinelReadError("CStringKeyValue[]");
1254 0 : return false;
1255 : }
1256 :
1257 0 : CStringKeyValue* elems = (fa).AppendElements(length);
1258 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1259 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1260 0 : FatalError("Error deserializing 'CStringKeyValue[i]'");
1261 0 : return false;
1262 : }
1263 : // Sentinel = 'CStringKeyValue[]'
1264 0 : if ((!((msg__)->ReadSentinel(iter__, 166419805)))) {
1265 0 : mozilla::ipc::SentinelReadError("Error deserializing 'CStringKeyValue[i]'");
1266 0 : return false;
1267 : }
1268 : }
1269 0 : (v__)->SwapElements(fa);
1270 0 : return true;
1271 : }
1272 :
1273 0 : auto PPrintSettingsDialogParent::Write(
1274 : const PPrintSettingsDialogParent* v__,
1275 : Message* msg__,
1276 : bool nullable__) -> void
1277 : {
1278 : int32_t id;
1279 0 : if ((!(v__))) {
1280 0 : if ((!(nullable__))) {
1281 0 : FatalError("NULL actor value passed to non-nullable param");
1282 : }
1283 0 : id = 0;
1284 : }
1285 : else {
1286 0 : id = (v__)->Id();
1287 0 : if ((1) == (id)) {
1288 0 : FatalError("actor has been |delete|d");
1289 : }
1290 : }
1291 :
1292 0 : Write(id, msg__);
1293 0 : }
1294 :
1295 0 : auto PPrintSettingsDialogParent::Read(
1296 : PPrintSettingsDialogParent** v__,
1297 : const Message* msg__,
1298 : PickleIterator* iter__,
1299 : bool nullable__) -> bool
1300 : {
1301 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPrintSettingsDialog", PPrintSettingsDialogMsgStart);
1302 0 : if ((actor).isNothing()) {
1303 0 : return false;
1304 : }
1305 :
1306 0 : (*(v__)) = static_cast<PPrintSettingsDialogParent*>((actor).value());
1307 0 : return true;
1308 : }
1309 :
1310 0 : auto PPrintSettingsDialogParent::Write(
1311 : const PRemotePrintJobParent* v__,
1312 : Message* msg__,
1313 : bool nullable__) -> void
1314 : {
1315 : int32_t id;
1316 0 : if ((!(v__))) {
1317 0 : if ((!(nullable__))) {
1318 0 : FatalError("NULL actor value passed to non-nullable param");
1319 : }
1320 0 : id = 0;
1321 : }
1322 : else {
1323 0 : id = (v__)->Id();
1324 0 : if ((1) == (id)) {
1325 0 : FatalError("actor has been |delete|d");
1326 : }
1327 : }
1328 :
1329 0 : Write(id, msg__);
1330 0 : }
1331 :
1332 0 : auto PPrintSettingsDialogParent::Read(
1333 : PRemotePrintJobParent** v__,
1334 : const Message* msg__,
1335 : PickleIterator* iter__,
1336 : bool nullable__) -> bool
1337 : {
1338 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PRemotePrintJob", PRemotePrintJobMsgStart);
1339 0 : if ((actor).isNothing()) {
1340 0 : return false;
1341 : }
1342 :
1343 0 : (*(v__)) = static_cast<PRemotePrintJobParent*>((actor).value());
1344 0 : return true;
1345 : }
1346 :
1347 :
1348 :
1349 : } // namespace embedding
1350 : } // namespace mozilla
|