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

Side by Side Diff: sky/sdk/lib/mojo/activity.dart

Issue 1218293017: Deploy TaskDescription to the rest of our demos (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 unified diff | Download patch
« no previous file with comments | « sky/sdk/example/widgets/sector.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'dart:sky'; 5 import 'dart:sky';
6 import 'package:mojom/intents/intents.mojom.dart'; 6 import 'package:mojom/intents/intents.mojom.dart';
7 import 'package:sky/mojo/shell.dart' as shell; 7 import 'package:sky/mojo/shell.dart' as shell;
8 export 'package:mojom/intents/intents.mojom.dart' show Intent, ComponentName, St ringExtra;
8 9
9 const int NEW_DOCUMENT = 0x00080000; 10 const int NEW_DOCUMENT = 0x00080000;
10 const int NEW_TASK = 0x10000000; 11 const int NEW_TASK = 0x10000000;
11 const int MULTIPLE_TASK = 0x08000000; 12 const int MULTIPLE_TASK = 0x08000000;
12 13
13 ActivityManagerProxy _initActivityManager() { 14 ActivityManagerProxy _initActivityManager() {
14 ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound(); 15 ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound();
15 shell.requestService('mojo:sky_viewer', activityManager); 16 shell.requestService('mojo:sky_viewer', activityManager);
16 return activityManager; 17 return activityManager;
17 } 18 }
(...skipping 18 matching lines...) Expand all
36 37
37 _cachedPrimaryColor = color; 38 _cachedPrimaryColor = color;
38 _cachedLabel = label; 39 _cachedLabel = label;
39 40
40 TaskDescription description = new TaskDescription() 41 TaskDescription description = new TaskDescription()
41 ..label = label 42 ..label = label
42 ..primaryColor = (color != null ? color.value : null); 43 ..primaryColor = (color != null ? color.value : null);
43 44
44 _activityManager.ptr.setTaskDescription(description); 45 _activityManager.ptr.setTaskDescription(description);
45 } 46 }
OLDNEW
« no previous file with comments | « sky/sdk/example/widgets/sector.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698