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