Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PAPZCTreeManagerChild.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/layers/PAPZCTreeManagerChild.h"
8
#include "FrameMetrics.h"
9
#include "mozilla/layers/KeyboardMap.h"
10
11
#include "mozilla/layers/PCompositorBridgeChild.h"
12
13
#include "nsIFile.h"
14
#include "GeckoProfiler.h"
15
16
namespace mozilla {
17
namespace layers {
18
19
20
auto PAPZCTreeManagerChild::ActorDestroy(ActorDestroyReason aWhy) -> void
21
0
{
22
0
}
23
24
MOZ_IMPLICIT PAPZCTreeManagerChild::PAPZCTreeManagerChild() :
25
    mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
26
    mLivenessState(mozilla::ipc::LivenessState::Dead)
27
0
{
28
0
    MOZ_COUNT_CTOR(PAPZCTreeManagerChild);
29
0
}
30
31
PAPZCTreeManagerChild::~PAPZCTreeManagerChild()
32
0
{
33
0
    MOZ_COUNT_DTOR(PAPZCTreeManagerChild);
34
0
}
35
36
auto PAPZCTreeManagerChild::Manager() const -> PCompositorBridgeChild*
37
0
{
38
0
    return static_cast<PCompositorBridgeChild*>(IProtocol::Manager());
39
0
}
40
41
auto PAPZCTreeManagerChild::SendZoomToRect(
42
        const ScrollableLayerGuid& aGuid,
43
        const CSSRect& aRect,
44
        const uint32_t& Flags) -> bool
45
0
{
46
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_ZoomToRect(Id());
47
0
48
0
    WriteIPDLParam(msg__, this, aGuid);
49
0
    // Sentinel = 'aGuid'
50
0
    (msg__)->WriteSentinel(2369323719);
51
0
    WriteIPDLParam(msg__, this, aRect);
52
0
    // Sentinel = 'aRect'
53
0
    (msg__)->WriteSentinel(1014228594);
54
0
    WriteIPDLParam(msg__, this, Flags);
55
0
    // Sentinel = 'Flags'
56
0
    (msg__)->WriteSentinel(394072532);
57
0
58
0
59
0
60
0
61
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
62
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
63
0
    }
64
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ZoomToRect", OTHER);
65
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
66
0
        mozilla::ipc::LogicError("Transition error");
67
0
    }
68
0
69
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
70
0
    return sendok__;
71
0
}
72
73
auto PAPZCTreeManagerChild::SendContentReceivedInputBlock(
74
        const uint64_t& aInputBlockId,
75
        const bool& PreventDefault) -> bool
76
0
{
77
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_ContentReceivedInputBlock(Id());
78
0
79
0
    WriteIPDLParam(msg__, this, aInputBlockId);
80
0
    // Sentinel = 'aInputBlockId'
81
0
    (msg__)->WriteSentinel(3003300100);
82
0
    WriteIPDLParam(msg__, this, PreventDefault);
83
0
    // Sentinel = 'PreventDefault'
84
0
    (msg__)->WriteSentinel(3434909451);
85
0
86
0
87
0
88
0
89
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
90
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
91
0
    }
92
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_ContentReceivedInputBlock", OTHER);
93
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
94
0
        mozilla::ipc::LogicError("Transition error");
95
0
    }
96
0
97
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
98
0
    return sendok__;
99
0
}
100
101
auto PAPZCTreeManagerChild::SendSetTargetAPZC(
102
        const uint64_t& aInputBlockId,
103
        const nsTArray<ScrollableLayerGuid>& Targets) -> bool
104
0
{
105
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_SetTargetAPZC(Id());
106
0
107
0
    WriteIPDLParam(msg__, this, aInputBlockId);
108
0
    // Sentinel = 'aInputBlockId'
109
0
    (msg__)->WriteSentinel(3003300100);
110
0
    WriteIPDLParam(msg__, this, Targets);
111
0
    // Sentinel = 'Targets'
112
0
    (msg__)->WriteSentinel(1117257085);
113
0
114
0
115
0
116
0
117
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
118
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
119
0
    }
120
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetTargetAPZC", OTHER);
121
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
122
0
        mozilla::ipc::LogicError("Transition error");
123
0
    }
124
0
125
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
126
0
    return sendok__;
