Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
62
third-party/vendor/web-sys/webidls/enabled/OfflineResourceList.webidl
vendored
Normal file
62
third-party/vendor/web-sys/webidls/enabled/OfflineResourceList.webidl
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
[Pref="browser.cache.offline.enable", Func="nsGlobalWindowInner::OfflineCacheAllowedForContext"]
|
||||
interface OfflineResourceList : EventTarget {
|
||||
/**
|
||||
* State of the application cache this object is associated with.
|
||||
*/
|
||||
|
||||
/* This object is not associated with an application cache. */
|
||||
const unsigned short UNCACHED = 0;
|
||||
|
||||
/* The application cache is not being updated. */
|
||||
const unsigned short IDLE = 1;
|
||||
|
||||
/* The manifest is being fetched and checked for updates */
|
||||
const unsigned short CHECKING = 2;
|
||||
|
||||
/* Resources are being downloaded to be added to the cache */
|
||||
const unsigned short DOWNLOADING = 3;
|
||||
|
||||
/* There is a new version of the application cache available */
|
||||
const unsigned short UPDATEREADY = 4;
|
||||
|
||||
/* The application cache group is now obsolete. */
|
||||
const unsigned short OBSOLETE = 5;
|
||||
|
||||
[Throws, UseCounter]
|
||||
readonly attribute unsigned short status;
|
||||
|
||||
/**
|
||||
* Begin the application update process on the associated application cache.
|
||||
*/
|
||||
[Throws, UseCounter]
|
||||
undefined update();
|
||||
|
||||
/**
|
||||
* Swap in the newest version of the application cache, or disassociate
|
||||
* from the cache if the cache group is obsolete.
|
||||
*/
|
||||
[Throws, UseCounter]
|
||||
undefined swapCache();
|
||||
|
||||
/* Events */
|
||||
[UseCounter]
|
||||
attribute EventHandler onchecking;
|
||||
[UseCounter]
|
||||
attribute EventHandler onerror;
|
||||
[UseCounter]
|
||||
attribute EventHandler onnoupdate;
|
||||
[UseCounter]
|
||||
attribute EventHandler ondownloading;
|
||||
[UseCounter]
|
||||
attribute EventHandler onprogress;
|
||||
[UseCounter]
|
||||
attribute EventHandler onupdateready;
|
||||
[UseCounter]
|
||||
attribute EventHandler oncached;
|
||||
[UseCounter]
|
||||
attribute EventHandler onobsolete;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue