Bug 886173 - Preserve playbackRate across pause/play. r=cpearce
[gecko.git] / image / decoders / icon / nsIIconURI.idl
blob5e5ceb23cdfa99a29a9b336b408a5aec31ed886e
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsIURL.idl"
9 /**
10 * nsIIconURI
12 * This interface derives from nsIURI, to provide additional information
13 * about moz-icon URIs.
15 * What *is* a moz-icon URI you ask? Well, it has the following syntax:
17 * moz-icon:[<valid-url> | //<file-with-extension> | //stock/<stock-icon>]? ['?'[<parameter-value-pairs>]]
19 * <valid-url> is a valid URL spec.
21 * <file-with-extension> is any filename with an extension, e.g. "dummy.html".
22 * If the file you want an icon for isn't known to exist, you can use this instead of a URL and just
23 * place a dummy file name with the extension or content type you want.
25 * <stock-icon> is the name of a platform-dependant stock icon.
27 * Legal parameter value pairs are listed below:
29 * Parameter: size
30 * Values: [<integer> | button | toolbar | toolbarsmall | menu | dialog]
31 * Description: If integer, this is the desired size in square pixels of the icon
32 * Else, use the OS default for the specified keyword context.
34 * Parameter: state
35 * Values: [normal | disabled]
36 * Description: The state of the icon.
38 * Parameter: contentType
39 * Values: <mime-type>
40 * Description: The mime type we want an icon for. This is ignored by stock images.
43 [scriptable, uuid(da53adda-cbe3-41bc-a57d-fdd7a0ff448b)]
44 interface nsIMozIconURI : nsIURI
46 /**
47 * iconFile
49 * the file URL contained within this moz-icon url, or null.
51 attribute nsIURL iconURL;
53 /**
54 * imageSize
56 * The image area in square pixels, defaulting to 16 if unspecified.
58 attribute unsigned long imageSize;
60 /**
61 * stockIcon
63 * The stock icon name requested from the OS.
65 readonly attribute ACString stockIcon;
67 /**
68 * iconSize
70 * The stock icon size requested from the OS.
72 readonly attribute ACString iconSize;
74 /**
75 * iconState
77 * The stock icon state requested from the OS.
79 readonly attribute ACString iconState;
81 /**
82 * contentType
84 * A valid mime type, or the empty string.
87 attribute ACString contentType;
89 /**
90 * fileExtension
92 * The file extension of the file which we are looking up.
94 readonly attribute ACString fileExtension;