| 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 // Next MinVersion: 11 | 5 // Next MinVersion: 11 |
| 6 | 6 |
| 7 module arc.mojom; | 7 module arc.mojom; |
| 8 | 8 |
| 9 import "bitmap.mojom"; | 9 import "bitmap.mojom"; |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 string label; | 48 string label; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 [Extensible, MinVersion=10] | 51 [Extensible, MinVersion=10] |
| 52 enum ArcNotificationExpandState { | 52 enum ArcNotificationExpandState { |
| 53 FIXED_SIZE = 0, | 53 FIXED_SIZE = 0, |
| 54 COLLAPSED = 1, | 54 COLLAPSED = 1, |
| 55 EXPANDED = 2, | 55 EXPANDED = 2, |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 // These values represent what shows in an ARC custom notification. |
| 59 [Extensible, MinVersion=11] |
| 60 enum ArcNotificationShownContents { |
| 61 // The normal notification contents are shown. |
| 62 CONTENTS_SHOWN = 0, |
| 63 // The notification settings view is shown. |
| 64 SETTINGS_SHOWN = 1, |
| 65 }; |
| 66 |
| 58 struct ArcNotificationData { | 67 struct ArcNotificationData { |
| 59 // Identifier of notification | 68 // Identifier of notification |
| 60 string key; | 69 string key; |
| 61 // Type of notification | 70 // Type of notification |
| 62 ArcNotificationType type; | 71 ArcNotificationType type; |
| 63 // Body message of notification | 72 // Body message of notification |
| 64 string message; | 73 string message; |
| 65 // Title of notification | 74 // Title of notification |
| 66 string title; | 75 string title; |
| 67 // Mimetype of |icon_data| | 76 // Mimetype of |icon_data| |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 [MinVersion=7] | 110 [MinVersion=7] |
| 102 ArcBitmap? snapshot_image; | 111 ArcBitmap? snapshot_image; |
| 103 [MinVersion=7] | 112 [MinVersion=7] |
| 104 float snapshot_image_scale; | 113 float snapshot_image_scale; |
| 105 // Accessibility text | 114 // Accessibility text |
| 106 [MinVersion=8] | 115 [MinVersion=8] |
| 107 string? accessible_name; | 116 string? accessible_name; |
| 108 // Flag if the notification is expandable | 117 // Flag if the notification is expandable |
| 109 [MinVersion=10] | 118 [MinVersion=10] |
| 110 ArcNotificationExpandState expand_state; | 119 ArcNotificationExpandState expand_state; |
| 120 // Flag for what shows in a notification. |
| 121 [MinVersion=11] |
| 122 ArcNotificationShownContents shown_contents; |
| 111 }; | 123 }; |
| 112 | 124 |
| 113 [MinVersion=2] | 125 [MinVersion=2] |
| 114 struct ArcToastData { | 126 struct ArcToastData { |
| 115 // Unique identifier | 127 // Unique identifier |
| 116 string id; | 128 string id; |
| 117 // Toast text. | 129 // Toast text. |
| 118 string? text; | 130 string? text; |
| 119 // Toast duration in milliseconds. If -1, the toast will be displayed until | 131 // Toast duration in milliseconds. If -1, the toast will be displayed until |
| 120 // the dismiss button is clicked. | 132 // the dismiss button is clicked. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // side. | 176 // side. |
| 165 [MinVersion=7] | 177 [MinVersion=7] |
| 166 CloseNotificationWindow@3(string key); | 178 CloseNotificationWindow@3(string key); |
| 167 | 179 |
| 168 // Requests to Android side to open notification settings. | 180 // Requests to Android side to open notification settings. |
| 169 // |key| is the identifier of the notification which is generated by Android | 181 // |key| is the identifier of the notification which is generated by Android |
| 170 // side. | 182 // side. |
| 171 [MinVersion=9] | 183 [MinVersion=9] |
| 172 OpenNotificationSettings@4(string key); | 184 OpenNotificationSettings@4(string key); |
| 173 }; | 185 }; |
| OLD | NEW |