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

Unified Diff: sky/sdk/lib/mojo/activity.dart

Issue 1223053002: mv //sky/services/intents //sky/services/activity (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
index 6c6fe6e7e79cde58ace2f0bdd330d34cdd6fb582..4a5ddf3dfb2b85173f4639e2b6ca2c073c20a9f8 100644
--- a/sky/sdk/lib/mojo/activity.dart
+++ b/sky/sdk/lib/mojo/activity.dart
@@ -3,32 +3,33 @@
// found in the LICENSE file.
import 'dart:sky';
-import 'package:mojom/intents/intents.mojom.dart';
+import 'package:mojom/activity/activity.mojom.dart';
import 'package:sky/mojo/shell.dart' as shell;
-export 'package:mojom/intents/intents.mojom.dart' show Intent, ComponentName, StringExtra;
+
+export 'package:mojom/activity/activity.mojom.dart' show Intent, ComponentName, StringExtra;
const int NEW_DOCUMENT = 0x00080000;
const int NEW_TASK = 0x10000000;
const int MULTIPLE_TASK = 0x08000000;
-ActivityManagerProxy _initActivityManager() {
- ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound();
- shell.requestService('mojo:sky_viewer', activityManager);
- return activityManager;
+ActivityProxy _initActivity() {
+ ActivityProxy activity = new ActivityProxy.unbound();
+ shell.requestService('mojo:sky_viewer', activity);
+ return activity;
}
-final ActivityManagerProxy _activityManager = _initActivityManager();
+final ActivityProxy _activity = _initActivity();
Color _cachedPrimaryColor;
String _cachedLabel;
void finishCurrentActivity() {
- _activityManager.ptr.finishCurrentActivity();
+ _activity.ptr.finishCurrentActivity();
}
void startActivity(Intent intent) {
- _activityManager.ptr.startActivity(intent);
+ _activity.ptr.startActivity(intent);
}
void updateTaskDescription(String label, Color color) {
@@ -42,5 +43,5 @@ void updateTaskDescription(String label, Color color) {
..label = label
..primaryColor = (color != null ? color.value : null);
- _activityManager.ptr.setTaskDescription(description);
+ _activity.ptr.setTaskDescription(description);
}
« no previous file with comments | « sky/sdk/example/demo_launcher/apk/org/domokit/sky/demo/SkyDemoApplication.java ('k') | sky/services/activity/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698