993ae5ede1d4f97597272472edfdf36299dc29af
[iec.git] / src / type3_AndroidCloud / anbox-master / src / anbox / protobuf / anbox_bridge.proto
1 option optimize_for = LITE_RUNTIME;
2
3 package anbox.protobuf.bridge;
4
5 message StructuredError {
6   optional uint32 domain = 1;
7   optional uint32 code = 2;
8 }
9
10 message Intent {
11     optional string action = 1;
12     optional string uri = 2;
13     optional string type = 3;
14     optional string package = 4;
15     optional string component = 5;
16     repeated string categories = 6;
17 }
18
19 message Rect {
20     optional int32 left = 1;
21     optional int32 top = 2;
22     optional int32 right = 3;
23     optional int32 bottom = 4;
24 }
25
26 message Notification {
27     required string package_name = 1;
28     required string category = 2;
29     required string title = 3;
30     optional string ticker_text = 4;
31     optional string text = 5;
32 }
33
34 message LaunchApplication {
35     required Intent intent = 1;
36     optional Rect launch_bounds = 2;
37     enum Stack {
38       DEFAULT = 0;
39       FULLSCREEN = 1;
40       FREEFORM = 2;
41     }
42     optional Stack stack = 3 [default = DEFAULT];
43 }
44
45 message SetFocusedTask {
46     required int32 id = 1;
47 }
48
49 message RemoveTask {
50     required int32 id = 1;
51 }
52
53 message ResizeTask {
54     required int32 id = 1;
55     required int32 resize_mode = 2;
56     required Rect rect = 3;
57 }
58
59 message ClipboardData {
60     optional string text = 1;
61
62     optional string error = 127;
63     optional StructuredError structured_error = 128;
64 }
65
66 message BootFinishedEvent {
67     optional bool first_boot_done = 1;
68 }
69
70 message WindowStateUpdateEvent {
71     message WindowState {
72         required int32 display_id = 1;
73         required bool has_surface = 2;
74         required string package_name = 3;
75         required int32 frame_left = 4;
76         required int32 frame_top = 5;
77         required int32 frame_right = 6;
78         required int32 frame_bottom = 7;
79         required int32 task_id = 8;
80         required int32 stack_id = 9;
81     }
82     repeated WindowState windows = 1;
83     repeated WindowState removed_windows = 2;
84 }
85
86 message ApplicationListUpdateEvent {
87     message Application {
88         required string name = 1;
89         required string package = 2;
90         optional Intent launch_intent = 3;
91         optional bytes icon = 4;
92     }
93     repeated Application applications = 1;
94     repeated Application removed_applications = 2;
95 }
96
97 message EventSequence {
98     optional BootFinishedEvent boot_finished = 1;
99     optional WindowStateUpdateEvent window_state_update = 2;
100     optional ApplicationListUpdateEvent application_list_update = 3;
101
102     optional string error = 127;
103     optional StructuredError structured_error = 128;
104 }