OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 26 matching lines...) Expand all Loading... |
37 Exposed=(Window,Worker), | 37 Exposed=(Window,Worker), |
38 MeasureAs=NotificationCreated, | 38 MeasureAs=NotificationCreated, |
39 RaisesException=Constructor, | 39 RaisesException=Constructor, |
40 RuntimeEnabled=Notifications, | 40 RuntimeEnabled=Notifications, |
41 ] interface Notification : EventTarget { | 41 ] interface Notification : EventTarget { |
42 [CallWith=ExecutionContext, MeasureAs=NotificationPermission] static readonl
y attribute DOMString permission; | 42 [CallWith=ExecutionContext, MeasureAs=NotificationPermission] static readonl
y attribute DOMString permission; |
43 [CallWith=ExecutionContext, MeasureAs=NotificationPermissionRequested] stati
c void requestPermission(optional NotificationPermissionCallback callback); | 43 [CallWith=ExecutionContext, MeasureAs=NotificationPermissionRequested] stati
c void requestPermission(optional NotificationPermissionCallback callback); |
44 | 44 |
45 // FIXME: Implement the Notification.get() method. | 45 // FIXME: Implement the Notification.get() method. |
46 | 46 |
| 47 [RuntimeEnabled=NotificationExperimental] static readonly attribute unsigned
long maxActions; |
| 48 |
47 attribute EventHandler onclick; | 49 attribute EventHandler onclick; |
48 [MeasureAs=NotificationShowEvent] attribute EventHandler onshow; | 50 [MeasureAs=NotificationShowEvent] attribute EventHandler onshow; |
49 attribute EventHandler onerror; | 51 attribute EventHandler onerror; |
50 [MeasureAs=NotificationCloseEvent] attribute EventHandler onclose; | 52 [MeasureAs=NotificationCloseEvent] attribute EventHandler onclose; |
51 | 53 |
52 readonly attribute DOMString title; | 54 readonly attribute DOMString title; |
53 readonly attribute DOMString dir; | 55 readonly attribute DOMString dir; |
54 readonly attribute DOMString lang; | 56 readonly attribute DOMString lang; |
55 readonly attribute DOMString body; | 57 readonly attribute DOMString body; |
56 readonly attribute DOMString tag; | 58 readonly attribute DOMString tag; |
57 readonly attribute DOMString icon; | 59 readonly attribute DOMString icon; |
58 | 60 |
59 [RuntimeEnabled=NotificationExperimental] readonly attribute sequence<unsign
ed long>? vibrate; | 61 [RuntimeEnabled=NotificationExperimental] readonly attribute sequence<unsign
ed long>? vibrate; |
60 readonly attribute boolean silent; | 62 readonly attribute boolean silent; |
61 [CallWith=ScriptState] readonly attribute any data; | 63 [CallWith=ScriptState] readonly attribute any data; |
62 | 64 |
63 [MeasureAs=NotificationClosed] void close(); | 65 [MeasureAs=NotificationClosed] void close(); |
64 }; | 66 }; |
OLD | NEW |