Commit 56a81089 authored by John McCutchan's avatar John McCutchan

Merge pull request #368 from johnmccutchan/fix_message_api_breakage

Update four callers of Message constructor to pass in required arguments
parents 3def4fdc d1e62a39
......@@ -54,7 +54,8 @@ void handleEvent(String eventType, double timeStamp) {
void handlePointerPacket(ByteData serializedPacket) {
bindings.Message message = new bindings.Message(
serializedPacket, <core.MojoHandle>[]);
serializedPacket, <core.MojoHandle>[],
serializedPacket.lengthInBytes, 0);
PointerPacket packet = PointerPacket.deserialize(message);
for (Pointer pointer in packet.pointers) {
......
......@@ -83,7 +83,8 @@ void handleImageLoad(result) {
void handlePointerPacket(ByteData serializedPacket) {
bindings.Message message = new bindings.Message(
serializedPacket, <core.MojoHandle>[]);
serializedPacket, <core.MojoHandle>[],
serializedPacket.lengthInBytes, 0);
PointerPacket packet = PointerPacket.deserialize(message);
for (Pointer pointer in packet.pointers) {
......
......@@ -47,7 +47,9 @@ final Map<int, Touch> touches = <int, Touch>{};
void handlePointerPacket(ByteData serializedPacket) {
bindings.Message message = new bindings.Message(
serializedPacket,
<core.MojoHandle>[]
<core.MojoHandle>[],
serializedPacket.lengthInBytes,
0
);
PointerPacket packet = PointerPacket.deserialize(message);
......
......@@ -212,7 +212,10 @@ class FlutterBinding extends HitTestTarget {
void _handlePointerPacket(ByteData serializedPacket) {
bindings.Message message = new bindings.Message(
serializedPacket, <core.MojoHandle>[]);
serializedPacket,
<core.MojoHandle>[],
serializedPacket.lengthInBytes,
0);
PointerPacket packet = PointerPacket.deserialize(message);
for (PointerInputEvent event in _PointerEventConverter.convertPointerPacket(packet)) {
_handlePointerInputEvent(event);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment