Move mojo frontend into services.dart

What's important about this code is that it's presenting services outside the
VM, not the particular technology used to present the services.
This commit is contained in:
Adam Barth
2015-09-16 19:09:03 -07:00
parent 6c593002aa
commit 5abb242329

View File

@@ -4,7 +4,7 @@
import 'dart:sky' as sky;
import 'dart:math';
import 'package:sky/mojo/activity.dart' as activity;
import 'package:sky/services.dart';
import 'package:sky/painting.dart';
import 'package:sky/rendering.dart';
import 'package:sky/theme/colors.dart' as colors;
@@ -113,7 +113,7 @@ class MineDiggerApp extends App {
probe(ix, iy);
},
onLongPress: () {
activity.userFeedback.performHapticFeedback(activity.HapticFeedbackType_LONG_PRESS);
userFeedback.performHapticFeedback(HapticFeedbackType_LONG_PRESS);
flag(ix, iy);
},
child: new Listener(