OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 module intents; | |
6 | |
7 struct StringExtra { | |
8 string name; | |
9 string value; | |
10 }; | |
11 | |
12 struct ComponentName { | |
13 string package_name; | |
14 string class_name; | |
15 }; | |
16 | |
17 struct Intent { | |
18 string action; | |
19 string url; | |
20 uint32 flags; | |
21 ComponentName? component; | |
22 array<StringExtra>? string_extras; | |
23 }; | |
24 | |
25 struct TaskDescription { | |
26 string? label; | |
27 uint32 primaryColor; | |
28 }; | |
29 | |
30 // TODO(abarth): This interface seems very specific to Android. Do we want to | |
31 // have a higher-level abstraction here? Do we want a collection | |
32 // of services that only work on specific platforms? We need to | |
33 // figure out how to rationalize this interface across platforms. | |
34 interface ActivityManager { | |
35 startActivity(Intent intent); | |
36 finishCurrentActivity(); | |
37 setTaskDescription(TaskDescription description); | |
38 }; | |
OLD | NEW |