tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

content-index.idl (1159B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Content Index (https://wicg.github.io/content-index/spec/)
      5 
      6 partial interface ServiceWorkerGlobalScope {
      7  attribute EventHandler oncontentdelete;
      8 };
      9 
     10 partial interface ServiceWorkerRegistration {
     11  [SameObject] readonly attribute ContentIndex index;
     12 };
     13 
     14 enum ContentCategory {
     15  "",
     16  "homepage",
     17  "article",
     18  "video",
     19  "audio",
     20 };
     21 
     22 dictionary ContentDescription {
     23  required DOMString id;
     24  required DOMString title;
     25  required DOMString description;
     26  ContentCategory category = "";
     27  sequence<ImageResource> icons = [];
     28  required USVString url;
     29 };
     30 
     31 [Exposed=(Window,Worker)]
     32 interface ContentIndex {
     33  Promise<undefined> add(ContentDescription description);
     34  Promise<undefined> delete(DOMString id);
     35  Promise<sequence<ContentDescription>> getAll();
     36 };
     37 
     38 dictionary ContentIndexEventInit : ExtendableEventInit {
     39  required DOMString id;
     40 };
     41 
     42 [Exposed=ServiceWorker]
     43 interface ContentIndexEvent : ExtendableEvent {
     44  constructor(DOMString type, ContentIndexEventInit init);
     45  readonly attribute DOMString id;
     46 };