127
0
}
128
129
auto PAPZCTreeManagerChild::SendUpdateZoomConstraints(
130
        const ScrollableLayerGuid& aGuid,
131
        const MaybeZoomConstraints& aConstraints) -> bool
132
0
{
133
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_UpdateZoomConstraints(Id());
134
0
135
0
    WriteIPDLParam(msg__, this, aGuid);
136
0
    // Sentinel = 'aGuid'
137
0
    (msg__)->WriteSentinel(2369323719);
138
0
    WriteIPDLParam(msg__, this, aConstraints);
139
0
    // Sentinel = 'aConstraints'
140
0
    (msg__)->WriteSentinel(4151473199);
141
0
142
0
143
0
144
0
145
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
146
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
147
0
    }
148
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_UpdateZoomConstraints", OTHER);
149
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
150
0
        mozilla::ipc::LogicError("Transition error");
151
0
    }
152
0
153
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
154
0
    return sendok__;
155
0
}
156
157
auto PAPZCTreeManagerChild::SendSetKeyboardMap(const KeyboardMap& aKeyboardMap) -> bool
158
0
{
159
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_SetKeyboardMap(Id());
160
0
161
0
    WriteIPDLParam(msg__, this, aKeyboardMap);
162
0
    // Sentinel = 'aKeyboardMap'
163
0
    (msg__)->WriteSentinel(4227938288);
164
0
165
0
166
0
167
0
168
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
169
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
170
0
    }
171
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetKeyboardMap", OTHER);
172
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
173
0
        mozilla::ipc::LogicError("Transition error");
174
0
    }
175
0
176
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
177
0
    return sendok__;
178
0
}
179
180
auto PAPZCTreeManagerChild::SendSetDPI(const float& aDpiValue) -> bool
181
0
{
182
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_SetDPI(Id());
183
0
184
0
    WriteIPDLParam(msg__, this, aDpiValue);
185
0
    // Sentinel = 'aDpiValue'
186
0
    (msg__)->WriteSentinel(1134572304);
187
0
188
0
189
0
190
0
191
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
192
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
193
0
    }
194
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetDPI", OTHER);
195
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
196
0
        mozilla::ipc::LogicError("Transition error");
197
0
    }
198
0
199
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
200
0
    return sendok__;
201
0
}
202
203
auto PAPZCTreeManagerChild::SendSetAllowedTouchBehavior(
204
        const uint64_t& aInputBlockId,
205
        const nsTArray<TouchBehaviorFlags>& aValues) -> bool
206
0
{
207
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_SetAllowedTouchBehavior(Id());
208
0
209
0
    WriteIPDLParam(msg__, this, aInputBlockId);
210
0
    // Sentinel = 'aInputBlockId'
211
0
    (msg__)->WriteSentinel(3003300100);
212
0
    WriteIPDLParam(msg__, this, aValues);
213
0
    // Sentinel = 'aValues'
214
0
    (msg__)->WriteSentinel(223787060);
215
0
216
0
217
0
218
0
219
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
220
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
221
0
    }
222
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetAllowedTouchBehavior", OTHER);
223
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
224
0
        mozilla::ipc::LogicError("Transition error");
225
0
    }
226
0
227
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
228
0
    return sendok__;
229
0
}
230
231
auto PAPZCTreeManagerChild::SendStartScrollbarDrag(
232
        const ScrollableLayerGuid& aGuid,
233
        const AsyncDragMetrics& aDragMetrics) -> bool
234
0
{
235
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_StartScrollbarDrag(Id());
236
0
237
0
    WriteIPDLParam(msg__, this, aGuid);
238
0
    // Sentinel = 'aGuid'
239
0
    (msg__)->WriteSentinel(2369323719);
240
0
    WriteIPDLParam(msg__, this, aDragMetrics);
241
0
    // Sentinel = 'aDragMetrics'
242
0
    (msg__)->WriteSentinel(2529840026);
243
0
244
0
245
0
246
0
247
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
248
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
249
0
    }
250
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_StartScrollbarDrag", OTHER);
251
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
252
0
        mozilla::ipc::LogicError("Transition error");
253
0
    }
254
0
255
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
256
0
    return sendok__;
257
0
}
258
259
auto PAPZCTreeManagerChild::SendStartAutoscroll(
260
        const ScrollableLayerGuid& aGuid,
261
        const ScreenPoint& aAnchorLocation) -> bool
