| 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: Do not edit - generated code. |
| 6 |
| 7 /// @domName Notification |
| 8 interface Notification extends EventTarget default _NotificationFactoryProvider
{ |
| 9 |
| 10 Notification(String title, [Map options]); |
| 11 |
| 12 /** |
| 13 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 14 */ |
| 15 NotificationEvents get on(); |
| 16 |
| 17 /** @domName Notification.dir */ |
| 18 String dir; |
| 19 |
| 20 /** @domName Notification.replaceId */ |
| 21 String replaceId; |
| 22 |
| 23 /** @domName Notification.tag */ |
| 24 String tag; |
| 25 |
| 26 /** @domName Notification.addEventListener */ |
| 27 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 28 |
| 29 /** @domName Notification.cancel */ |
| 30 void cancel(); |
| 31 |
| 32 /** @domName Notification.close */ |
| 33 void close(); |
| 34 |
| 35 /** @domName Notification.dispatchEvent */ |
| 36 bool $dom_dispatchEvent(Event evt); |
| 37 |
| 38 /** @domName Notification.removeEventListener */ |
| 39 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 40 |
| 41 /** @domName Notification.show */ |
| 42 void show(); |
| 43 } |
| 44 |
| 45 interface NotificationEvents extends Events { |
| 46 |
| 47 EventListenerList get click(); |
| 48 |
| 49 EventListenerList get close(); |
| 50 |
| 51 EventListenerList get display(); |
| 52 |
| 53 EventListenerList get error(); |
| 54 |
| 55 EventListenerList get show(); |
| 56 } |
| OLD | NEW |