Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PresState.cpp
Line
Count
Source (jump to first uncovered line)
1
//
2
// Automatically generated by ipdlc.
3
// Edit at your own risk
4
//
5
6
7
#include "mozilla/PresState.h"
8
9
10
//-----------------------------------------------------------------------------
11
// Method definitions for the IPDL type |struct SelectContentData|
12
//
13
namespace mozilla {
14
auto SelectContentData::operator==(const SelectContentData& _o) const -> bool
15
0
{
16
0
    if ((!((indices()) == ((_o).indices())))) {
17
0
        return false;
18
0
    }
19
0
    if ((!((values()) == ((_o).values())))) {
20
0
        return false;
21
0
    }
22
0
    return true;
23
0
}
24
25
auto SelectContentData::operator!=(const SelectContentData& _o) const -> bool
26
0
{
27
0
    return (!(operator==(_o)));
28
0
}
29
30
} // namespace mozilla
31
32
namespace mozilla {
33
namespace ipc {
34
auto IPDLParamTraits<mozilla::SelectContentData>::Write(
35
        IPC::Message* aMsg,
36
        mozilla::ipc::IProtocol* aActor,
37
        const paramType& aVar) -> void
38
0
{
39
0
    WriteIPDLParam(aMsg, aActor, (aVar).indices());
40
0
    // Sentinel = 'indices'
41
0
    (aMsg)->WriteSentinel(1264754808);
42
0
    WriteIPDLParam(aMsg, aActor, (aVar).values());
43
0
    // Sentinel = 'values'
44
0
    (aMsg)->WriteSentinel(3006433652);
45
0
}
46
47
auto IPDLParamTraits<mozilla::SelectContentData>::Read(
48
        const IPC::Message* aMsg,
49
        PickleIterator* aIter,
50
        mozilla::ipc::IProtocol* aActor,
51
        paramType* aVar) -> bool
52
0
{
53
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->indices())))))) {
54
0
        (aActor)->FatalError("Error deserializing 'indices' (uint32_t[]) member of 'SelectContentData'");
55
0
        return false;
56
0
    }
57
0
    // Sentinel = 'indices'
58
0
    if ((!((aMsg)->ReadSentinel(aIter, 1264754808)))) {
59
0
        mozilla::ipc::SentinelReadError("Error deserializing 'indices' (uint32_t[]) member of 'SelectContentData'");
60
0
        return false;
61
0
    }
62
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->values())))))) {
63
0
        (aActor)->FatalError("Error deserializing 'values' (nsString[]) member of 'SelectContentData'");
64
0
        return false;
65
0
    }
66
0
    // Sentinel = 'values'
67
0
    if ((!((aMsg)->ReadSentinel(aIter, 3006433652)))) {
68
0
        mozilla::ipc::SentinelReadError("Error deserializing 'values' (nsString[]) member of 'SelectContentData'");
69
0
        return false;
70
0
    }
71
0
    return true;
72
0
}
73
74
} // namespace ipc
75
} // namespace mozilla
76
77
//-----------------------------------------------------------------------------
78
// Method definitions for the IPDL type |struct CheckedContentData|
79
//
80
namespace mozilla {
81
auto CheckedContentData::operator==(const CheckedContentData& _o) const -> bool
82
0
{
83
0
    if ((!((checked()) == ((_o).checked())))) {
84
0
        return false;
85
0
    }
86
0
    return true;
87
0
}
88
89
auto CheckedContentData::operator!=(const CheckedContentData& _o) const -> bool
90
0
{
91
0
    return (!(operator==(_o)));
92
0
}
93
94
} // namespace mozilla
95
96
namespace mozilla {
97
namespace ipc {
98
auto IPDLParamTraits<mozilla::CheckedContentData>::Write(
99
        IPC::Message* aMsg,
100
        mozilla::ipc::IProtocol* aActor,
101
        const paramType& aVar) -> void
102
0
{
103
0
    WriteIPDLParam(aMsg, aActor, (aVar).checked());
104
0
    // Sentinel = 'checked'
105
0
    (aMsg)->WriteSentinel(884550436);
106
0
}
107
108
auto IPDLParamTraits<mozilla::CheckedContentData>::Read(
109
        const IPC::Message* aMsg,
110
        PickleIterator* aIter,
111
        mozilla::ipc::IProtocol* aActor,
112
        paramType* aVar) -> bool
113
0
{
114
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->checked())))))) {
115
0
        (aActor)->FatalError("Error deserializing 'checked' (bool) member of 'CheckedContentData'");
116
0
        return false;
117
0
    }
118
0
    // Sentinel = 'checked'
119
0
    if ((!((aMsg)->ReadSentinel(aIter, 884550436)))) {
120
0
        mozilla::ipc::SentinelReadError("Error deserializing 'checked' (bool) member of 'CheckedContentData'");
121
0
        return false;
122
0
    }
123
0
    return true;
124
0
}
125
126
} // namespace ipc
127
} // namespace mozilla
128
129
//-----------------------------------------------------------------------------
130
// Method definitions for the IPDL type |union FileContentData|
131
//
132
namespace mozilla {
133
auto FileContentData::MaybeDestroy(Type aNewType) -> bool
134
0
{
135
0
    if ((mType) == (T__None)) {
136
0
        return true;
137
0
    }
138
0
    if ((mType) == (aNewType)) {
139
0
        return false;
140
0
    }
141
0
    switch (mType) {
142
0
    case TBlobImpl:
143
0
        {
144
0
            (ptr_BlobImpl())->~BlobImpl__tdef();
145
0
            break;
146
0
        }
147
0
    case TnsString:
148
0
        {
149
0
            (ptr_nsString())->~nsString__tdef();
150
0
            break;
151
0
        }
152
0
    default:
153
0
        {
154
0
            mozilla::ipc::LogicError("not reached");
155
0
            break;
156
0
        }
157
0
    }
158
0
    return true;
159
0
}
160
161
MOZ_IMPLICIT FileContentData::FileContentData(BlobImpl* aOther)
162
0
{
163
0
    new (mozilla::KnownNotNull, ptr_BlobImpl()) RefPtr<BlobImpl>(aOther);
164
0
    mType = TBlobImpl;
165
0
}
166
167
MOZ_IMPLICIT FileContentData::FileContentData(RefPtr<BlobImpl>&& aOther)
168
0
{
169
0
    new (mozilla::KnownNotNull, ptr_BlobImpl()) RefPtr<BlobImpl>(std::move(aOther));
170
0
    mType = TBlobImpl;
171
0
}
172
173
MOZ_IMPLICIT FileContentData::FileContentData(const nsString& aOther)
174
0
{
175
0
    new (mozilla::KnownNotNull, ptr_nsString()) nsString(aOther);
176
0
    mType = TnsString;
177
0
}
178
179
MOZ_IMPLICIT FileContentData::FileContentData(nsString&& aOther)
180
0
{
181
0
    new (mozilla::KnownNotNull, ptr_nsString()) nsString(std::move(aOther));
182
0
    mType = TnsString;
183
0
}
184
185
MOZ_IMPLICIT FileContentData::FileContentData(const FileContentData& aOther)
186
0
{
187
0
    (aOther).AssertSanity();
188
0
    switch ((aOther).type()) {
189
0
    case TBlobImpl:
190
0
        {
191
0
            new (mozilla::KnownNotNull, ptr_BlobImpl()) RefPtr<BlobImpl>((aOther).get_BlobImpl());
192
0
            break;
193
0
        }
194
0
    case TnsString:
195
0
        {
196
0
            new (mozilla::KnownNotNull, ptr_nsString()) nsString((aOther).get_nsString());
197
0
            break;
198
0
        }
199
0
    case T__None:
200
0
        {
201
0
            break;
202
0
        }
203
0
    default:
204
0
        {
205
0
            mozilla::ipc::LogicError("unreached");
206
0
            return;
207
0
        }
208
0
    }
209
0
    mType = (aOther).type();
210
0
}
211
212
MOZ_IMPLICIT FileContentData::FileContentData(FileContentData&& aOther)
213
0
{
214
0
    (aOther).AssertSanity();
215
0
    Type t = (aOther).type();
216
0
    switch (t) {
217
0
    case TBlobImpl:
218
0
        {
219
0
            new (mozilla::KnownNotNull, ptr_BlobImpl()) RefPtr<BlobImpl>(std::move((aOther).get_BlobImpl()));
220
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
221
0
            break;
222
0
        }
223
0
    case TnsString:
224
0
        {
225
0
            new (mozilla::KnownNotNull, ptr_nsString()) nsString(std::move((aOther).get_nsString()));
226
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
227
0
            break;
228
0
        }
229
0
    case T__None:
230
0
        {
231
0
            break;
232
0
        }
233
0
    default:
234
0
        {
235
0
            mozilla::ipc::LogicError("unreached");
236
0
            return;
237
0
        }
238
0
    }
239
0
    (aOther).mType = T__None;
240
0
    mType = t;
241
0
}
242
243
FileContentData::~FileContentData()
244
0
{
245
0
    static_cast<void>(MaybeDestroy(T__None));
246
0
}
247
248
auto FileContentData::operator=(BlobImpl* aRhs) -> FileContentData&
249
0
{
250
0
    if (MaybeDestroy(TBlobImpl)) {
251
0
        new (mozilla::KnownNotNull, ptr_BlobImpl()) RefPtr<BlobImpl>;
252
0
    }
253
0
    (*(ptr_BlobImpl())) = aRhs;
254
0
    mType = TBlobImpl;
255
0
    return (*(this));
256
0
}
257
258
auto FileContentData::operator=(RefPtr<BlobImpl>&& aRhs) -> FileContentData&
259
0
{
260
0
    if (MaybeDestroy(TBlobImpl)) {
261
0
        new (mozilla::KnownNotNull, ptr_BlobImpl()) RefPtr<BlobImpl>;
262
0
    }
263
0
    (*(ptr_BlobImpl())) = std::move(aRhs);
264
0
    mType = TBlobImpl;
265
0
    return (*(this));
266
0
}
267
268
auto FileContentData::operator=(const nsString& aRhs) -> FileContentData&
269
0
{
270
0
    if (MaybeDestroy(TnsString)) {
271
0
        new (mozilla::KnownNotNull, ptr_nsString()) nsString;
272
0
    }
273
0
    (*(ptr_nsString())) = aRhs;
274
0
    mType = TnsString;
275
0
    return (*(this));
276
0
}
277
278
auto FileContentData::operator=(nsString&& aRhs) -> FileContentData&
279
0
{
280
0
    if (MaybeDestroy(TnsString)) {
281
0
        new (mozilla::KnownNotNull, ptr_nsString()) nsString;
282
0
    }
283
0
    (*(ptr_nsString())) = std::move(aRhs);
284
0
    mType = TnsString;
285
0
    return (*(this));
286
0
}
287
288
auto FileContentData::operator=(const FileContentData& aRhs) -> FileContentData&
289
0
{
290
0
    (aRhs).AssertSanity();
291
0
    Type t = (aRhs).type();
292
0
    switch (t) {
293
0
    case TBlobImpl:
294
0
        {
295
0
            if (MaybeDestroy(t)) {
296
0
                new (mozilla::KnownNotNull, ptr_BlobImpl()) RefPtr<BlobImpl>;
297
0
            }
298
0
            (*(ptr_BlobImpl())) = (aRhs).get_BlobImpl();
299
0
            break;
300
0
        }
301
0
    case TnsString:
302
0
        {
303
0
            if (MaybeDestroy(t)) {
304
0
                new (mozilla::KnownNotNull, ptr_nsString()) nsString;
305
0
            }
306
0
            (*(ptr_nsString())) = (aRhs).get_nsString();
307
0
            break;
308
0
        }
309
0
    case T__None:
310
0
        {
311
0
            static_cast<void>(MaybeDestroy(t));
312
0
            break;
313
0
        }
314
0
    default:
315
0
        {
316
0
            mozilla::ipc::LogicError("unreached");
317
0
            break;
318
0
        }
319
0
    }
320
0
    mType = t;
321
0
    return (*(this));
322
0
}
323
324
auto FileContentData::operator=(FileContentData&& aRhs) -> FileContentData&
325
0
{
326
0
    (aRhs).AssertSanity();
327
0
    Type t = (aRhs).type();
328
0
    switch (t) {
329
0
    case TBlobImpl:
330
0
        {
331
0
            if (MaybeDestroy(t)) {
332
0
                new (mozilla::KnownNotNull, ptr_BlobImpl()) RefPtr<BlobImpl>;
333
0
            }
334
0
            (*(ptr_BlobImpl())) = std::move((aRhs).get_BlobImpl());
335
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
336
0
            break;
337
0
        }
338
0
    case TnsString:
339
0
        {
340
0
            if (MaybeDestroy(t)) {
341
0
                new (mozilla::KnownNotNull, ptr_nsString()) nsString;
342
0
            }
343
0
            (*(ptr_nsString())) = std::move((aRhs).get_nsString());
344
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
345
0
            break;
346
0
        }
347
0
    case T__None:
348
0
        {
349
0
            static_cast<void>(MaybeDestroy(t));
350
0
            break;
351
0
        }
352
0
    default:
353
0
        {
354
0
            mozilla::ipc::LogicError("unreached");
355
0
            break;
356
0
        }
357
0
    }
358
0
    (aRhs).mType = T__None;
359
0
    mType = t;
360
0
    return (*(this));
361
0
}
362
363
auto FileContentData::operator==(BlobImpl* aRhs) const -> bool
364
0
{
365
0
    return (get_BlobImpl()) == (aRhs);
366
0
}
367
368
auto FileContentData::operator==(const nsString& aRhs) const -> bool
369
0
{
370
0
    return (get_nsString()) == (aRhs);
371
0
}
372
373
auto FileContentData::operator==(const FileContentData& aRhs) const -> bool
374
0
{
375
0
    if ((type()) != ((aRhs).type())) {
376
0
        return false;
377
0
    }
378
0
379
0
    switch (type()) {
380
0
    case TBlobImpl:
381
0
        {
382
0
            return (get_BlobImpl()) == ((aRhs).get_BlobImpl());
383
0
        }
384
0
    case TnsString:
385
0
        {
386
0
            return (get_nsString()) == ((aRhs).get_nsString());
387
0
        }
388
0
    default:
389
0
        {
390
0
            mozilla::ipc::LogicError("unreached");
391
0
            return false;
392
0
        }
393
0
    }
394
0
}
395
396
auto FileContentData::get(RefPtr<BlobImpl>* aOutValue) const -> void
397
0
{
398
0
    (*(aOutValue)) = get_BlobImpl();
399
0
}
400
401
auto FileContentData::get(nsString* aOutValue) const -> void
402
0
{
403
0
    (*(aOutValue)) = get_nsString();
404
0
}
405
406
} // namespace mozilla
407
408
namespace mozilla {
409
namespace ipc {
410
auto IPDLParamTraits<mozilla::FileContentData>::Write(
411
        IPC::Message* aMsg,
412
        mozilla::ipc::IProtocol* aActor,
413
        const paramType& aVar) -> void
414
{
415
    typedef mozilla::FileContentData union__;
416
    int type;
417
    type = (aVar).type();
418
    WriteIPDLParam(aMsg, aActor, type);
419
    // Sentinel = 'FileContentData'
420
    (aMsg)->WriteSentinel(1216579674);
421
422
    switch (type) {
423
    case union__::TBlobImpl:
424
        {
425
            WriteIPDLParam(aMsg, aActor, (aVar).get_BlobImpl());
426
            // Sentinel = 'TBlobImpl'
427
            (aMsg)->WriteSentinel(1306182370);
428
            return;
429
        }
430
    case union__::TnsString:
431
        {
432
            WriteIPDLParam(aMsg, aActor, (aVar).get_nsString());
433
            // Sentinel = 'TnsString'
434
            (aMsg)->WriteSentinel(2161603959);
435
            return;
436
        }
437
    default:
438
        {
439
            (aActor)->FatalError("unknown union type");
440
            return;
441
        }
442
    }
443
}
444
445
auto IPDLParamTraits<mozilla::FileContentData>::Read(
446
        const IPC::Message* aMsg,
447
        PickleIterator* aIter,
448
        mozilla::ipc::IProtocol* aActor,
449
        paramType* aVar) -> bool
450
0
{
451
0
    typedef mozilla::FileContentData union__;
452
0
    int type;
453
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
454
0
        (aActor)->FatalError("Error deserializing type of union FileContentData");
455
0
        return false;
456
0
    }
457
0
    // Sentinel = 'FileContentData'
458
0
    if ((!((aMsg)->ReadSentinel(aIter, 1216579674)))) {
459
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union FileContentData");
460
0
        return false;
461
0
    }
462
0
463
0
    switch (type) {
464
0
    case union__::TBlobImpl:
465
0
        {
466
0
            RefPtr<mozilla::dom::BlobImpl> tmp = RefPtr<mozilla::dom::BlobImpl>();
467
0
            (*(aVar)) = tmp;
468
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_BlobImpl())))))) {
469
0
                (aActor)->FatalError("Error deserializing variant TBlobImpl of union FileContentData");
470
0
                return false;
471
0
            }
472
0
            // Sentinel = 'TBlobImpl'
473
0
            if ((!((aMsg)->ReadSentinel(aIter, 1306182370)))) {
474
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TBlobImpl of union FileContentData");
475
0
                return false;
476
0
            }
477
0
            return true;
478
0
        }
479
0
    case union__::TnsString:
480
0
        {
481
0
            nsString tmp = nsString();
482
0
            (*(aVar)) = tmp;
483
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_nsString())))))) {
484
0
                (aActor)->FatalError("Error deserializing variant TnsString of union FileContentData");
485
0
                return false;
486
0
            }
487
0
            // Sentinel = 'TnsString'
488
0
            if ((!((aMsg)->ReadSentinel(aIter, 2161603959)))) {
489
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TnsString of union FileContentData");
490
0
                return false;
491
0
            }
492
0
            return true;
493
0
        }
494
0
    default:
495
0
        {
496
0
            (aActor)->FatalError("unknown union type");
497
0
            return false;
498
0
        }
499
0
    }
500
0
}
501
502
} // namespace ipc
503
} // namespace mozilla
504
505
//-----------------------------------------------------------------------------
506
// Method definitions for the IPDL type |union PresContentData|
507
//
508
namespace mozilla {
509
auto PresContentData::MaybeDestroy(Type aNewType) -> bool
510
0
{
511
0
    if ((mType) == (T__None)) {
512
0
        return true;
513
0
    }
514
0
    if ((mType) == (aNewType)) {
515
0
        return false;
516
0
    }
517
0
    switch (mType) {
518
0
    case Tvoid_t:
519
0
        {
520
0
            (ptr_void_t())->~void_t__tdef();
521
0
            break;
522
0
        }
523
0
    case TnsString:
524
0
        {
525
0
            (ptr_nsString())->~nsString__tdef();
526
0
            break;
527
0
        }
528
0
    case TSelectContentData:
529
0
        {
530
0
            (ptr_SelectContentData())->~SelectContentData__tdef();
531
0
            break;
532
0
        }
533
0
    case TCheckedContentData:
534
0
        {
535
0
            (ptr_CheckedContentData())->~CheckedContentData__tdef();
536
0
            break;
537
0
        }
538
0
    case TArrayOfFileContentData:
539
0
        {
540
0
            (ptr_ArrayOfFileContentData())->~ArrayOfFileContentData__tdef();
541
0
            break;
542
0
        }
543
0
    default:
544
0
        {
545
0
            mozilla::ipc::LogicError("not reached");
546
0
            break;
547
0
        }
548
0
    }
549
0
    return true;
550
0
}
551
552
MOZ_IMPLICIT PresContentData::PresContentData(const void_t& aOther)
553
0
{
554
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(aOther);
555
0
    mType = Tvoid_t;
556
0
}
557
558
MOZ_IMPLICIT PresContentData::PresContentData(void_t&& aOther)
559
0
{
560
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move(aOther));
561
0
    mType = Tvoid_t;
562
0
}
563
564
MOZ_IMPLICIT PresContentData::PresContentData(const nsString& aOther)
565
0
{
566
0
    new (mozilla::KnownNotNull, ptr_nsString()) nsString(aOther);
567
0
    mType = TnsString;
568
0
}
569
570
MOZ_IMPLICIT PresContentData::PresContentData(nsString&& aOther)
571
0
{
572
0
    new (mozilla::KnownNotNull, ptr_nsString()) nsString(std::move(aOther));
573
0
    mType = TnsString;
574
0
}
575
576
MOZ_IMPLICIT PresContentData::PresContentData(const SelectContentData& aOther)
577
0
{
578
0
    new (mozilla::KnownNotNull, ptr_SelectContentData()) SelectContentData(aOther);
579
0
    mType = TSelectContentData;
580
0
}
581
582
MOZ_IMPLICIT PresContentData::PresContentData(SelectContentData&& aOther)
583
0
{
584
0
    new (mozilla::KnownNotNull, ptr_SelectContentData()) SelectContentData(std::move(aOther));
585
0
    mType = TSelectContentData;
586
0
}
587
588
MOZ_IMPLICIT PresContentData::PresContentData(const CheckedContentData& aOther)
589
0
{
590
0
    new (mozilla::KnownNotNull, ptr_CheckedContentData()) CheckedContentData(aOther);
591
0
    mType = TCheckedContentData;
592
0
}
593
594
MOZ_IMPLICIT PresContentData::PresContentData(CheckedContentData&& aOther)
595
0
{
596
0
    new (mozilla::KnownNotNull, ptr_CheckedContentData()) CheckedContentData(std::move(aOther));
597
0
    mType = TCheckedContentData;
598
0
}
599
600
MOZ_IMPLICIT PresContentData::PresContentData(const nsTArray<FileContentData>& aOther)
601
0
{
602
0
    new (mozilla::KnownNotNull, ptr_ArrayOfFileContentData()) nsTArray<FileContentData>(aOther);
603
0
    mType = TArrayOfFileContentData;
604
0
}
605
606
MOZ_IMPLICIT PresContentData::PresContentData(nsTArray<FileContentData>&& aOther)
607
0
{
608
0
    new (mozilla::KnownNotNull, ptr_ArrayOfFileContentData()) nsTArray<FileContentData>(std::move(aOther));
609
0
    mType = TArrayOfFileContentData;
610
0
}
611
612
MOZ_IMPLICIT PresContentData::PresContentData(const PresContentData& aOther)
613
0
{
614
0
    (aOther).AssertSanity();
615
0
    switch ((aOther).type()) {
616
0
    case Tvoid_t:
617
0
        {
618
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t((aOther).get_void_t());
619
0
            break;
620
0
        }
621
0
    case TnsString:
622
0
        {
623
0
            new (mozilla::KnownNotNull, ptr_nsString()) nsString((aOther).get_nsString());
624
0
            break;
625
0
        }
626
0
    case TSelectContentData:
627
0
        {
628
0
            new (mozilla::KnownNotNull, ptr_SelectContentData()) SelectContentData((aOther).get_SelectContentData());
629
0
            break;
630
0
        }
631
0
    case TCheckedContentData:
632
0
        {
633
0
            new (mozilla::KnownNotNull, ptr_CheckedContentData()) CheckedContentData((aOther).get_CheckedContentData());
634
0
            break;
635
0
        }
636
0
    case TArrayOfFileContentData:
637
0
        {
638
0
            new (mozilla::KnownNotNull, ptr_ArrayOfFileContentData()) nsTArray<FileContentData>((aOther).get_ArrayOfFileContentData());
639
0
            break;
640
0
        }
641
0
    case T__None:
642
0
        {
643
0
            break;
644
0
        }
645
0
    default:
646
0
        {
647
0
            mozilla::ipc::LogicError("unreached");
648
0
            return;
649
0
        }
650
0
    }
651
0
    mType = (aOther).type();
652
0
}
653
654
MOZ_IMPLICIT PresContentData::PresContentData(PresContentData&& aOther)
655
0
{
656
0
    (aOther).AssertSanity();
657
0
    Type t = (aOther).type();
658
0
    switch (t) {
659
0
    case Tvoid_t:
660
0
        {
661
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move((aOther).get_void_t()));
662
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
663
0
            break;
664
0
        }
665
0
    case TnsString:
666
0
        {
667
0
            new (mozilla::KnownNotNull, ptr_nsString()) nsString(std::move((aOther).get_nsString()));
668
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
669
0
            break;
670
0
        }
671
0
    case TSelectContentData:
672
0
        {
673
0
            new (mozilla::KnownNotNull, ptr_SelectContentData()) SelectContentData(std::move((aOther).get_SelectContentData()));
674
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
675
0
            break;
676
0
        }
677
0
    case TCheckedContentData:
678
0
        {
679
0
            new (mozilla::KnownNotNull, ptr_CheckedContentData()) CheckedContentData(std::move((aOther).get_CheckedContentData()));
680
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
681
0
            break;
682
0
        }
683
0
    case TArrayOfFileContentData:
684
0
        {
685
0
            new (mozilla::KnownNotNull, ptr_ArrayOfFileContentData()) nsTArray<FileContentData>(std::move((aOther).get_ArrayOfFileContentData()));
686
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
687
0
            break;
688
0
        }
689
0
    case T__None:
690
0
        {
691
0
            break;
692
0
        }
693
0
    default:
694
0
        {
695
0
            mozilla::ipc::LogicError("unreached");
696
0
            return;
697
0
        }
698
0
    }
