| 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 |
| 6 import 'package:mojom/activity/activity.mojom.dart'; | 7 import 'package:mojom/activity/activity.mojom.dart'; |
| 7 import 'package:sky/mojo/shell.dart' as shell; | 8 import 'package:sky/mojo/shell.dart' as shell; |
| 8 | 9 |
| 9 export 'package:mojom/activity/activity.mojom.dart' show Intent, ComponentName,
StringExtra; | 10 export 'package:mojom/activity/activity.mojom.dart' show Intent, ComponentName,
StringExtra; |
| 10 | 11 |
| 11 const int NEW_DOCUMENT = 0x00080000; | 12 const int NEW_DOCUMENT = 0x00080000; |
| 12 const int NEW_TASK = 0x10000000; | 13 const int NEW_TASK = 0x10000000; |
| 13 const int MULTIPLE_TASK = 0x08000000; | 14 const int MULTIPLE_TASK = 0x08000000; |
| 14 | 15 |
| 15 ActivityProxy _initActivity() { | 16 ActivityProxy _initActivity() { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 38 | 39 |
| 39 _cachedPrimaryColor = color; | 40 _cachedPrimaryColor = color; |
| 40 _cachedLabel = label; | 41 _cachedLabel = label; |
| 41 | 42 |
| 42 TaskDescription description = new TaskDescription() | 43 TaskDescription description = new TaskDescription() |
| 43 ..label = label | 44 ..label = label |
| 44 ..primaryColor = (color != null ? color.value : null); | 45 ..primaryColor = (color != null ? color.value : null); |
| 45 | 46 |
| 46 _activity.ptr.setTaskDescription(description); | 47 _activity.ptr.setTaskDescription(description); |
| 47 } | 48 } |
| OLD | NEW |