262
0
{
263
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_StartAutoscroll(Id());
264
0
265
0
    WriteIPDLParam(msg__, this, aGuid);
266
0
    // Sentinel = 'aGuid'
267
0
    (msg__)->WriteSentinel(2369323719);
268
0
    WriteIPDLParam(msg__, this, aAnchorLocation);
269
0
    // Sentinel = 'aAnchorLocation'
270
0
    (msg__)->WriteSentinel(4129679548);
271
0
272
0
273
0
274
0
275
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
276
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
277
0
    }
278
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_StartAutoscroll", OTHER);
279
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
280
0
        mozilla::ipc::LogicError("Transition error");
281
0
    }
282
0
283
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
284
0
    return sendok__;
285
0
}
286
287
auto PAPZCTreeManagerChild::SendStopAutoscroll(const ScrollableLayerGuid& aGuid) -> bool
288
0
{
289
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_StopAutoscroll(Id());
290
0
291
0
    WriteIPDLParam(msg__, this, aGuid);
292
0
    // Sentinel = 'aGuid'
293
0
    (msg__)->WriteSentinel(2369323719);
294
0
295
0
296
0
297
0
298
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
299
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
300
0
    }
301
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_StopAutoscroll", OTHER);
302
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
303
0
        mozilla::ipc::LogicError("Transition error");
304
0
    }
305
0
306
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
307
0
    return sendok__;
308
0
}
309
310
auto PAPZCTreeManagerChild::SendSetLongTapEnabled(const bool& aTapGestureEnabled) -> bool
311
0
{
312
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg_SetLongTapEnabled(Id());
313
0
314
0
    WriteIPDLParam(msg__, this, aTapGestureEnabled);
315
0
    // Sentinel = 'aTapGestureEnabled'
316
0
    (msg__)->WriteSentinel(2978221422);
317
0
318
0
319
0
320
0
321
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
322
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
323
0
    }
324
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_SetLongTapEnabled", OTHER);
325
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
326
0
        mozilla::ipc::LogicError("Transition error");
327
0
    }
328
0
329
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
330
0
    return sendok__;
331
0
}
332
333
auto PAPZCTreeManagerChild::Send__delete__(PAPZCTreeManagerChild* actor) -> bool
334
0
{
335
0
    if ((!(actor))) {
336
0
        return false;
337
0
    }
338
0
339
0
    IPC::Message* msg__ = PAPZCTreeManager::Msg___delete__((actor)->Id());
340
0
341
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
342
0
    WriteIPDLParam(msg__, actor, actor);
343
0
    // Sentinel = 'actor'
344
0
    (msg__)->WriteSentinel(875202478);
345
0
346
0
347
0
348
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
349
0
        mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
350
0
    }
351
0
    AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg___delete__", OTHER);
352
0
    if ((!(StateTransition(true, (&((actor)->mLivenessState)))))) {
353
0
        mozilla::ipc::LogicError("Transition error");
354
0
    }
355
0
356
0
    bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
357
0
358
0
    IProtocol* mgr = (actor)->Manager();
359
0
    (actor)->DestroySubtree(Deletion);
360
0
    (actor)->DeallocSubtree();
361
0
    (mgr)->RemoveManagee(PAPZCTreeManagerMsgStart, actor);
362
0
    return sendok__;
363
0
}
364
365
auto PAPZCTreeManagerChild::RemoveManagee(
366
        int32_t aProtocolId,
367
        IProtocol* aListener) -> void
368
0
{
369
0
    FatalError("unreached");
370
0
    return;
371
0
}
372
373
auto PAPZCTreeManagerChild::OnMessageReceived(const Message& msg__) -> PAPZCTreeManagerChild::Result
374
0
{
375
0
    switch ((msg__).type()) {
376
0
    case PAPZCTreeManager::Reply___delete____ID:
377
0
        {
378
0
            return MsgProcessed;
379
0
        }
380
0
    case PAPZCTreeManager::Msg_HandleTap__ID:
381
0
        {
382
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
383
0
                mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
384
0
            }
385
0
            AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_HandleTap", OTHER);
386
0
387
0
            PickleIterator iter__(msg__);
388
0
            TapType aType;
389
0
            LayoutDevicePoint point;
390
0
            Modifiers aModifiers;
391
0
            ScrollableLayerGuid aGuid;
392
0
            uint64_t aInputBlockId;
393
0
394
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aType)))))) {
395
0
                FatalError("Error deserializing 'TapType'");
396
0
                return MsgValueError;
397
0
            }
398
0
            // Sentinel = 'aType'
399
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) {
400
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TapType'");
401
0
                return MsgValueError;
402
0
            }
403
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(point)))))) {
404
0
                FatalError("Error deserializing 'LayoutDevicePoint'");
405
0
                return MsgValueError;
406
0
            }
407
0
            // Sentinel = 'point'
408
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3028833543)))) {
409
0
                mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDevicePoint'");
410
0
                return MsgValueError;
411
0
            }
412
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aModifiers)))))) {
413
0
                FatalError("Error deserializing 'Modifiers'");
414
0
                return MsgValueError;
415
0
            }
416
0
            // Sentinel = 'aModifiers'
417
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 261964171)))) {
418
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Modifiers'");
419
0
                return MsgValueError;
420
0
            }
421
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aGuid)))))) {
422
0
                FatalError("Error deserializing 'ScrollableLayerGuid'");
423
0
                return MsgValueError;
424
0
            }
425
0
            // Sentinel = 'aGuid'
426
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2369323719)))) {
427
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
428
0
                return MsgValueError;
429
0
            }
430
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aInputBlockId)))))) {
431
0
                FatalError("Error deserializing 'uint64_t'");
432
0
                return MsgValueError;
433
0
            }
434
0
            // Sentinel = 'aInputBlockId'
435
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3003300100)))) {
436
0
                mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
437
0
                return MsgValueError;
438
0
            }
439
0
            (msg__).EndRead(iter__, (msg__).type());
440
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
441
0
                FatalError("Transition error");
442
0
                return MsgValueError;
443
0
            }
444
0
            if ((!(RecvHandleTap(aType, point, aModifiers, aGuid, aInputBlockId)))) {
445
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
446
0
                // Error handled in mozilla::ipc::IPCResult
447
0
                return MsgProcessingError;
448
0
            }
449
0
450
0
            return MsgProcessed;
451
0
        }
452
0
    case PAPZCTreeManager::Msg_NotifyPinchGesture__ID:
453
0
        {
454
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
455
0
                mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
456
0
            }
457
0
            AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_NotifyPinchGesture", OTHER);
458
0
459
0
            PickleIterator iter__(msg__);
460
0
            PinchGestureType aType;
461
0
            ScrollableLayerGuid aGuid;
462
0
            LayoutDeviceCoord aSpanChange;
463
0
            Modifiers aModifiers;
464
0
465
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aType)))))) {
466
0
                FatalError("Error deserializing 'PinchGestureType'");
467
0
                return MsgValueError;
468
0
            }
469
0
            // Sentinel = 'aType'
470
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) {
471
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PinchGestureType'");
472
0
                return MsgValueError;
473
0
            }
474
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aGuid)))))) {
475
0
                FatalError("Error deserializing 'ScrollableLayerGuid'");
476
0
                return MsgValueError;
477
0
            }
478
0
            // Sentinel = 'aGuid'
479
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2369323719)))) {
480
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
481
0
                return MsgValueError;
482
0
            }
483
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aSpanChange)))))) {
484
0
                FatalError("Error deserializing 'LayoutDeviceCoord'");
485
0
                return MsgValueError;
486
0
            }
487
0
            // Sentinel = 'aSpanChange'
488
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2144160218)))) {
489
0
                mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceCoord'");
490
0
                return MsgValueError;
491
0
            }
492
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aModifiers)))))) {
493
0
                FatalError("Error deserializing 'Modifiers'");
494
0
                return MsgValueError;
495
0
            }
496
0
            // Sentinel = 'aModifiers'
497
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 261964171)))) {
498
0
                mozilla::ipc::SentinelReadError("Error deserializing 'Modifiers'");
499
0
                return MsgValueError;
500
0
            }
501
0
            (msg__).EndRead(iter__, (msg__).type());
502
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
503
0
                FatalError("Transition error");
504
0
                return MsgValueError;
505
0
            }
506
0
            if ((!(RecvNotifyPinchGesture(aType, aGuid, aSpanChange, aModifiers)))) {
507
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
508
0
                // Error handled in mozilla::ipc::IPCResult
509
0
                return MsgProcessingError;
510
0
            }