699
0
    (aOther).mType = T__None;
700
0
    mType = t;
701
0
}
702
703
PresContentData::~PresContentData()
704
0
{
705
0
    static_cast<void>(MaybeDestroy(T__None));
706
0
}
707
708
auto PresContentData::operator=(const void_t& aRhs) -> PresContentData&
709
0
{
710
0
    if (MaybeDestroy(Tvoid_t)) {
711
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
712
0
    }
713
0
    (*(ptr_void_t())) = aRhs;
714
0
    mType = Tvoid_t;
715
0
    return (*(this));
716
0
}
717
718
auto PresContentData::operator=(void_t&& aRhs) -> PresContentData&
719
0
{
720
0
    if (MaybeDestroy(Tvoid_t)) {
721
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
722
0
    }
723
0
    (*(ptr_void_t())) = std::move(aRhs);
724
0
    mType = Tvoid_t;
725
0
    return (*(this));
726
0
}
727
728
auto PresContentData::operator=(const nsString& aRhs) -> PresContentData&
729
0
{
730
0
    if (MaybeDestroy(TnsString)) {
731
0
        new (mozilla::KnownNotNull, ptr_nsString()) nsString;
732
0
    }
733
0
    (*(ptr_nsString())) = aRhs;
734
0
    mType = TnsString;
735
0
    return (*(this));
736
0
}
737
738
auto PresContentData::operator=(nsString&& aRhs) -> PresContentData&
739
0
{
740
0
    if (MaybeDestroy(TnsString)) {
741
0
        new (mozilla::KnownNotNull, ptr_nsString()) nsString;
742
0
    }
743
0
    (*(ptr_nsString())) = std::move(aRhs);
744
0
    mType = TnsString;
745
0
    return (*(this));
746
0
}
747
748
auto PresContentData::operator=(const SelectContentData& aRhs) -> PresContentData&
749
0
{
750
0
    if (MaybeDestroy(TSelectContentData)) {
751
0
        new (mozilla::KnownNotNull, ptr_SelectContentData()) SelectContentData;
752
0
    }
753
0
    (*(ptr_SelectContentData())) = aRhs;
754
0
    mType = TSelectContentData;
755
0
    return (*(this));
756
0
}
757
758
auto PresContentData::operator=(SelectContentData&& aRhs) -> PresContentData&
759
0
{
760
0
    if (MaybeDestroy(TSelectContentData)) {
761
0
        new (mozilla::KnownNotNull, ptr_SelectContentData()) SelectContentData;
762
0
    }
763
0
    (*(ptr_SelectContentData())) = std::move(aRhs);
764
0
    mType = TSelectContentData;
765
0
    return (*(this));
766
0
}
767
768
auto PresContentData::operator=(const CheckedContentData& aRhs) -> PresContentData&
769
0
{
770
0
    if (MaybeDestroy(TCheckedContentData)) {
771
0
        new (mozilla::KnownNotNull, ptr_CheckedContentData()) CheckedContentData;
772
0
    }
773
0
    (*(ptr_CheckedContentData())) = aRhs;
774
0
    mType = TCheckedContentData;
775
0
    return (*(this));
776
0
}
777
778
auto PresContentData::operator=(CheckedContentData&& aRhs) -> PresContentData&
779
0
{
780
0
    if (MaybeDestroy(TCheckedContentData)) {
781
0
        new (mozilla::KnownNotNull, ptr_CheckedContentData()) CheckedContentData;
782
0
    }
783
0
    (*(ptr_CheckedContentData())) = std::move(aRhs);
784
0
    mType = TCheckedContentData;
785
0
    return (*(this));
786
0
}
787
788
auto PresContentData::operator=(const nsTArray<FileContentData>& aRhs) -> PresContentData&
789
0
{
790
0
    if (MaybeDestroy(TArrayOfFileContentData)) {
791
0
        new (mozilla::KnownNotNull, ptr_ArrayOfFileContentData()) nsTArray<FileContentData>;
792
0
    }
793
0
    (*(ptr_ArrayOfFileContentData())) = aRhs;
794
0
    mType = TArrayOfFileContentData;
795
0
    return (*(this));
796
0
}
797
798
auto PresContentData::operator=(nsTArray<FileContentData>&& aRhs) -> PresContentData&
799
0
{
800
0
    if (MaybeDestroy(TArrayOfFileContentData)) {
801
0
        new (mozilla::KnownNotNull, ptr_ArrayOfFileContentData()) nsTArray<FileContentData>;
802
0
    }
803
0
    (*(ptr_ArrayOfFileContentData())) = std::move(aRhs);
804
0
    mType = TArrayOfFileContentData;
805
0
    return (*(this));
806
0
}
807
808
auto PresContentData::operator=(const PresContentData& aRhs) -> PresContentData&
809
0
{
810
0
    (aRhs).AssertSanity();
811
0
    Type t = (aRhs).type();
812
0
    switch (t) {
813
0
    case Tvoid_t:
814
0
        {
815
0
            if (MaybeDestroy(t)) {
816
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
817
0
            }
818
0
            (*(ptr_void_t())) = (aRhs).get_void_t();
819
0
            break;
820
0
        }
821
0
    case TnsString:
822
0
        {
823
0
            if (MaybeDestroy(t)) {
824
0
                new (mozilla::KnownNotNull, ptr_nsString()) nsString;
825
0
            }
826
0
            (*(ptr_nsString())) = (aRhs).get_nsString();
827
0
            break;
828
0
        }
829
0
    case TSelectContentData:
830
0
        {
831
0
            if (MaybeDestroy(t)) {
832
0
                new (mozilla::KnownNotNull, ptr_SelectContentData()) SelectContentData;
833
0
            }
834
0
            (*(ptr_SelectContentData())) = (aRhs).get_SelectContentData();
835
0
            break;
836
0
        }
837
0
    case TCheckedContentData:
838
0
        {
839
0
            if (MaybeDestroy(t)) {
840
0
                new (mozilla::KnownNotNull, ptr_CheckedContentData()) CheckedContentData;
841
0
            }
842
0
            (*(ptr_CheckedContentData())) = (aRhs).get_CheckedContentData();
843
0
            break;
844
0
        }
845
0
    case TArrayOfFileContentData:
846
0
        {
847
0
            if (MaybeDestroy(t)) {
848
0
                new (mozilla::KnownNotNull, ptr_ArrayOfFileContentData()) nsTArray<FileContentData>;
849
0
            }
850
0
            (*(ptr_ArrayOfFileContentData())) = (aRhs).get_ArrayOfFileContentData();
851
0
            break;
852
0
        }
853
0
    case T__None:
854
0
        {
855
0
            static_cast<void>(MaybeDestroy(t));
856
0
            break;
857
0
        }
858
0
    default:
859
0
        {
860
0
            mozilla::ipc::LogicError("unreached");
861
0
            break;
862
0
        }
863
0
    }
864
0
    mType = t;
865
0
    return (*(this));
866
0
}
867
868
auto PresContentData::operator=(PresContentData&& aRhs) -> PresContentData&
869
0
{
870
0
    (aRhs).AssertSanity();
871
0
    Type t = (aRhs).type();
872
0
    switch (t) {
873
0
    case Tvoid_t:
874
0
        {
875
0
            if (MaybeDestroy(t)) {
876
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
877
0
            }
878
0
            (*(ptr_void_t())) = std::move((aRhs).get_void_t());
879
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
880
0
            break;
881
0
        }
882
0
    case TnsString:
883
0
        {
884
0
            if (MaybeDestroy(t)) {
885
0
                new (mozilla::KnownNotNull, ptr_nsString()) nsString;
886
0
            }
887
0
            (*(ptr_nsString())) = std::move((aRhs).get_nsString());
888
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
889
0
            break;
890
0
        }
891
0
    case TSelectContentData:
892
0
        {
893
0
            if (MaybeDestroy(t)) {
894
0
                new (mozilla::KnownNotNull, ptr_SelectContentData()) SelectContentData;
895
0
            }
896
0
            (*(ptr_SelectContentData())) = std::move((aRhs).get_SelectContentData());
897
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
898
0
            break;
899
0
        }
900
0
    case TCheckedContentData:
901
0
        {
902
0
            if (MaybeDestroy(t)) {
903
0
                new (mozilla::KnownNotNull, ptr_CheckedContentData()) CheckedContentData;
904
0
            }
905
0
            (*(ptr_CheckedContentData())) = std::move((aRhs).get_CheckedContentData());
906
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
907
0
            break;
908
0
        }
909
0
    case TArrayOfFileContentData:
910
0
        {
911
0
            if (MaybeDestroy(t)) {
912
0
                new (mozilla::KnownNotNull, ptr_ArrayOfFileContentData()) nsTArray<FileContentData>;
913
0
            }
914
0
            (*(ptr_ArrayOfFileContentData())) = std::move((aRhs).get_ArrayOfFileContentData());
915
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
916
0
            break;
917
0
        }
918
0
    case T__None:
919
0
        {
920
0
            static_cast<void>(MaybeDestroy(t));
921
0
            break;
922
0
        }
923
0
    default:
924
0
        {
925
0
            mozilla::ipc::LogicError("unreached");
926
0
            break;
927
0
        }
928
0
    }
929
0
    (aRhs).mType = T__None;
930
0
    mType = t;
931
0
    return (*(this));
932
0
}
933
934
auto PresContentData::operator==(const void_t& aRhs) const -> bool
935
0
{
936
0
    return (get_void_t()) == (aRhs);
937
0
}
938
939
auto PresContentData::operator==(const nsString& aRhs) const -> bool
940
0
{
941
0
    return (get_nsString()) == (aRhs);
942
0
}
943
944
auto PresContentData::operator==(const SelectContentData& aRhs) const -> bool
945
0
{
946
0
    return (get_SelectContentData()) == (aRhs);
947
0
}
948
949
auto PresContentData::operator==(const CheckedContentData& aRhs) const -> bool
950
0
{
951
0
    return (get_CheckedContentData()) == (aRhs);
952
0
}
953
954
auto PresContentData::operator==(const nsTArray<FileContentData>& aRhs) const -> bool
955
0
{
956
0
    return (get_ArrayOfFileContentData()) == (aRhs);
957
0
}
958
959
auto PresContentData::operator==(const PresContentData& aRhs) const -> bool
960
0
{
961
0
    if ((type()) != ((aRhs).type())) {
962
0
        return false;
963
0
    }
964
0
965
0
    switch (type()) {
966
0
    case Tvoid_t:
967
0
        {
968
0
            return (get_void_t()) == ((aRhs).get_void_t());
969
0
        }
970
0
    case TnsString:
971
0
        {
972
0
            return (get_nsString()) == ((aRhs).get_nsString());
973
0
        }
974
0
    case TSelectContentData:
975
0
        {
976
0
            return (get_SelectContentData()) == ((aRhs).get_SelectContentData());
977
0
        }
978
0
    case TCheckedContentData:
979
0
        {
980
0
            return (get_CheckedContentData()) == ((aRhs).get_CheckedContentData());
981
0
        }
982
0
    case TArrayOfFileContentData:
983
0
        {
984
0
            return (get_ArrayOfFileContentData()) == ((aRhs).get_ArrayOfFileContentData());
985
0
        }
986
0
    default:
987
0
        {
988
0
            mozilla::ipc::LogicError("unreached");
989
0
            return false;
990
0
        }
991
0
    }
992
0
}
993
994
auto PresContentData::get(void_t* aOutValue) const -> void
995
0
{
996
0
    (*(aOutValue)) = get_void_t();
997
0
}
998
999
auto PresContentData::get(nsString* aOutValue) const -> void
1000
0
{
1001
0
    (*(aOutValue)) = get_nsString();
1002
0
}
1003
1004
auto PresContentData::get(SelectContentData* aOutValue) const -> void
1005
0
{
1006
0
    (*(aOutValue)) = get_SelectContentData();
1007
0
}
1008
1009
auto PresContentData::get(CheckedContentData* aOutValue) const -> void
1010
0
{
1011
0
    (*(aOutValue)) = get_CheckedContentData();
1012
0
}
1013
1014
auto PresContentData::get(nsTArray<FileContentData>* aOutValue) const -> void
1015
0
{
1016
0
    (*(aOutValue)) = get_ArrayOfFileContentData();
1017
0
}
1018
1019
} // namespace mozilla
1020
1021
namespace mozilla {
1022
namespace ipc {
1023
auto IPDLParamTraits<mozilla::PresContentData>::Write(
1024
        IPC::Message* aMsg,
1025
        mozilla::ipc::IProtocol* aActor,
1026
        const paramType& aVar) -> void
1027
{
1028
    typedef mozilla::PresContentData union__;
1029
    int type;
1030
    type = (aVar).type();
1031
    WriteIPDLParam(aMsg, aActor, type);
1032
    // Sentinel = 'PresContentData'
1033
    (aMsg)->WriteSentinel(3196752786);
1034
1035
    switch (type) {
1036
    case union__::Tvoid_t:
1037
        {
1038
            WriteIPDLParam(aMsg, aActor, (aVar).get_void_t());
1039
            // Sentinel = 'Tvoid_t'
1040
            (aMsg)->WriteSentinel(3041273328);
1041
            return;
1042
        }
1043
    case union__::TnsString:
1044
        {
1045
            WriteIPDLParam(aMsg, aActor, (aVar).get_nsString());
1046
            // Sentinel = 'TnsString'
1047
            (aMsg)->WriteSentinel(2161603959);
1048
            return;
1049
        }
1050
    case union__::TSelectContentData:
1051
        {
1052
            WriteIPDLParam(aMsg, aActor, (aVar).get_SelectContentData());
1053
            // Sentinel = 'TSelectContentData'
1054
            (aMsg)->WriteSentinel(227319417);
1055
            return;
1056
        }
1057
    case union__::TCheckedContentData:
1058
        {
1059
            WriteIPDLParam(aMsg, aActor, (aVar).get_CheckedContentData());
1060
            // Sentinel = 'TCheckedContentData'
1061
            (aMsg)->WriteSentinel(4177351733);
1062
            return;
1063
        }
1064
    case union__::TArrayOfFileContentData:
1065
        {
1066
            WriteIPDLParam(aMsg, aActor, (aVar).get_ArrayOfFileContentData());
1067
            // Sentinel = 'TArrayOfFileContentData'
1068
            (aMsg)->WriteSentinel(1441836278);
1069
            return;
1070
        }
1071
    default:
1072
        {
1073
            (aActor)->FatalError("unknown union type");
1074
            return;
1075
        }
1076
    }
1077
}
1078
1079
auto IPDLParamTraits<mozilla::PresContentData>::Read(
1080
        const IPC::Message* aMsg,
1081
        PickleIterator* aIter,
1082
        mozilla::ipc::IProtocol* aActor,
1083
        paramType* aVar) -> bool
1084
0
{
1085
0
    typedef mozilla::PresContentData union__;
1086
0
    int type;
1087
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
1088
0
        (aActor)->FatalError("Error deserializing type of union PresContentData");
1089
0
        return false;
1090
0
    }
1091
0
    // Sentinel = 'PresContentData'
1092
0
    if ((!((aMsg)->ReadSentinel(aIter, 3196752786)))) {
1093
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union PresContentData");
1094
0
        return false;
1095
0
    }
1096
0
1097
0
    switch (type) {
1098
0
    case union__::Tvoid_t:
1099
0
        {
1100
0
            mozilla::void_t tmp = mozilla::void_t();
1101
0
            (*(aVar)) = tmp;
1102
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_void_t())))))) {
1103
0
                (aActor)->FatalError("Error deserializing variant Tvoid_t of union PresContentData");
1104
0
                return false;
1105
0
            }
