| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // WARNING: | |
| 6 // This file contains documentation that is merged into the real source. | |
| 7 // Do not make code changes here. | |
| 8 | |
| 9 /// @domName NotificationCenter | |
| 10 interface NotificationCenter { | |
| 11 | |
| 12 /** @domName NotificationCenter.checkPermission */ | |
| 13 int checkPermission(); | |
| 14 | |
| 15 /** @domName NotificationCenter.createHTMLNotification */ | |
| 16 Notification createHTMLNotification(String url); | |
| 17 | |
| 18 /** @domName NotificationCenter.createNotification */ | |
| 19 Notification createNotification(String iconUrl, String title, String body); | |
| 20 | |
| 21 /** @domName NotificationCenter.requestPermission */ | |
| 22 void requestPermission(VoidCallback callback); | |
| 23 } | |
| OLD | NEW |