511
0
512
0
            return MsgProcessed;
513
0
        }
514
0
    case PAPZCTreeManager::Msg_CancelAutoscroll__ID:
515
0
        {
516
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZCTreeManagerChild")) {
517
0
                mozilla::ipc::LogMessageForProtocol("PAPZCTreeManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
518
0
            }
519
0
            AUTO_PROFILER_LABEL("PAPZCTreeManager::Msg_CancelAutoscroll", OTHER);
520
0
521
0
            PickleIterator iter__(msg__);
522
0
            ViewID aScrollId;
523
0
524
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aScrollId)))))) {
525
0
                FatalError("Error deserializing 'ViewID'");
526
0
                return MsgValueError;
527
0
            }
528
0
            // Sentinel = 'aScrollId'
529
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4217802004)))) {
530
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ViewID'");
531
0
                return MsgValueError;
532
0
            }
533
0
            (msg__).EndRead(iter__, (msg__).type());
534
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
535
0
                FatalError("Transition error");
536
0
                return MsgValueError;
537
0
            }
538
0
            if ((!(RecvCancelAutoscroll(aScrollId)))) {
539
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
540
0
                // Error handled in mozilla::ipc::IPCResult
541
0
                return MsgProcessingError;
542
0
            }
543
0
544
0
            return MsgProcessed;
545
0
        }
546
0
    default:
547
0
        {
548
0
            return MsgNotKnown;
549
0
        }
550
0
    }
551
0
}
552
553
auto PAPZCTreeManagerChild::OnMessageReceived(
554
        const Message& msg__,
555
        Message*& reply__) -> PAPZCTreeManagerChild::Result
556
0
{
557
0
    return MsgNotKnown;
558
0
}
559
560
auto PAPZCTreeManagerChild::OnCallReceived(
561
        const Message& msg__,
562
        Message*& reply__) -> PAPZCTreeManagerChild::Result
563
0
{
564
0
    MOZ_ASSERT_UNREACHABLE("message protocol not supported");
565
0
    return MsgNotKnown;
566
0
}
567
568
auto PAPZCTreeManagerChild::GetProtocolTypeId() -> int32_t
569
0
{
570
0
    return PAPZCTreeManagerMsgStart;
571
0
}
572
573
auto PAPZCTreeManagerChild::DestroySubtree(ActorDestroyReason why) -> void
574
0
{
575
0
    // Unregister from our manager.
576
0
    Unregister(Id());
577
0
578
0
    // Reject owning pending responses.
579
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
580
0
581
0
    // Finally, destroy "us".
582
0
    ActorDestroy(why);
583
0
}
584
585
auto PAPZCTreeManagerChild::DeallocSubtree() -> void
586
0
{
587
0
}
588
589
590
591
} // namespace layers
592
} // namespace mozilla
593
namespace mozilla {
594
namespace ipc {
595
auto IPDLParamTraits<mozilla::layers::PAPZCTreeManagerChild>::Write(
596
        IPC::Message* aMsg,
597
        mozilla::ipc::IProtocol* aActor,
598
        const paramType& aVar) -> void
599
0
{
600
0
    int32_t id;
601
0
    if ((!(aVar))) {
602
0
        id = 0;
603
0
    }
604
0
    else {
605
0
        id = (aVar)->Id();
606
0
        if ((1) == (id)) {
607
0
            (aActor)->FatalError("actor has been |delete|d");
608
0
        }
609
0
    }
610
0
    WriteIPDLParam(aMsg, aActor, id);
611
0
}
612
613
auto IPDLParamTraits<mozilla::layers::PAPZCTreeManagerChild>::Read(
614
        const IPC::Message* aMsg,
615
        PickleIterator* aIter,
616
        mozilla::ipc::IProtocol* aActor,
617
        paramType* aVar) -> bool
618
0
{
619
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PAPZCTreeManager", PAPZCTreeManagerMsgStart);
620
0
    if ((actor).isNothing()) {
621
0
        return false;
622
0
    }
623
0
624
0
    (*(aVar)) = static_cast<mozilla::layers::PAPZCTreeManagerChild*>((actor).value());
625
0
    return true;
626
0
}
627
628
} // namespace ipc
629
} // namespace mozilla