Chromium Code Reviews| Index: components/arc/common/notifications.mojom |
| diff --git a/components/arc/common/notifications.mojom b/components/arc/common/notifications.mojom |
| index f1864a02abbefd344ebc1838faf16ad9cd404b7e..d95d29c2e149b568ae03ceda525f89792ab23dfc 100644 |
| --- a/components/arc/common/notifications.mojom |
| +++ b/components/arc/common/notifications.mojom |
| @@ -2,7 +2,7 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // |
| -// Next MinVersion: 10 |
| +// Next MinVersion: 11 |
| module arc.mojom; |
| @@ -20,6 +20,8 @@ enum ArcNotificationEvent { |
| BUTTON_3_CLICKED = 4, |
| BUTTON_4_CLICKED = 5, |
| BUTTON_5_CLICKED = 6, |
| + // expand/collapse the bundled notification |
| + [MinVersion=10] TOGGLE_EXPANSION = 7, |
| }; |
| // These values must be matched with the NOTIFICATION_TYPE_* constants in |
| @@ -36,6 +38,12 @@ struct ArcNotificationButton { |
| string label; |
| }; |
| +enum ArcNotificationExpandState { |
|
dcheng
2017/03/28 02:29:25
Is the general rule for [Extensible] that we mark
|
| + FIXED_SIZE = 0, |
| + COLLAPSED = 1, |
| + EXPANDED = 2, |
| +}; |
| + |
| struct ArcNotificationData { |
| // Identifier of notification |
| string key; |
| @@ -86,6 +94,9 @@ struct ArcNotificationData { |
| // Accessibility text |
| [MinVersion=8] |
| string? accessible_name; |
| + // Flag if the notification is expandable |
| + [MinVersion=10] |
| + ArcNotificationExpandState expand_state; |
| }; |
| [MinVersion=2] |