Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PAPZInputBridgeChild.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/PAPZInputBridgeChild.h"
8
#include "FrameMetrics.h"
9
#include "InputData.h"
10
11
#include "mozilla/gfx/PGPUChild.h"
12
13
#include "nsIFile.h"
14
#include "GeckoProfiler.h"
15
16
namespace mozilla {
17
namespace layers {
18
19
20
auto PAPZInputBridgeChild::ActorDestroy(ActorDestroyReason aWhy) -> void
21
0
{
22
0
}
23
24
MOZ_IMPLICIT PAPZInputBridgeChild::PAPZInputBridgeChild() :
25
    mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
26
    mLivenessState(mozilla::ipc::LivenessState::Dead)
27
0
{
28
0
    MOZ_COUNT_CTOR(PAPZInputBridgeChild);
29
0
}
30
31
PAPZInputBridgeChild::~PAPZInputBridgeChild()
32
0
{
33
0
    MOZ_COUNT_DTOR(PAPZInputBridgeChild);
34
0
}
35
36
auto PAPZInputBridgeChild::Manager() const -> PGPUChild*
37
0
{
38
0
    return static_cast<PGPUChild*>(IProtocol::Manager());
39
0
}
40
41
auto PAPZInputBridgeChild::SendReceiveMultiTouchInputEvent(
42
        const MultiTouchInput& aEvent,
43
        nsEventStatus* aOutStatus,
44
        MultiTouchInput* aOutEvent,
45
        ScrollableLayerGuid* aOutTargetGuid,
46
        uint64_t* aOutInputBlockId) -> bool
47
0
{
48
0
    IPC::Message* msg__ = PAPZInputBridge::Msg_ReceiveMultiTouchInputEvent(Id());
49
0
50
0
    WriteIPDLParam(msg__, this, aEvent);
51
0
    // Sentinel = 'aEvent'
52
0
    (msg__)->WriteSentinel(3531117325);
53
0
54
0
55
0
56
0
    Message reply__;
57
0
58
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
59
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
60
0
    }
61
0
    AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveMultiTouchInputEvent", OTHER);
62
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
63
0
        mozilla::ipc::LogicError("Transition error");
64
0
    }
65
0
66
0
    bool sendok__;
67
0
    {
68
0
        AUTO_PROFILER_TRACING("IPC", "PAPZInputBridge::Msg_ReceiveMultiTouchInputEvent");
69
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
70
0
    }
71
0
    if ((!(sendok__))) {
72
0
        return false;
73
0
    }
74
0
75
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
76
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
77
0
    }
78
0
79
0
    PickleIterator iter__(reply__);
80
0
81
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutStatus)))) {
82
0
        FatalError("Error deserializing 'nsEventStatus'");
83
0
        return false;
84
0
    }
85
0
    // Sentinel = 'aOutStatus'
86
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
87
0
        mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
88
0
        return false;
89
0
    }
90
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutEvent)))) {
91
0
        FatalError("Error deserializing 'MultiTouchInput'");
92
0
        return false;
93
0
    }
94
0
    // Sentinel = 'aOutEvent'
95
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
96
0
        mozilla::ipc::SentinelReadError("Error deserializing 'MultiTouchInput'");
97
0
        return false;
98
0
    }
99
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutTargetGuid)))) {
100
0
        FatalError("Error deserializing 'ScrollableLayerGuid'");
101
0
        return false;
102
0
    }
103
0
    // Sentinel = 'aOutTargetGuid'
104
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
105
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
106
0
        return false;
107
0
    }
108
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutInputBlockId)))) {
109
0
        FatalError("Error deserializing 'uint64_t'");
110
0
        return false;
111
0
    }
112
0
    // Sentinel = 'aOutInputBlockId'
113
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
114
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
115
0
        return false;
116
0
    }
117
0
    (reply__).EndRead(iter__, (reply__).type());
118
0
119
0
    return true;
