Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
d1e62a39
Commit
d1e62a39
authored
Nov 13, 2015
by
John McCutchan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update four callers of Message constructor to pass in required arguments
parent
3def4fdc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
hello_world.dart
examples/raw/hello_world.dart
+2
-1
spinning_image.dart
examples/raw/spinning_image.dart
+2
-1
interactive_flex.dart
examples/rendering/interactive_flex.dart
+3
-1
binding.dart
packages/flutter/lib/src/rendering/binding.dart
+4
-1
No files found.
examples/raw/hello_world.dart
View file @
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
)
{
...
...
examples/raw/spinning_image.dart
View file @
d1e62a39
...
...
@@ -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
)
{
...
...
examples/rendering/interactive_flex.dart
View file @
d1e62a39
...
...
@@ -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
);
...
...
packages/flutter/lib/src/rendering/binding.dart
View file @
d1e62a39
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment