Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PAPZInputBridgeParent.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/PAPZInputBridgeParent.h"
8
#include "FrameMetrics.h"
9
#include "InputData.h"
10
11
#include "mozilla/gfx/PGPUParent.h"
12
13
#include "nsIFile.h"
14
#include "GeckoProfiler.h"
15
16
namespace mozilla {
17
namespace layers {
18
19
20
auto PAPZInputBridgeParent::Recv__delete__() -> mozilla::ipc::IPCResult
21
0
{
22
0
    return IPC_OK();
23
0
}
24
25
auto PAPZInputBridgeParent::ActorDestroy(ActorDestroyReason aWhy) -> void
26
0
{
27
0
}
28
29
MOZ_IMPLICIT PAPZInputBridgeParent::PAPZInputBridgeParent() :
30
    mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
31
    mLivenessState(mozilla::ipc::LivenessState::Dead)
32
0
{
33
0
    MOZ_COUNT_CTOR(PAPZInputBridgeParent);
34
0
}
35
36
PAPZInputBridgeParent::~PAPZInputBridgeParent()
37
0
{
38
0
    MOZ_COUNT_DTOR(PAPZInputBridgeParent);
39
0
}
40
41
auto PAPZInputBridgeParent::Manager() const -> PGPUParent*
42
0
{
43
0
    return static_cast<PGPUParent*>(IProtocol::Manager());
44
0
}
45
46
auto PAPZInputBridgeParent::RemoveManagee(
47
        int32_t aProtocolId,
48
        IProtocol* aListener) -> void
49
0
{
50
0
    FatalError("unreached");
51
0
    return;
52
0
}
53
54
auto PAPZInputBridgeParent::OnMessageReceived(const Message& msg__) -> PAPZInputBridgeParent::Result
55
0
{
56
0
    switch ((msg__).type()) {
57
0
    case PAPZInputBridge::Msg_UpdateWheelTransaction__ID:
58
0
        {
59
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
60
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
61
0
            }
62
0
            AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_UpdateWheelTransaction", OTHER);
63
0
64
0
            PickleIterator iter__(msg__);
65
0
            LayoutDeviceIntPoint aRefPoint;
66
0
            EventMessage aEventMessage;
67
0
68
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aRefPoint)))))) {
69
0
                FatalError("Error deserializing 'LayoutDeviceIntPoint'");
70
0
                return MsgValueError;
71
0
            }
72
0
            // Sentinel = 'aRefPoint'
73
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2074729999)))) {
74
0
                mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'");
75
0
                return MsgValueError;
76
0
            }
77
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEventMessage)))))) {
78
0
                FatalError("Error deserializing 'EventMessage'");
79
0
                return MsgValueError;
80
0
            }
81
0
            // Sentinel = 'aEventMessage'
82
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3024841269)))) {
83
0
                mozilla::ipc::SentinelReadError("Error deserializing 'EventMessage'");
84
0
                return MsgValueError;
85
0
            }
86
0
            (msg__).EndRead(iter__, (msg__).type());
87
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
88
0
                FatalError("Transition error");
89
0
                return MsgValueError;
90
0
            }
91
0
            if ((!(RecvUpdateWheelTransaction(aRefPoint, aEventMessage)))) {
92
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
93
0
                // Error handled in mozilla::ipc::IPCResult
94
0
                return MsgProcessingError;
95
0
            }
96
0
97
0
            return MsgProcessed;
98
0
        }
99
0
    case PAPZInputBridge::Msg___delete____ID:
100
0
        {
101
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
102
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
103
0
            }
104
0
            AUTO_PROFILER_LABEL("PAPZInputBridge::Msg___delete__", OTHER);
105
0
106
0
            PickleIterator iter__(msg__);
107
0
            PAPZInputBridgeParent* actor;
108
0
109
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(actor)))))) {
110
0
                FatalError("Error deserializing 'PAPZInputBridgeParent'");
111
0
                return MsgValueError;
112
0
            }
113
0
            if ((!((*((&(actor))))))) {
114
0
                FatalError("Error deserializing 'PAPZInputBridgeParent'");
115
0
                return MsgValueError;
116
0
            }
117
0
            // Sentinel = 'actor'
118
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
119
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PAPZInputBridgeParent'");
120
0
                return MsgValueError;
121
0
            }
122
0
            (msg__).EndRead(iter__, (msg__).type());
123
0
            if ((!(StateTransition(true, (&(mLivenessState)))))) {
124
0
                FatalError("Transition error");
125
0
                return MsgValueError;
126
0
            }
127
0
            if ((!(Recv__delete__()))) {
128
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
129
0
                // Error handled in mozilla::ipc::IPCResult
130
0
                return MsgProcessingError;
131
0
            }
132
0
133
0
134
0
            IProtocol* mgr = (actor)->Manager();
135
0
            (actor)->DestroySubtree(Deletion);
136
0
            (actor)->DeallocSubtree();
137
0
            (mgr)->RemoveManagee(PAPZInputBridgeMsgStart, actor);
138
0
139
0
            return MsgProcessed;
140
0
        }
141
0
    default:
142
0
        {
143
0
            return MsgNotKnown;
144
0
        }
145
0
    }
146
0
}
147
148
auto PAPZInputBridgeParent::OnMessageReceived(
149
        const Message& msg__,
150
        Message*& reply__) -> PAPZInputBridgeParent::Result
151
0
{
152
0
    switch ((msg__).type()) {
153
0
    case PAPZInputBridge::Msg_ReceiveMultiTouchInputEvent__ID:
154
0
        {
155
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
156
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
157
0
            }
158
0
            AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveMultiTouchInputEvent", OTHER);
159
0
160
0
            PickleIterator iter__(msg__);
161
0
            MultiTouchInput aEvent;
162
0
163
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEvent)))))) {
164
0
                FatalError("Error deserializing 'MultiTouchInput'");
165
0
                return MsgValueError;
166
0
            }
167
0
            // Sentinel = 'aEvent'
168
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) {
169
0
                mozilla::ipc::SentinelReadError("Error deserializing 'MultiTouchInput'");
170
0
                return MsgValueError;
171
0
            }
172
0
            (msg__).EndRead(iter__, (msg__).type());
173
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
174
0
                FatalError("Transition error");
175
0
                return MsgValueError;
176
0
            }
177
0
            int32_t id__ = Id();
178
0
            nsEventStatus aOutStatus;
179
0
            MultiTouchInput aOutEvent;
180
0
            ScrollableLayerGuid aOutTargetGuid;
181
0
            uint64_t aOutInputBlockId;
182
0
            if ((!(RecvReceiveMultiTouchInputEvent(aEvent, (&(aOutStatus)), (&(aOutEvent)), (&(aOutTargetGuid)), (&(aOutInputBlockId)))))) {
183
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
184
0
                // Error handled in mozilla::ipc::IPCResult
185
0
                return MsgProcessingError;
186
0
            }
187
0
188
0
            reply__ = PAPZInputBridge::Reply_ReceiveMultiTouchInputEvent(id__);
189
0
190
0
            WriteIPDLParam(reply__, this, aOutStatus);
191
0
            // Sentinel = 'aOutStatus'
192
0
            (reply__)->WriteSentinel(1138544175);
193
0
            WriteIPDLParam(reply__, this, aOutEvent);
194
0
            // Sentinel = 'aOutEvent'
195
0
            (reply__)->WriteSentinel(1967035324);
196
0
            WriteIPDLParam(reply__, this, aOutTargetGuid);
197
0
            // Sentinel = 'aOutTargetGuid'
198
0
            (reply__)->WriteSentinel(2624786969);
199
0
            WriteIPDLParam(reply__, this, aOutInputBlockId);
200
0
            // Sentinel = 'aOutInputBlockId'
201
0
            (reply__)->WriteSentinel(2625955811);
202
0
203
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
204
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
205
0
            }
206
0
            return MsgProcessed;
207
0
        }
208
0
    case PAPZInputBridge::Msg_ReceiveMouseInputEvent__ID:
209
0
        {
210
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
211
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
212
0
            }
213
0
            AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveMouseInputEvent", OTHER);
214
0
215
0
            PickleIterator iter__(msg__);
216
0
            MouseInput aEvent;
217
0
218
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEvent)))))) {
219
0
                FatalError("Error deserializing 'MouseInput'");
220
0
                return MsgValueError;
221
0
            }
222
0
            // Sentinel = 'aEvent'
223
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) {
224
0
                mozilla::ipc::SentinelReadError("Error deserializing 'MouseInput'");
225
0
                return MsgValueError;
226
0
            }
227
0
            (msg__).EndRead(iter__, (msg__).type());
228
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
229
0
                FatalError("Transition error");
230
0
                return MsgValueError;
231
0
            }
232
0
            int32_t id__ = Id();
233
0
            nsEventStatus aOutStatus;
234
0
            MouseInput aOutEvent;
235
0
            ScrollableLayerGuid aOutTargetGuid;
236
0
            uint64_t aOutInputBlockId;
237
0
            if ((!(RecvReceiveMouseInputEvent(aEvent, (&(aOutStatus)), (&(aOutEvent)), (&(aOutTargetGuid)), (&(aOutInputBlockId)))))) {
238
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
239
0
                // Error handled in mozilla::ipc::IPCResult
240
0
                return MsgProcessingError;
241
0
            }
242
0
243
0
            reply__ = PAPZInputBridge::Reply_ReceiveMouseInputEvent(id__);
244
0
245
0
            WriteIPDLParam(reply__, this, aOutStatus);
246
0
            // Sentinel = 'aOutStatus'
247
0
            (reply__)->WriteSentinel(1138544175);
248
0
            WriteIPDLParam(reply__, this, aOutEvent);
249
0
            // Sentinel = 'aOutEvent'
250
0
            (reply__)->WriteSentinel(1967035324);
251
0
            WriteIPDLParam(reply__, this, aOutTargetGuid);
252
0
            // Sentinel = 'aOutTargetGuid'
253
0
            (reply__)->WriteSentinel(2624786969);
254
0
            WriteIPDLParam(reply__, this, aOutInputBlockId);
255
0
            // Sentinel = 'aOutInputBlockId'
256
0
            (reply__)->WriteSentinel(2625955811);
257
0
258
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
259
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
260
0
            }
261
0
            return MsgProcessed;
262
0
        }
263
0
    case PAPZInputBridge::Msg_ReceivePanGestureInputEvent__ID:
264
0
        {
265
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
266
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
267
0
            }
268
0
            AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceivePanGestureInputEvent", OTHER);
269
0
270
0
            PickleIterator iter__(msg__);
271
0
            PanGestureInput aEvent;
272
0
273
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEvent)))))) {
274
0
                FatalError("Error deserializing 'PanGestureInput'");
275
0
                return MsgValueError;
276
0
            }
277
0
            // Sentinel = 'aEvent'
278
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) {
279
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PanGestureInput'");
280
0
                return MsgValueError;
281
0
            }
282
0
            (msg__).EndRead(iter__, (msg__).type());
283
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
284
0
                FatalError("Transition error");
285
0
                return MsgValueError;
286
0
            }
287
0
            int32_t id__ = Id();
288
0
            nsEventStatus aOutStatus;
289
0
            PanGestureInput aOutEvent;
290
0
            ScrollableLayerGuid aOutTargetGuid;
291
0
            uint64_t aOutInputBlockId;
292
0
            if ((!(RecvReceivePanGestureInputEvent(aEvent, (&(aOutStatus)), (&(aOutEvent)), (&(aOutTargetGuid)), (&(aOutInputBlockId)))))) {
293
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
294
0
                // Error handled in mozilla::ipc::IPCResult
295
0
                return MsgProcessingError;
296
0
            }
297
0
298
0
            reply__ = PAPZInputBridge::Reply_ReceivePanGestureInputEvent(id__);
299
0
300
0
            WriteIPDLParam(reply__, this, aOutStatus);
301
0
            // Sentinel = 'aOutStatus'
302
0
            (reply__)->WriteSentinel(1138544175);
303
0
            WriteIPDLParam(reply__, this, aOutEvent);
304
0
            // Sentinel = 'aOutEvent'
305
0
            (reply__)->WriteSentinel(1967035324);
306
0
            WriteIPDLParam(reply__, this, aOutTargetGuid);
307
0
            // Sentinel = 'aOutTargetGuid'
308
0
            (reply__)->WriteSentinel(2624786969);
309
0
            WriteIPDLParam(reply__, this, aOutInputBlockId);
310
0
            // Sentinel = 'aOutInputBlockId'
311
0
            (reply__)->WriteSentinel(2625955811);
312
0
313
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
314
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
315
0
            }
316
0
            return MsgProcessed;
317
0
        }
318
0
    case PAPZInputBridge::Msg_ReceivePinchGestureInputEvent__ID:
319
0
        {
320
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
321
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
322
0
            }
323
0
            AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceivePinchGestureInputEvent", OTHER);
324
0
325
0
            PickleIterator iter__(msg__);
326
0
            PinchGestureInput aEvent;
327
0
328
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEvent)))))) {
329
0
                FatalError("Error deserializing 'PinchGestureInput'");
330
0
                return MsgValueError;
331
0
            }
332
0
            // Sentinel = 'aEvent'
333
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) {
334
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PinchGestureInput'");
335
0
                return MsgValueError;
336
0
            }
337
0
            (msg__).EndRead(iter__, (msg__).type());
338
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
339
0
                FatalError("Transition error");
340
0
                return MsgValueError;
341
0
            }
342
0
            int32_t id__ = Id();
343
0
            nsEventStatus aOutStatus;
344
0
            PinchGestureInput aOutEvent;
345
0
            ScrollableLayerGuid aOutTargetGuid;
346
0
            uint64_t aOutInputBlockId;
347
0
            if ((!(RecvReceivePinchGestureInputEvent(aEvent, (&(aOutStatus)), (&(aOutEvent)), (&(aOutTargetGuid)), (&(aOutInputBlockId)))))) {
348
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
349
0
                // Error handled in mozilla::ipc::IPCResult
350
0
                return MsgProcessingError;
351
0
            }
352
0
353
0
            reply__ = PAPZInputBridge::Reply_ReceivePinchGestureInputEvent(id__);
354
0
355
0
            WriteIPDLParam(reply__, this, aOutStatus);
356
0
            // Sentinel = 'aOutStatus'
357
0
            (reply__)->WriteSentinel(1138544175);
358
0
            WriteIPDLParam(reply__, this, aOutEvent);
359
0
            // Sentinel = 'aOutEvent'
360
0
            (reply__)->WriteSentinel(1967035324);
361
0
            WriteIPDLParam(reply__, this, aOutTargetGuid);
362
0
            // Sentinel = 'aOutTargetGuid'
363
0
            (reply__)->WriteSentinel(2624786969);
364
0
            WriteIPDLParam(reply__, this, aOutInputBlockId);
365
0
            // Sentinel = 'aOutInputBlockId'
366
0
            (reply__)->WriteSentinel(2625955811);
367
0
368
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
369
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
370
0
            }
371
0
            return MsgProcessed;
372
0
        }
373
0
    case PAPZInputBridge::Msg_ReceiveTapGestureInputEvent__ID:
374
0
        {
375
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
376
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
377
0
            }
378
0
            AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveTapGestureInputEvent", OTHER);
379
0
380
0
            PickleIterator iter__(msg__);
381
0
            TapGestureInput aEvent;
382
0
383
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEvent)))))) {
384
0
                FatalError("Error deserializing 'TapGestureInput'");
385
0
                return MsgValueError;
386
0
            }
387
0
            // Sentinel = 'aEvent'
388
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) {
389
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TapGestureInput'");
390
0
                return MsgValueError;
391
0
            }
392
0
            (msg__).EndRead(iter__, (msg__).type());
393
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
394
0
                FatalError("Transition error");
395
0
                return MsgValueError;
396
0
            }
397
0
            int32_t id__ = Id();
398
0
            nsEventStatus aOutStatus;
399
0
            TapGestureInput aOutEvent;
400
0
            ScrollableLayerGuid aOutTargetGuid;
401
0
            uint64_t aOutInputBlockId;
402
0
            if ((!(RecvReceiveTapGestureInputEvent(aEvent, (&(aOutStatus)), (&(aOutEvent)), (&(aOutTargetGuid)), (&(aOutInputBlockId)))))) {
403
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
404
0
                // Error handled in mozilla::ipc::IPCResult
405
0
                return MsgProcessingError;
406
0
            }
407
0
408
0
            reply__ = PAPZInputBridge::Reply_ReceiveTapGestureInputEvent(id__);
409
0
410
0
            WriteIPDLParam(reply__, this, aOutStatus);
411
0
            // Sentinel = 'aOutStatus'
412
0
            (reply__)->WriteSentinel(1138544175);
413
0
            WriteIPDLParam(reply__, this, aOutEvent);
414
0
            // Sentinel = 'aOutEvent'
415
0
            (reply__)->WriteSentinel(1967035324);
416
0
            WriteIPDLParam(reply__, this, aOutTargetGuid);
417
0
            // Sentinel = 'aOutTargetGuid'
418
0
            (reply__)->WriteSentinel(2624786969);
419
0
            WriteIPDLParam(reply__, this, aOutInputBlockId);
420
0
            // Sentinel = 'aOutInputBlockId'
421
0
            (reply__)->WriteSentinel(2625955811);
422
0
423
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
424
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
425
0
            }
426
0
            return MsgProcessed;
427
0
        }
428
0
    case PAPZInputBridge::Msg_ReceiveScrollWheelInputEvent__ID:
429
0
        {
430
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
431
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
432
0
            }
433
0
            AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveScrollWheelInputEvent", OTHER);
434
0
435
0
            PickleIterator iter__(msg__);
436
0
            ScrollWheelInput aEvent;
437
0
438
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEvent)))))) {
439
0
                FatalError("Error deserializing 'ScrollWheelInput'");
440
0
                return MsgValueError;
441
0
            }
442
0
            // Sentinel = 'aEvent'
443
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) {
444
0
                mozilla::ipc::SentinelReadError("Error deserializing 'ScrollWheelInput'");
445
0
                return MsgValueError;
446
0
            }
447
0
            (msg__).EndRead(iter__, (msg__).type());
448
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
449
0
                FatalError("Transition error");
450
0
                return MsgValueError;
451
0
            }
452
0
            int32_t id__ = Id();
453
0
            nsEventStatus aOutStatus;
454
0
            ScrollWheelInput aOutEvent;
455
0
            ScrollableLayerGuid aOutTargetGuid;
456
0
            uint64_t aOutInputBlockId;
457
0
            if ((!(RecvReceiveScrollWheelInputEvent(aEvent, (&(aOutStatus)), (&(aOutEvent)), (&(aOutTargetGuid)), (&(aOutInputBlockId)))))) {
458
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
459
0
                // Error handled in mozilla::ipc::IPCResult
460
0
                return MsgProcessingError;
461
0
            }
462
0
463
0
            reply__ = PAPZInputBridge::Reply_ReceiveScrollWheelInputEvent(id__);
464
0
465
0
            WriteIPDLParam(reply__, this, aOutStatus);
466
0
            // Sentinel = 'aOutStatus'
467
0
            (reply__)->WriteSentinel(1138544175);
468
0
            WriteIPDLParam(reply__, this, aOutEvent);
469
0
            // Sentinel = 'aOutEvent'
470
0
            (reply__)->WriteSentinel(1967035324);
471
0
            WriteIPDLParam(reply__, this, aOutTargetGuid);
472
0
            // Sentinel = 'aOutTargetGuid'
473
0
            (reply__)->WriteSentinel(2624786969);
474
0
            WriteIPDLParam(reply__, this, aOutInputBlockId);
475
0
            // Sentinel = 'aOutInputBlockId'
476
0
            (reply__)->WriteSentinel(2625955811);
477
0
478
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
479
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
480
0
            }
481
0
            return MsgProcessed;
482
0
        }
483
0
    case PAPZInputBridge::Msg_ReceiveKeyboardInputEvent__ID:
484
0
        {
485
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
486
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
487
0
            }
488
0
            AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ReceiveKeyboardInputEvent", OTHER);
489
0
490
0
            PickleIterator iter__(msg__);
491
0
            KeyboardInput aEvent;
492
0
493
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEvent)))))) {
494
0
                FatalError("Error deserializing 'KeyboardInput'");
495
0
                return MsgValueError;
496
0
            }
497
0
            // Sentinel = 'aEvent'
498
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3531117325)))) {
499
0
                mozilla::ipc::SentinelReadError("Error deserializing 'KeyboardInput'");
500
0
                return MsgValueError;
501
0
            }
502
0
            (msg__).EndRead(iter__, (msg__).type());
503
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
504
0
                FatalError("Transition error");
505
0
                return MsgValueError;
506
0
            }
507
0
            int32_t id__ = Id();
508
0
            nsEventStatus aOutStatus;
509
0
            KeyboardInput aOutEvent;
510
0
            ScrollableLayerGuid aOutTargetGuid;
511
0
            uint64_t aOutInputBlockId;
512
0
            if ((!(RecvReceiveKeyboardInputEvent(aEvent, (&(aOutStatus)), (&(aOutEvent)), (&(aOutTargetGuid)), (&(aOutInputBlockId)))))) {
513
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
514
0
                // Error handled in mozilla::ipc::IPCResult
515
0
                return MsgProcessingError;
516
0
            }
517
0
518
0
            reply__ = PAPZInputBridge::Reply_ReceiveKeyboardInputEvent(id__);
519
0
520
0
            WriteIPDLParam(reply__, this, aOutStatus);
521
0
            // Sentinel = 'aOutStatus'
522
0
            (reply__)->WriteSentinel(1138544175);
523
0
            WriteIPDLParam(reply__, this, aOutEvent);
524
0
            // Sentinel = 'aOutEvent'
525
0
            (reply__)->WriteSentinel(1967035324);
526
0
            WriteIPDLParam(reply__, this, aOutTargetGuid);
527
0
            // Sentinel = 'aOutTargetGuid'
528
0
            (reply__)->WriteSentinel(2624786969);
529
0
            WriteIPDLParam(reply__, this, aOutInputBlockId);
530
0
            // Sentinel = 'aOutInputBlockId'
531
0
            (reply__)->WriteSentinel(2625955811);
532
0
533
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
534
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
535
0
            }
536
0
            return MsgProcessed;
537
0
        }
538
0
    case PAPZInputBridge::Msg_ProcessUnhandledEvent__ID:
539
0
        {
540
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
541
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
542
0
            }
543
0
            AUTO_PROFILER_LABEL("PAPZInputBridge::Msg_ProcessUnhandledEvent", OTHER);
544
0
545
0
            PickleIterator iter__(msg__);
546
0
            LayoutDeviceIntPoint aRefPoint;
547
0
548
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aRefPoint)))))) {
549
0
                FatalError("Error deserializing 'LayoutDeviceIntPoint'");
550
0
                return MsgValueError;
551
0
            }
552
0
            // Sentinel = 'aRefPoint'
553
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2074729999)))) {
554
0
                mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'");
555
0
                return MsgValueError;
556
0
            }
557
0
            (msg__).EndRead(iter__, (msg__).type());
558
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
559
0
                FatalError("Transition error");
560
0
                return MsgValueError;
561
0
            }
562
0
            int32_t id__ = Id();
563
0
            LayoutDeviceIntPoint aOutRefPoint;
564
0
            ScrollableLayerGuid aOutTargetGuid;
565
0
            uint64_t aOutFocusSequenceNumber;
566
0
            if ((!(RecvProcessUnhandledEvent(aRefPoint, (&(aOutRefPoint)), (&(aOutTargetGuid)), (&(aOutFocusSequenceNumber)))))) {
567
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
568
0
                // Error handled in mozilla::ipc::IPCResult
569
0
                return MsgProcessingError;
570
0
            }
571
0
572
0
            reply__ = PAPZInputBridge::Reply_ProcessUnhandledEvent(id__);
573
0
574
0
            WriteIPDLParam(reply__, this, aOutRefPoint);
575
0
            // Sentinel = 'aOutRefPoint'
576
0
            (reply__)->WriteSentinel(4284573792);
577
0
            WriteIPDLParam(reply__, this, aOutTargetGuid);
578
0
            // Sentinel = 'aOutTargetGuid'
579
0
            (reply__)->WriteSentinel(2624786969);
580
0
            WriteIPDLParam(reply__, this, aOutFocusSequenceNumber);
581
0
            // Sentinel = 'aOutFocusSequenceNumber'
582
0
            (reply__)->WriteSentinel(3726393906);
583
0
584
0
            if (mozilla::ipc::LoggingEnabledFor("PAPZInputBridgeParent")) {
585
0
                mozilla::ipc::LogMessageForProtocol("PAPZInputBridgeParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
586
0
            }
587
0
            return MsgProcessed;
588
0
        }
589
0
    default:
590
0
        {
591
0
            return MsgNotKnown;
592
0
        }
593
0
    }
594
0
}
595
596
auto PAPZInputBridgeParent::OnCallReceived(
597
        const Message& msg__,
598
        Message*& reply__) -> PAPZInputBridgeParent::Result
599
0
{
600
0
    MOZ_ASSERT_UNREACHABLE("message protocol not supported");
601
0
    return MsgNotKnown;
602
0
}
603
604
auto PAPZInputBridgeParent::GetProtocolTypeId() -> int32_t
605
0
{
606
0
    return PAPZInputBridgeMsgStart;
607
0
}
608
609
auto PAPZInputBridgeParent::DestroySubtree(ActorDestroyReason why) -> void
610
0
{
611
0
    // Unregister from our manager.
612
0
    Unregister(Id());
613
0
614
0
    // Reject owning pending responses.
615
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
616
0
617
0
    // Finally, destroy "us".
618
0
    ActorDestroy(why);
619
0
}
620
621
auto PAPZInputBridgeParent::DeallocSubtree() -> void
622
0
{
623
0
}
624
625
626
627
} // namespace layers
628
} // namespace mozilla
629
namespace mozilla {
630
namespace ipc {
631
auto IPDLParamTraits<mozilla::layers::PAPZInputBridgeParent>::Write(
632
        IPC::Message* aMsg,
633
        mozilla::ipc::IProtocol* aActor,
634
        const paramType& aVar) -> void
635
0
{
636
0
    int32_t id;
637
0
    if ((!(aVar))) {
638
0
        id = 0;
639
0
    }
640
0
    else {
641
0
        id = (aVar)->Id();
642
0
        if ((1) == (id)) {
643
0
            (aActor)->FatalError("actor has been |delete|d");
644
0
        }
645
0
    }
646
0
    WriteIPDLParam(aMsg, aActor, id);
647
0
}
648
649
auto IPDLParamTraits<mozilla::layers::PAPZInputBridgeParent>::Read(
650
        const IPC::Message* aMsg,
651
        PickleIterator* aIter,
652
        mozilla::ipc::IProtocol* aActor,
653
        paramType* aVar) -> bool
654
0
{
655
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PAPZInputBridge", PAPZInputBridgeMsgStart);
656
0
    if ((actor).isNothing()) {
657
0
        return false;
658
0
    }
659
0
660
0
    (*(aVar)) = static_cast<mozilla::layers::PAPZInputBridgeParent*>((actor).value());
661
0
    return true;
662
0
}
663
664
} // namespace ipc
665
} // namespace mozilla