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