120
0
}
121
122
auto PAPZInputBridgeChild::SendReceiveMouseInputEvent(
123
        const MouseInput& aEvent,
124
        nsEventStatus* aOutStatus,
125
        MouseInput* aOutEvent,
126
        ScrollableLayerGuid* aOutTargetGuid,
127
        uint64_t* aOutInputBlockId) -> bool
128
0
{
129
0
    IPC::Message* msg__ = PAPZInputBridge::Msg_ReceiveMouseInputEvent(Id());
130
0
131
0
    WriteIPDLParam(msg__, this, aEvent);
132
0
    // Sentinel = 'aEvent'
133
0
    (msg__)->WriteSentinel(3531117325);
134
0
135
0
136
0
137
0
    Message reply__;
138
0
139
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
140
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
141
0
    }
142
0
    AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveMouseInputEvent", OTHER);
143
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
144
0
        mozilla::ipc::LogicError("Transition error");
145
0
    }
146
0
147
0
    bool sendok__;
148
0
    {
149
0
        AUTO_PROFILER_TRACING("IPC", "PAPZInputBridge::Msg_ReceiveMouseInputEvent");
150
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
151
0
    }
152
0
    if ((!(sendok__))) {
153
0
        return false;
154
0
    }
155
0
156
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
157
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
158
0
    }
159
0
160
0
    PickleIterator iter__(reply__);
161
0
162
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutStatus)))) {
163
0
        FatalError("Error deserializing 'nsEventStatus'");
164
0
        return false;
165
0
    }
166
0
    // Sentinel = 'aOutStatus'
167
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
168
0
        mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
169
0
        return false;
170
0
    }
171
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutEvent)))) {
172
0
        FatalError("Error deserializing 'MouseInput'");
173
0
        return false;
174
0
    }
175
0
    // Sentinel = 'aOutEvent'
176
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
177
0
        mozilla::ipc::SentinelReadError("Error deserializing 'MouseInput'");
178
0
        return false;
179
0
    }
180
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutTargetGuid)))) {
181
0
        FatalError("Error deserializing 'ScrollableLayerGuid'");
182
0
        return false;
183
0
    }
184
0
    // Sentinel = 'aOutTargetGuid'
185
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
186
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
187
0
        return false;
188
0
    }
189
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutInputBlockId)))) {
190
0
        FatalError("Error deserializing 'uint64_t'");
191
0
        return false;
192
0
    }
193
0
    // Sentinel = 'aOutInputBlockId'
194
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
195
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
196
0
        return false;
197
0
    }
198
0
    (reply__).EndRead(iter__, (reply__).type());
199
0
200
0
    return true;
201
0
}
202
203
auto PAPZInputBridgeChild::SendReceivePanGestureInputEvent(
204
        const PanGestureInput& aEvent,
205
        nsEventStatus* aOutStatus,
206
        PanGestureInput* aOutEvent,
207
        ScrollableLayerGuid* aOutTargetGuid,
208
        uint64_t* aOutInputBlockId) -> bool
209
0
{
210
0
    IPC::Message* msg__ = PAPZInputBridge::Msg_ReceivePanGestureInputEvent(Id());
211
0
212
0
    WriteIPDLParam(msg__, this, aEvent);
213
0
    // Sentinel = 'aEvent'
214
0
    (msg__)->WriteSentinel(3531117325);
215
0
216
0
217
0
218
0
    Message reply__;
219
0
220
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
221
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
222
0
    }
223
0
    AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceivePanGestureInputEvent", OTHER);
224
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
225
0
        mozilla::ipc::LogicError("Transition error");
226
0
    }
227
0
228
0
    bool sendok__;
229
0
    {
230
0
        AUTO_PROFILER_TRACING("IPC", "PAPZInputBridge::Msg_ReceivePanGestureInputEvent");
231
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
232
0
    }
233
0
    if ((!(sendok__))) {
234
0
        return false;
235
0
    }
236
0
237
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
238
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
239
0
    }
240
0
241
0
    PickleIterator iter__(reply__);
242
0
243
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutStatus)))) {
244
0
        FatalError("Error deserializing 'nsEventStatus'");
245
0
        return false;
246
0
    }
247
0
    // Sentinel = 'aOutStatus'
248
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
249
0
        mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
250
0
        return false;
251
0
    }
252
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutEvent)))) {
253
0
        FatalError("Error deserializing 'PanGestureInput'");
254
0
        return false;
255
0
    }
256
0
    // Sentinel = 'aOutEvent'
257
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
258
0
        mozilla::ipc::SentinelReadError("Error deserializing 'PanGestureInput'");
259
0
        return false;
260
0
    }
261
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutTargetGuid)))) {
262
0
        FatalError("Error deserializing 'ScrollableLayerGuid'");
263
0
        return false;
264
0
    }
265
0
    // Sentinel = 'aOutTargetGuid'
266
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
267
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
268
0
        return false;
269
0
    }
270
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutInputBlockId)))) {
271
0
        FatalError("Error deserializing 'uint64_t'");
272
0
        return false;
273
0
    }
274
0
    // Sentinel = 'aOutInputBlockId'
275
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
276
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
277
0
        return false;
278
0
    }
279
0
    (reply__).EndRead(iter__, (reply__).type());
280
0
281
0
    return true;
282
0
}
283
284
auto PAPZInputBridgeChild::SendReceivePinchGestureInputEvent(
285
        const PinchGestureInput& aEvent,
286
        nsEventStatus* aOutStatus,
287
        PinchGestureInput* aOutEvent,
288
        ScrollableLayerGuid* aOutTargetGuid,
289
        uint64_t* aOutInputBlockId) -> bool
290
0
{
291
0
    IPC::Message* msg__ = PAPZInputBridge::Msg_ReceivePinchGestureInputEvent(Id());
292
0
293
0
    WriteIPDLParam(msg__, this, aEvent);
294
0
    // Sentinel = 'aEvent'
295
0
    (msg__)->WriteSentinel(3531117325);
296
0
297
0
298
0
299
0
    Message reply__;
300
0
301
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
302
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
303
0
    }
304
0
    AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceivePinchGestureInputEvent", OTHER);
305
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
306
0
        mozilla::ipc::LogicError("Transition error");
307
0
    }
308
0
309
0
    bool sendok__;
310
0
    {
311
0
        AUTO_PROFILER_TRACING("IPC", "PAPZInputBridge::Msg_ReceivePinchGestureInputEvent");
312
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
313
0
    }
314
0
    if ((!(sendok__))) {
315
0
        return false;
316
0
    }
317
0
318
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
319
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
320
0
    }
321
0
322
0
    PickleIterator iter__(reply__);
323
0
324
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutStatus)))) {
325
0
        FatalError("Error deserializing 'nsEventStatus'");
326
0
        return false;
327
0
    }
328
0
    // Sentinel = 'aOutStatus'
329
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
330
0
        mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
331
0
        return false;
332
0
    }
333
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutEvent)))) {
334
0
        FatalError("Error deserializing 'PinchGestureInput'");
335
0
        return false;
336
0
    }
337
0
    // Sentinel = 'aOutEvent'
338
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
339
0
        mozilla::ipc::SentinelReadError("Error deserializing 'PinchGestureInput'");
340
0
        return false;
341
0
    }
342
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutTargetGuid)))) {
343
0
        FatalError("Error deserializing 'ScrollableLayerGuid'");
344
0
        return false;
345
0
    }
346
0
    // Sentinel = 'aOutTargetGuid'
347
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
348
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
349
0
        return false;
350
0
    }
351
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutInputBlockId)))) {
352
0
        FatalError("Error deserializing 'uint64_t'");
353
0
        return false;
354
0
    }
355
0
    // Sentinel = 'aOutInputBlockId'
356
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
357
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
358
0
        return false;
359
0
    }
360
0
    (reply__).EndRead(iter__, (reply__).type());
361
0
362
0
    return true;
363
0
}
364
365
auto PAPZInputBridgeChild::SendReceiveTapGestureInputEvent(
366
        const TapGestureInput& aEvent,
367
        nsEventStatus* aOutStatus,
368
        TapGestureInput* aOutEvent,
369
        ScrollableLayerGuid* aOutTargetGuid,
370
        uint64_t* aOutInputBlockId) -> bool
371
0
{
372
0
    IPC::Message* msg__ = PAPZInputBridge::Msg_ReceiveTapGestureInputEvent(Id());
373
0
374
0
    WriteIPDLParam(msg__, this, aEvent);
375
0
    // Sentinel = 'aEvent'
376
0
    (msg__)->WriteSentinel(3531117325);
377
0
378
0
379
0
380
0
    Message reply__;
381
0
382
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
383
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
384
0
    }
385
0
    AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveTapGestureInputEvent", OTHER);
386
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
387
0
        mozilla::ipc::LogicError("Transition error");
388
0
    }
389
0
390
0
    bool sendok__;
391
0
    {
392
0
        AUTO_PROFILER_TRACING("IPC", "PAPZInputBridge::Msg_ReceiveTapGestureInputEvent");
393
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
394
0
    }
395
0
    if ((!(sendok__))) {
396
0
        return false;
397
0
    }
398
0
399
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
400
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
401
0
    }
402
0
403
0
    PickleIterator iter__(reply__);
404
0
405
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutStatus)))) {
406
0
        FatalError("Error deserializing 'nsEventStatus'");
407
0
        return false;
408
0
    }
409
0
    // Sentinel = 'aOutStatus'
410
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
411
0
        mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
412
0
        return false;
413
0
    }
414
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutEvent)))) {
415
0
        FatalError("Error deserializing 'TapGestureInput'");
416
0
        return false;
417
0
    }
418
0
    // Sentinel = 'aOutEvent'
419
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
420
0
        mozilla::ipc::SentinelReadError("Error deserializing 'TapGestureInput'");
421
0
        return false;
422
0
    }
423
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutTargetGuid)))) {
424
0
        FatalError("Error deserializing 'ScrollableLayerGuid'");
425
0
        return false;
426
0
    }
427
0
    // Sentinel = 'aOutTargetGuid'
428
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
429
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
430
0
        return false;
431
0
    }
432
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutInputBlockId)))) {
433
0
        FatalError("Error deserializing 'uint64_t'");
434
0
        return false;
435
0
    }
436
0
    // Sentinel = 'aOutInputBlockId'
437
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
438
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
439
0
        return false;
440
0
    }
441
0
    (reply__).EndRead(iter__, (reply__).type());
442
0
443
0
    return true;
444
0
}
445
446
auto PAPZInputBridgeChild::SendReceiveScrollWheelInputEvent(
447
        const ScrollWheelInput& aEvent,
448
        nsEventStatus* aOutStatus,
449
        ScrollWheelInput* aOutEvent,
450
        ScrollableLayerGuid* aOutTargetGuid,
451
        uint64_t* aOutInputBlockId) -> bool
452
0
{
453
0
    IPC::Message* msg__ = PAPZInputBridge::Msg_ReceiveScrollWheelInputEvent(Id());
454
0
455
0
    WriteIPDLParam(msg__, this, aEvent);
456
0
    // Sentinel = 'aEvent'
457
0
    (msg__)->WriteSentinel(3531117325);
458
0
459
0
460
0
461
0
    Message reply__;
462
0
463
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
464
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
465
0
    }
466
0
    AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveScrollWheelInputEvent", OTHER);
467
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
468
0
        mozilla::ipc::LogicError("Transition error");
469
0
    }
470
0
471
0
    bool sendok__;
472
0
    {
473
0
        AUTO_PROFILER_TRACING("IPC", "PAPZInputBridge::Msg_ReceiveScrollWheelInputEvent");
474
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
475
0
    }
476
0
    if ((!(sendok__))) {
477
0
        return false;
478
0
    }
479
0
480
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
481
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
482
0
    }
483
0
484
0
    PickleIterator iter__(reply__);
485
0
486
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutStatus)))) {
487
0
        FatalError("Error deserializing 'nsEventStatus'");
488
0
        return false;
489
0
    }
