| 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 arc; | 5 module arc.mojom; |
| 6 | 6 |
| 7 // These values must be matched with the NOTIFICATION_EVENT_* constants in | 7 // These values must be matched with the NOTIFICATION_EVENT_* constants in |
| 8 // com.android.server.ArcNotificationListenerService. | 8 // com.android.server.ArcNotificationListenerService. |
| 9 enum ArcNotificationEvent { | 9 enum ArcNotificationEvent { |
| 10 BODY_CLICKED = 0, | 10 BODY_CLICKED = 0, |
| 11 CLOSED = 1, | 11 CLOSED = 1, |
| 12 // Five buttons at maximum (message_center::kNotificationMaximumItems = 5). | 12 // Five buttons at maximum (message_center::kNotificationMaximumItems = 5). |
| 13 BUTTON_1_CLICKED = 2, | 13 BUTTON_1_CLICKED = 2, |
| 14 BUTTON_2_CLICKED = 3, | 14 BUTTON_2_CLICKED = 3, |
| 15 BUTTON_3_CLICKED = 4, | 15 BUTTON_3_CLICKED = 4, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // TODO(lhchavez): Migrate all request/response messages to Mojo. | 95 // TODO(lhchavez): Migrate all request/response messages to Mojo. |
| 96 interface NotificationsInstance { | 96 interface NotificationsInstance { |
| 97 // Establishes full-duplex communication with the host. | 97 // Establishes full-duplex communication with the host. |
| 98 Init(NotificationsHost host_ptr); | 98 Init(NotificationsHost host_ptr); |
| 99 | 99 |
| 100 // Sends an event from Chrome notification UI to Android. | 100 // Sends an event from Chrome notification UI to Android. |
| 101 // |event| is a type of occured event. | 101 // |event| is a type of occured event. |
| 102 SendNotificationEventToAndroid(string key, ArcNotificationEvent event); | 102 SendNotificationEventToAndroid(string key, ArcNotificationEvent event); |
| 103 }; | 103 }; |
| OLD | NEW |