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