490
0
    // Sentinel = 'aOutStatus'
491
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
492
0
        mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
493
0
        return false;
494
0
    }
495
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutEvent)))) {
496
0
        FatalError("Error deserializing 'ScrollWheelInput'");
497
0
        return false;
498
0
    }
499
0
    // Sentinel = 'aOutEvent'
500
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
501
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ScrollWheelInput'");
502
0
        return false;
503
0
    }
504
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutTargetGuid)))) {
505
0
        FatalError("Error deserializing 'ScrollableLayerGuid'");
506
0
        return false;
507
0
    }
508
0
    // Sentinel = 'aOutTargetGuid'
509
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
510
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
511
0
        return false;
512
0
    }
513
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutInputBlockId)))) {
514
0
        FatalError("Error deserializing 'uint64_t'");
515
0
        return false;
516
0
    }
517
0
    // Sentinel = 'aOutInputBlockId'
518
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
519
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
520
0
        return false;
521
0
    }
522
0
    (reply__).EndRead(iter__, (reply__).type());
523
0
524
0
    return true;
525
0
}
526
527
auto PAPZInputBridgeChild::SendReceiveKeyboardInputEvent(
528
        const KeyboardInput& aEvent,
529
        nsEventStatus* aOutStatus,
530
        KeyboardInput* aOutEvent,
531
        ScrollableLayerGuid* aOutTargetGuid,
532
        uint64_t* aOutInputBlockId) -> bool
533
0
{
534
0
    IPC::Message* msg__ = PAPZInputBridge::Msg_ReceiveKeyboardInputEvent(Id());
535
0
536
0
    WriteIPDLParam(msg__, this, aEvent);
537
0
    // Sentinel = 'aEvent'
538
0
    (msg__)->WriteSentinel(3531117325);
539
0
540
0
541
0
542
0
    Message reply__;
543
0
544
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
545
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
546
0
    }
547
0
    AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveKeyboardInputEvent", OTHER);
548
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
549
0
        mozilla::ipc::LogicError("Transition error");
550
0
    }
551
0
552
0
    bool sendok__;
553
0
    {
554
0
        AUTO_PROFILER_TRACING("IPC", "PAPZInputBridge::Msg_ReceiveKeyboardInputEvent");
555
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
556
0
    }
557
0
    if ((!(sendok__))) {
558
0
        return false;
559
0
    }
560
0
561
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
562
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
563
0
    }
564
0
565
0
    PickleIterator iter__(reply__);
566
0
567
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutStatus)))) {
568
0
        FatalError("Error deserializing 'nsEventStatus'");
569
0
        return false;
570
0
    }
571
0
    // Sentinel = 'aOutStatus'
572
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1138544175)))) {
573
0
        mozilla::ipc::SentinelReadError("Error deserializing 'nsEventStatus'");
574
0
        return false;
575
0
    }
576
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutEvent)))) {
577
0
        FatalError("Error deserializing 'KeyboardInput'");
578
0
        return false;
579
0
    }
580
0
    // Sentinel = 'aOutEvent'
581
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1967035324)))) {
582
0
        mozilla::ipc::SentinelReadError("Error deserializing 'KeyboardInput'");
583
0
        return false;
584
0
    }
585
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutTargetGuid)))) {
586
0
        FatalError("Error deserializing 'ScrollableLayerGuid'");
587
0
        return false;
588
0
    }
589
0
    // Sentinel = 'aOutTargetGuid'
590
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
591
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
592
0
        return false;
593
0
    }
594
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutInputBlockId)))) {
595
0
        FatalError("Error deserializing 'uint64_t'");
596
0
        return false;
597
0
    }
598
0
    // Sentinel = 'aOutInputBlockId'
599
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2625955811)))) {
600
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
601
0
        return false;
602
0
    }
603
0
    (reply__).EndRead(iter__, (reply__).type());
604
0
605
0
    return true;
606
0
}
607
608
auto PAPZInputBridgeChild::SendUpdateWheelTransaction(
609
        const LayoutDeviceIntPoint& aRefPoint,
610
        const EventMessage& aEventMessage) -> bool
611
0
{
612
0
    IPC::Message* msg__ = PAPZInputBridge::Msg_UpdateWheelTransaction(Id());
613
0
614
0
    WriteIPDLParam(msg__, this, aRefPoint);
615
0
    // Sentinel = 'aRefPoint'
616
0
    (msg__)->WriteSentinel(2074729999);
617
0
    WriteIPDLParam(msg__, this, aEventMessage);
618
0
    // Sentinel = 'aEventMessage'
619
0
    (msg__)->WriteSentinel(3024841269);
620
0
621
0
622
0
623
0
624
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
625
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
626
0
    }
627
0
    AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_UpdateWheelTransaction", OTHER);
628
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
629
0
        mozilla::ipc::LogicError("Transition error");
630
0
    }
631
0
632
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
633
0
    return sendok__;
634
0
}
635
636
auto PAPZInputBridgeChild::SendProcessUnhandledEvent(
637
        const LayoutDeviceIntPoint& aRefPoint,
638
        LayoutDeviceIntPoint* aOutRefPoint,
639
        ScrollableLayerGuid* aOutTargetGuid,
640
        uint64_t* aOutFocusSequenceNumber) -> bool
641
0
{
642
0
    IPC::Message* msg__ = PAPZInputBridge::Msg_ProcessUnhandledEvent(Id());
643
0
644
0
    WriteIPDLParam(msg__, this, aRefPoint);
645
0
    // Sentinel = 'aRefPoint'
646
0
    (msg__)->WriteSentinel(2074729999);
647
0
648
0
649
0
650
0
    Message reply__;
651
0
652
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
653
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
654
0
    }
655
0
    AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ProcessUnhandledEvent", OTHER);
656
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
657
0
        mozilla::ipc::LogicError("Transition error");
658
0
    }
659
0
660
0
    bool sendok__;
661
0
    {
662
0
        AUTO_PROFILER_TRACING("IPC", "PAPZInputBridge::Msg_ProcessUnhandledEvent");
663
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
664
0
    }
665
0
    if ((!(sendok__))) {
666
0
        return false;
667
0
    }
668
0
669
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
670
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
671
0
    }
672
0
673
0
    PickleIterator iter__(reply__);
674
0
675
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutRefPoint)))) {
676
0
        FatalError("Error deserializing 'LayoutDeviceIntPoint'");
677
0
        return false;
678
0
    }
679
0
    // Sentinel = 'aOutRefPoint'
680
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 4284573792)))) {
681
0
        mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'");
682
0
        return false;
683
0
    }
684
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutTargetGuid)))) {
685
0
        FatalError("Error deserializing 'ScrollableLayerGuid'");
686
0
        return false;
687
0
    }
688
0
    // Sentinel = 'aOutTargetGuid'
689
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2624786969)))) {
690
0
        mozilla::ipc::SentinelReadError("Error deserializing 'ScrollableLayerGuid'");
691
0
        return false;
692
0
    }
693
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aOutFocusSequenceNumber)))) {
694
0
        FatalError("Error deserializing 'uint64_t'");
695
0
        return false;
696
0
    }
697
0
    // Sentinel = 'aOutFocusSequenceNumber'
698
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3726393906)))) {
699
0
        mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
700
0
        return false;
701
0
    }
702
0
    (reply__).EndRead(iter__, (reply__).type());
703
0
704
0
    return true;
705
0
}
706
707
auto PAPZInputBridgeChild::Send__delete__(PAPZInputBridgeChild* actor) -> bool
708
0
{
709
0
    if ((!(actor))) {
710
0
        return false;
711
0
    }
712
0
713
0
    IPC::Message* msg__ = PAPZInputBridge::Msg___delete__((actor)->Id());
714
0
715
0
    MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param");
716
0
    WriteIPDLParam(msg__, actor, actor);
717
0
    // Sentinel = 'actor'
718
0
    (msg__)->WriteSentinel(875202478);
719
0
720
0
721
0
722
0
    if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeChild")) {
723
0
        mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
724
0
    }
