| 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 | 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. | 6 // using templates and show these notifications to users in the system tray. |
| 7 namespace notifications { | 7 [use_movable_types=true] namespace notifications { |
| 8 [noinline_doc] enum TemplateType { | 8 [noinline_doc] enum TemplateType { |
| 9 // icon, title, message, expandedMessage, up to two buttons | 9 // icon, title, message, expandedMessage, up to two buttons |
| 10 basic, | 10 basic, |
| 11 | 11 |
| 12 // icon, title, message, expandedMessage, image, up to two buttons | 12 // icon, title, message, expandedMessage, image, up to two buttons |
| 13 image, | 13 image, |
| 14 | 14 |
| 15 // icon, title, message, items, up to two buttons | 15 // icon, title, message, items, up to two buttons |
| 16 list, | 16 list, |
| 17 | 17 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 // The user changes the permission level. As of Chrome 47, only ChromeOS | 188 // The user changes the permission level. As of Chrome 47, only ChromeOS |
| 189 // has UI that dispatches this event. | 189 // has UI that dispatches this event. |
| 190 static void onPermissionLevelChanged(PermissionLevel level); | 190 static void onPermissionLevelChanged(PermissionLevel level); |
| 191 | 191 |
| 192 // The user clicked on a link for the app's notification settings. As of | 192 // The user clicked on a link for the app's notification settings. As of |
| 193 // Chrome 47, only ChromeOS has UI that dispatches this event. | 193 // Chrome 47, only ChromeOS has UI that dispatches this event. |
| 194 static void onShowSettings(); | 194 static void onShowSettings(); |
| 195 }; | 195 }; |
| 196 }; | 196 }; |
| OLD | NEW |