Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Unified Diff: sky/sdk/lib/widgets/widget.dart

Issue 1214073014: Back button should kill interactive flex app (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase and add missing file Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/lib/mojo/activity.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/widget.dart
diff --git a/sky/sdk/lib/widgets/widget.dart b/sky/sdk/lib/widgets/widget.dart
index 7fdda3973af287e747170885bf277c8fb789218d..fa640d72aed6fce22f9c8f21fa9dbd08c28c3a5e 100644
--- a/sky/sdk/lib/widgets/widget.dart
+++ b/sky/sdk/lib/widgets/widget.dart
@@ -7,8 +7,7 @@ import 'dart:collection';
import 'dart:mirrors';
import 'dart:sky' as sky;
-import 'package:mojom/intents/intents.mojom.dart';
-import 'package:sky/mojo/shell.dart' as shell;
+import 'package:sky/mojo/activity.dart' as activity;
abarth-chromium 2015/07/07 19:22:49 We should make these imports consistent.
import '../base/hit_test.dart';
import '../rendering/box.dart';
@@ -1007,9 +1006,7 @@ abstract class App extends StatefulComponent {
// Override this to handle back button behavior in your app
// Call super.onBack() to finish the activity
void onBack() {
- ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound();
- shell.requestService('mojo:sky_viewer', activityManager);
- activityManager.ptr.finishCurrentActivity();
+ activity.finishCurrentActivity();
}
}
« no previous file with comments | « sky/sdk/lib/mojo/activity.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698