OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011, 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: Do not edit - generated code. | |
6 | |
7 class _NotificationCenterWrappingImplementation extends DOMWrapperBase implement
s NotificationCenter { | |
8 _NotificationCenterWrappingImplementation() : super() {} | |
9 | |
10 static create__NotificationCenterWrappingImplementation() native { | |
11 return new _NotificationCenterWrappingImplementation(); | |
12 } | |
13 | |
14 int checkPermission() { | |
15 return _checkPermission(this); | |
16 } | |
17 static int _checkPermission(receiver) native; | |
18 | |
19 Notification createHTMLNotification(String url) { | |
20 return _createHTMLNotification(this, url); | |
21 } | |
22 static Notification _createHTMLNotification(receiver, url) native; | |
23 | |
24 Notification createNotification(String iconUrl, String title, String body) { | |
25 return _createNotification(this, iconUrl, title, body); | |
26 } | |
27 static Notification _createNotification(receiver, iconUrl, title, body) native
; | |
28 | |
29 void requestPermission(VoidCallback callback) { | |
30 _requestPermission(this, callback); | |
31 return; | |
32 } | |
33 static void _requestPermission(receiver, callback) native; | |
34 | |
35 String get typeName() { return "NotificationCenter"; } | |
36 } | |
OLD | NEW |