| 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> API to create rich notifications |
| 6 // using templates and show these notifications to users in the system tray. |
| 5 namespace notifications { | 7 namespace notifications { |
| 6 [noinline_doc] enum TemplateType { | 8 [noinline_doc] enum TemplateType { |
| 7 // icon, title, message, expandedMessage, up to two buttons | 9 // icon, title, message, expandedMessage, up to two buttons |
| 8 basic, | 10 basic, |
| 9 | 11 |
| 10 // icon, title, message, expandedMessage, image, up to two buttons | 12 // icon, title, message, expandedMessage, image, up to two buttons |
| 11 image, | 13 image, |
| 12 | 14 |
| 13 // icon, title, message, items, up to two buttons | 15 // icon, title, message, items, up to two buttons |
| 14 list | 16 list |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 static void onClosed(DOMString notificationId, boolean byUser); | 113 static void onClosed(DOMString notificationId, boolean byUser); |
| 112 | 114 |
| 113 // The user clicked in a non-button area of the notification. | 115 // The user clicked in a non-button area of the notification. |
| 114 static void onClicked(DOMString notificationId); | 116 static void onClicked(DOMString notificationId); |
| 115 | 117 |
| 116 // The user pressed a button in the notification. | 118 // The user pressed a button in the notification. |
| 117 static void onButtonClicked(DOMString notificationId, long buttonIndex); | 119 static void onButtonClicked(DOMString notificationId, long buttonIndex); |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 }; | 122 }; |
| OLD | NEW |