| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // Use the <code>chrome.notifications</code> module to create rich notifications |
| 6 // using templates and show these notifications to users in the system tray. |
| 7 |
| 8 [availability=dev] |
| 5 namespace notifications { | 9 namespace notifications { |
| 6 enum TemplateType { | 10 enum TemplateType { |
| 7 // icon, title, message | 11 // icon, title, message |
| 8 simple, | 12 simple, |
| 9 | 13 |
| 10 // icon, title, message, expandedMessage, up to two buttons | 14 // icon, title, message, expandedMessage, up to two buttons |
| 11 basic, | 15 basic, |
| 12 | 16 |
| 13 // icon, title, message, expandedMessage, image, up to two buttons | 17 // icon, title, message, expandedMessage, image, up to two buttons |
| 14 image, | 18 image, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 static void onClosed(DOMString notificationId, boolean byUser); | 111 static void onClosed(DOMString notificationId, boolean byUser); |
| 108 | 112 |
| 109 // The user clicked in a non-button area of the notification. | 113 // The user clicked in a non-button area of the notification. |
| 110 static void onClicked(DOMString notificationId); | 114 static void onClicked(DOMString notificationId); |
| 111 | 115 |
| 112 // The user pressed a button in the notification. | 116 // The user pressed a button in the notification. |
| 113 static void onButtonClicked(DOMString notificationId, long buttonIndex); | 117 static void onButtonClicked(DOMString notificationId, long buttonIndex); |
| 114 }; | 118 }; |
| 115 | 119 |
| 116 }; | 120 }; |
| OLD | NEW |