| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |