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

Unified Diff: sky/sdk/lib/mojo/activity.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
Index: sky/sdk/lib/mojo/activity.dart
diff --git a/sky/sdk/lib/mojo/activity.dart b/sky/sdk/lib/mojo/activity.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5ddfc7db28af192d147ff4714a5e6814f3d19d0a
--- /dev/null
+++ b/sky/sdk/lib/mojo/activity.dart
@@ -0,0 +1,12 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'package:mojom/intents/intents.mojom.dart';
+import 'package:sky/mojo/shell.dart' as shell;
+
+void finishCurrentActivity() {
+ ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound();
+ shell.requestService('mojo:sky_viewer', activityManager);
+ activityManager.ptr.finishCurrentActivity();
+}

Powered by Google App Engine
This is Rietveld 408576698