1106
0
            // Sentinel = 'Tvoid_t'
1107
0
            if ((!((aMsg)->ReadSentinel(aIter, 3041273328)))) {
1108
0
                mozilla::ipc::SentinelReadError("Error deserializing variant Tvoid_t of union PresContentData");
1109
0
                return false;
1110
0
            }
1111
0
            return true;
1112
0
        }
1113
0
    case union__::TnsString:
1114
0
        {
1115
0
            nsString tmp = nsString();
1116
0
            (*(aVar)) = tmp;
1117
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_nsString())))))) {
1118
0
                (aActor)->FatalError("Error deserializing variant TnsString of union PresContentData");
1119
0
                return false;
1120
0
            }
1121
0
            // Sentinel = 'TnsString'
1122
0
            if ((!((aMsg)->ReadSentinel(aIter, 2161603959)))) {
1123
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TnsString of union PresContentData");
1124
0
                return false;
1125
0
            }
1126
0
            return true;
1127
0
        }
1128
0
    case union__::TSelectContentData:
1129
0
        {
1130
0
            mozilla::SelectContentData tmp = mozilla::SelectContentData();
1131
0
            (*(aVar)) = tmp;
1132
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_SelectContentData())))))) {
1133
0
                (aActor)->FatalError("Error deserializing variant TSelectContentData of union PresContentData");
1134
0
                return false;
1135
0
            }
1136
0
            // Sentinel = 'TSelectContentData'
1137
0
            if ((!((aMsg)->ReadSentinel(aIter, 227319417)))) {
1138
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TSelectContentData of union PresContentData");
1139
0
                return false;
1140
0
            }
1141
0
            return true;
1142
0
        }
1143
0
    case union__::TCheckedContentData:
1144
0
        {
1145
0
            mozilla::CheckedContentData tmp = mozilla::CheckedContentData();
1146
0
            (*(aVar)) = tmp;
1147
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_CheckedContentData())))))) {
1148
0
                (aActor)->FatalError("Error deserializing variant TCheckedContentData of union PresContentData");
1149
0
                return false;
1150
0
            }
1151
0
            // Sentinel = 'TCheckedContentData'
1152
0
            if ((!((aMsg)->ReadSentinel(aIter, 4177351733)))) {
1153
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TCheckedContentData of union PresContentData");
1154
0
                return false;
1155
0
            }
1156
0
            return true;
1157
0
        }
1158
0
    case union__::TArrayOfFileContentData:
1159
0
        {
1160
0
            nsTArray<mozilla::FileContentData> tmp;
1161
0
            (*(aVar)) = tmp;
1162
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_ArrayOfFileContentData())))))) {
1163
0
                (aActor)->FatalError("Error deserializing variant TArrayOfFileContentData of union PresContentData");
1164
0
                return false;
1165
0
            }
1166
0
            // Sentinel = 'TArrayOfFileContentData'
1167
0
            if ((!((aMsg)->ReadSentinel(aIter, 1441836278)))) {
1168
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TArrayOfFileContentData of union PresContentData");
1169
0
                return false;
1170
0
            }
1171
0
            return true;
1172
0
        }
1173
0
    default:
1174
0
        {
1175
0
            (aActor)->FatalError("unknown union type");
1176
0
            return false;
1177
0
        }
1178
0
    }
1179
0
}
1180
1181
} // namespace ipc
1182
} // namespace mozilla
1183
1184
//-----------------------------------------------------------------------------
1185
// Method definitions for the IPDL type |struct PresState|
1186
//
1187
namespace mozilla {
1188
auto PresState::operator==(const PresState& _o) const -> bool
1189
0
{
1190
0
    if ((!((contentData()) == ((_o).contentData())))) {
1191
0
        return false;
1192
0
    }
1193
0
    if ((!((scrollState()) == ((_o).scrollState())))) {
1194
0
        return false;
1195
0
    }
1196
0
    if ((!((allowScrollOriginDowngrade()) == ((_o).allowScrollOriginDowngrade())))) {
1197
0
        return false;
1198
0
    }
1199
0
    if ((!((resolution()) == ((_o).resolution())))) {
1200
0
        return false;
1201
0
    }
1202
0
    if ((!((scaleToResolution()) == ((_o).scaleToResolution())))) {
1203
0
        return false;
1204
0
    }
1205
0
    if ((!((disabledSet()) == ((_o).disabledSet())))) {
1206
0
        return false;
1207
0
    }
1208
0
    if ((!((disabled()) == ((_o).disabled())))) {
1209
0
        return false;
1210
0
    }
1211
0
    if ((!((droppedDown()) == ((_o).droppedDown())))) {
1212
0
        return false;
1213
0
    }
1214
0
    return true;
1215
0
}
1216
1217
auto PresState::operator!=(const PresState& _o) const -> bool
1218
0
{
1219
0
    return (!(operator==(_o)));
1220
0
}
1221
1222
} // namespace mozilla
1223
1224
namespace mozilla {
1225
namespace ipc {
1226
auto IPDLParamTraits<mozilla::PresState>::Write(
1227
        IPC::Message* aMsg,
1228
        mozilla::ipc::IProtocol* aActor,
1229
        const paramType& aVar) -> void
1230
0
{
1231
0
    WriteIPDLParam(aMsg, aActor, (aVar).contentData());
1232
0
    // Sentinel = 'contentData'
1233
0
    (aMsg)->WriteSentinel(1032416636);
1234
0
    WriteIPDLParam(aMsg, aActor, (aVar).scrollState());
1235
0
    // Sentinel = 'scrollState'
1236
0
    (aMsg)->WriteSentinel(3504709117);
1237
0
    WriteIPDLParam(aMsg, aActor, (aVar).allowScrollOriginDowngrade());
1238
0
    // Sentinel = 'allowScrollOriginDowngrade'
1239
0
    (aMsg)->WriteSentinel(3434477533);
1240
0
    WriteIPDLParam(aMsg, aActor, (aVar).resolution());
1241
0
    // Sentinel = 'resolution'
1242
0
    (aMsg)->WriteSentinel(4077768700);
1243
0
    WriteIPDLParam(aMsg, aActor, (aVar).scaleToResolution());
1244
0
    // Sentinel = 'scaleToResolution'
1245
0
    (aMsg)->WriteSentinel(2681979286);
1246
0
    WriteIPDLParam(aMsg, aActor, (aVar).disabledSet());
1247
0
    // Sentinel = 'disabledSet'
1248
0
    (aMsg)->WriteSentinel(2426546467);
1249
0
    WriteIPDLParam(aMsg, aActor, (aVar).disabled());
1250
0
    // Sentinel = 'disabled'
1251
0
    (aMsg)->WriteSentinel(4071748112);
1252
0
    WriteIPDLParam(aMsg, aActor, (aVar).droppedDown());
1253
0
    // Sentinel = 'droppedDown'
1254
0
    (aMsg)->WriteSentinel(2716595505);
1255
0
}
1256
1257
auto IPDLParamTraits<mozilla::PresState>::Read(
1258
        const IPC::Message* aMsg,
1259
        PickleIterator* aIter,
1260
        mozilla::ipc::IProtocol* aActor,
1261
        paramType* aVar) -> bool
1262
0
{
1263
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->contentData())))))) {
1264
0
        (aActor)->FatalError("Error deserializing 'contentData' (PresContentData) member of 'PresState'");
1265
0
        return false;
1266
0
    }
1267
0
    // Sentinel = 'contentData'
1268
0
    if ((!((aMsg)->ReadSentinel(aIter, 1032416636)))) {
1269
0
        mozilla::ipc::SentinelReadError("Error deserializing 'contentData' (PresContentData) member of 'PresState'");
1270
0
        return false;
1271
0
    }
1272
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->scrollState())))))) {
1273
0
        (aActor)->FatalError("Error deserializing 'scrollState' (nsPoint) member of 'PresState'");
1274
0
        return false;
1275
0
    }
1276
0
    // Sentinel = 'scrollState'
1277
0
    if ((!((aMsg)->ReadSentinel(aIter, 3504709117)))) {
1278
0
        mozilla::ipc::SentinelReadError("Error deserializing 'scrollState' (nsPoint) member of 'PresState'");
1279
0
        return false;
1280
0
    }
1281
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->allowScrollOriginDowngrade())))))) {
1282
0
        (aActor)->FatalError("Error deserializing 'allowScrollOriginDowngrade' (bool) member of 'PresState'");
1283
0
        return false;
1284
0
    }
1285
0
    // Sentinel = 'allowScrollOriginDowngrade'
1286
0
    if ((!((aMsg)->ReadSentinel(aIter, 3434477533)))) {
1287
0
        mozilla::ipc::SentinelReadError("Error deserializing 'allowScrollOriginDowngrade' (bool) member of 'PresState'");
1288
0
        return false;
1289
0
    }
1290
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->resolution())))))) {
1291
0
        (aActor)->FatalError("Error deserializing 'resolution' (float) member of 'PresState'");
1292
0
        return false;
1293
0
    }
1294
0
    // Sentinel = 'resolution'
1295
0
    if ((!((aMsg)->ReadSentinel(aIter, 4077768700)))) {
1296
0
        mozilla::ipc::SentinelReadError("Error deserializing 'resolution' (float) member of 'PresState'");
1297
0
        return false;
1298
0
    }
1299
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->scaleToResolution())))))) {
1300
0
        (aActor)->FatalError("Error deserializing 'scaleToResolution' (bool) member of 'PresState'");
1301
0
        return false;
1302
0
    }
1303
0
    // Sentinel = 'scaleToResolution'
1304
0
    if ((!((aMsg)->ReadSentinel(aIter, 2681979286)))) {
1305
0
        mozilla::ipc::SentinelReadError("Error deserializing 'scaleToResolution' (bool) member of 'PresState'");
1306
0
        return false;
1307
0
    }
1308
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->disabledSet())))))) {
1309
0
        (aActor)->FatalError("Error deserializing 'disabledSet' (bool) member of 'PresState'");
1310
0
        return false;
1311
0
    }
1312
0
    // Sentinel = 'disabledSet'
1313
0
    if ((!((aMsg)->ReadSentinel(aIter, 2426546467)))) {
1314
0
        mozilla::ipc::SentinelReadError("Error deserializing 'disabledSet' (bool) member of 'PresState'");
1315
0
        return false;
1316
0
    }
1317
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->disabled())))))) {
1318
0
        (aActor)->FatalError("Error deserializing 'disabled' (bool) member of 'PresState'");
1319
0
        return false;
1320
0
    }
1321
0
    // Sentinel = 'disabled'
1322
0
    if ((!((aMsg)->ReadSentinel(aIter, 4071748112)))) {
1323
0
        mozilla::ipc::SentinelReadError("Error deserializing 'disabled' (bool) member of 'PresState'");
1324
0
        return false;
1325
0
    }
1326
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->droppedDown())))))) {
1327
0
        (aActor)->FatalError("Error deserializing 'droppedDown' (bool) member of 'PresState'");
1328
0
        return false;
1329
0
    }
1330
0
    // Sentinel = 'droppedDown'
1331
0
    if ((!((aMsg)->ReadSentinel(aIter, 2716595505)))) {
1332
0
        mozilla::ipc::SentinelReadError("Error deserializing 'droppedDown' (bool) member of 'PresState'");
1333
0
        return false;
1334
0
    }
1335
0
    return true;
1336
0
}
1337
1338
} // namespace ipc
1339
} // namespace mozilla