diff options
Diffstat (limited to 'WebCore/loader/appcache/DOMApplicationCache.idl')
-rw-r--r-- | WebCore/loader/appcache/DOMApplicationCache.idl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/WebCore/loader/appcache/DOMApplicationCache.idl b/WebCore/loader/appcache/DOMApplicationCache.idl index 94326f3..4cf8f3a 100644 --- a/WebCore/loader/appcache/DOMApplicationCache.idl +++ b/WebCore/loader/appcache/DOMApplicationCache.idl @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 Apple Inc. All Rights Reserved. + * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -35,21 +35,24 @@ module offline { const unsigned short CHECKING = 2; const unsigned short DOWNLOADING = 3; const unsigned short UPDATEREADY = 4; + const unsigned short OBSOLETE = 5; readonly attribute unsigned short status; void update() raises(DOMException); void swapCache() raises(DOMException); - + +#if ENABLE_APPLICATION_CAHE_DYNAMIC_ENTRIES // dynamic entries - readonly attribute unsigned long length; - DOMString item(in [IsIndex] unsigned long index) + readonly attribute DOMStringList items; + [Custom] boolean hasItem(in DOMString url) raises(DOMException); [Custom] void add(in DOMString uri) raises(DOMException); [Custom] void remove(in DOMString uri) raises(DOMException); +#endif // events attribute EventListener onchecking; @@ -59,6 +62,7 @@ module offline { attribute EventListener onprogress; attribute EventListener onupdateready; attribute EventListener oncached; + attribute EventListener onobsolete; // EventTarget interface [Custom] void addEventListener(in DOMString type, |