725
0
    AUTO_PROFILER_LABEL("PAPZInputBridge::Msg___delete__", OTHER);
726
0
    if ((!(StateTransition(true, (&((actor)->mLivenessState)))))) {
727
0
        mozilla::ipc::LogicError("Transition error");
728
0
    }
729
0
730
0
    bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
731
0
732
0
    IProtocol* mgr = (actor)->Manager();
733
0
    (actor)->DestroySubtree(Deletion);
734
0
    (actor)->DeallocSubtree();
735
0
    (mgr)->RemoveManagee(PAPZInputBridgeMsgStart, actor);
736
0
    return sendok__;
737
0
}
738
739
auto PAPZInputBridgeChild::RemoveManagee(
740
        int32_t aProtocolId,
741
        IProtocol* aListener) -> void
742
0
{
743
0
    FatalError("unreached");
744
0
    return;
745
0
}
746
747
auto PAPZInputBridgeChild::OnMessageReceived(const Message& msg__) -> PAPZInputBridgeChild::Result
748
{
749
    switch ((msg__).type()) {
750
    case PAPZInputBridge::Reply___delete____ID:
751
        {
752
            return MsgProcessed;
753
        }
754
    default:
755
        {
756
            return MsgNotKnown;
757
        }
758
    }
759
}
760
761
auto PAPZInputBridgeChild::OnMessageReceived(
762
        const Message& msg__,
763
        Message*& reply__) -> PAPZInputBridgeChild::Result
764
0
{
765
0
    return MsgNotKnown;
766
0
}
767
768
auto PAPZInputBridgeChild::OnCallReceived(
769
        const Message& msg__,
770
        Message*& reply__) -> PAPZInputBridgeChild::Result
771
0
{
772
0
    MOZ_ASSERT_UNREACHABLE("message protocol not supported");
773
0
    return MsgNotKnown;
774
0
}
775
776
auto PAPZInputBridgeChild::GetProtocolTypeId() -> int32_t
777
0
{
778
0
    return PAPZInputBridgeMsgStart;
779
0
}
780
781
auto PAPZInputBridgeChild::DestroySubtree(ActorDestroyReason why) -> void
782
0
{
783
0
    // Unregister from our manager.
784
0
    Unregister(Id());
785
0
786
0
    // Reject owning pending responses.
787
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
788
0
789
0
    // Finally, destroy "us".
790
0
    ActorDestroy(why);
791
0
}
792
793
auto PAPZInputBridgeChild::DeallocSubtree() -> void
794
0
{
795
0
}
796
797
798
799
} // namespace layers
800
} // namespace mozilla
801
namespace mozilla {
802
namespace ipc {
803
auto IPDLParamTraits<mozilla::layers::PAPZInputBridgeChild>::Write(
804
        IPC::Message* aMsg,
805
        mozilla::ipc::IProtocol* aActor,
806
        const paramType& aVar) -> void
807
0
{
808
0
    int32_t id;
809
0
    if ((!(aVar))) {
810
0
        id = 0;
811
0
    }
812
0
    else {
813
0
        id = (aVar)->Id();
814
0
        if ((1) == (id)) {
815
0
            (aActor)->FatalError("actor has been |delete|d");
816
0
        }
817
0
    }
818
0
    WriteIPDLParam(aMsg, aActor, id);
819
0
}
820
821
auto IPDLParamTraits<mozilla::layers::PAPZInputBridgeChild>::Read(
822
        const IPC::Message* aMsg,
823
        PickleIterator* aIter,
824
        mozilla::ipc::IProtocol* aActor,
825
        paramType* aVar) -> bool
826
0
{
827
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PAPZInputBridge", PAPZInputBridgeMsgStart);
828
0
    if ((actor).isNothing()) {
829
0
        return false;
830
0
    }
831
0
832
0
    (*(aVar)) = static_cast<mozilla::layers::PAPZInputBridgeChild*>((actor).value());
833
0
    return true;
834
0
}
835
836
} // namespace ipc
837
} // namespace mozilla