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 module intents; | 5 module intents; |
6 | 6 |
| 7 struct ComponentName { |
| 8 string package_name; |
| 9 string class_name; |
| 10 }; |
| 11 |
7 struct Intent { | 12 struct Intent { |
8 string action; | 13 string action; |
9 string url; | 14 string url; |
| 15 ComponentName? component; |
10 }; | 16 }; |
11 | 17 |
12 // TODO(abarth): This interface seems very specific to Android. Do we want to | 18 // TODO(abarth): This interface seems very specific to Android. Do we want to |
13 // have a higher-level abstraction here? Do we want a collection | 19 // have a higher-level abstraction here? Do we want a collection |
14 // of services that only work on specific platforms? We need to | 20 // of services that only work on specific platforms? We need to |
15 // figure out how to rationalize this interface across platforms. | 21 // figure out how to rationalize this interface across platforms. |
16 interface ActivityManager { | 22 interface ActivityManager { |
17 startActivity(Intent intent); | 23 startActivity(Intent intent); |
18 }; | 24 }; |
OLD | NEW |