fix framework to match new mojo sdk

The dart bindings changed semantics in a non-compatible way.
This commit is contained in:
Hixie
2016-01-15 15:06:49 -08:00
parent b55dfd607c
commit df78ec2b24
15 changed files with 33 additions and 32 deletions

View File

@@ -57,10 +57,10 @@ void handlePointerPacket(ByteData serializedPacket) {
PointerPacket packet = PointerPacket.deserialize(message);
for (Pointer pointer in packet.pointers) {
if (pointer.type == PointerType.DOWN) {
if (pointer.type == PointerType.down) {
color = new ui.Color.fromARGB(255, 0, 0, 255);
ui.window.scheduleFrame();
} else if (pointer.type == PointerType.UP) {
} else if (pointer.type == PointerType.up) {
color = new ui.Color.fromARGB(255, 0, 255, 0);
ui.window.scheduleFrame();
}

View File

@@ -88,7 +88,7 @@ void handlePointerPacket(ByteData serializedPacket) {
PointerPacket packet = PointerPacket.deserialize(message);
for (Pointer pointer in packet.pointers) {
if (pointer.type == PointerType.UP) {
if (pointer.type == PointerType.up) {
imageCache.load(url2).first.then(handleImageLoad);
}
}