OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 23 matching lines...) Expand all Loading... |
34 const unsigned short DOWNLOADING = 3; | 34 const unsigned short DOWNLOADING = 3; |
35 const unsigned short UPDATEREADY = 4; | 35 const unsigned short UPDATEREADY = 4; |
36 const unsigned short OBSOLETE = 5; | 36 const unsigned short OBSOLETE = 5; |
37 readonly attribute unsigned short status; | 37 readonly attribute unsigned short status; |
38 | 38 |
39 [RaisesException] void update(); | 39 [RaisesException] void update(); |
40 [RaisesException] void swapCache(); | 40 [RaisesException] void swapCache(); |
41 void abort(); | 41 void abort(); |
42 | 42 |
43 // events | 43 // events |
44 attribute EventListener onchecking; | 44 attribute EventHandler onchecking; |
45 attribute EventListener onerror; | 45 attribute EventHandler onerror; |
46 attribute EventListener onnoupdate; | 46 attribute EventHandler onnoupdate; |
47 attribute EventListener ondownloading; | 47 attribute EventHandler ondownloading; |
48 attribute EventListener onprogress; | 48 attribute EventHandler onprogress; |
49 attribute EventListener onupdateready; | 49 attribute EventHandler onupdateready; |
50 attribute EventListener oncached; | 50 attribute EventHandler oncached; |
51 attribute EventListener onobsolete; | 51 attribute EventHandler onobsolete; |
52 }; | 52 }; |
53 | 53 |
OLD | NEW |