|
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 #include "nsISupports.idl" |
|
7 |
|
8 [scriptable, uuid(0e56f04d-cda4-4a55-ab83-e5e29ddd370e)] |
|
9 interface nsIPluginTag : nsISupports |
|
10 { |
|
11 // enabledState is stored as one of the following as an integer in prefs, |
|
12 // so if new states are added, they must not renumber the existing states. |
|
13 const unsigned long STATE_DISABLED = 0; |
|
14 const unsigned long STATE_CLICKTOPLAY = 1; |
|
15 const unsigned long STATE_ENABLED = 2; |
|
16 |
|
17 readonly attribute AUTF8String description; |
|
18 readonly attribute AUTF8String filename; |
|
19 readonly attribute AUTF8String fullpath; |
|
20 readonly attribute AUTF8String version; |
|
21 readonly attribute AUTF8String name; |
|
22 |
|
23 /** |
|
24 * true only if this plugin is "hardblocked" and cannot be enabled. |
|
25 */ |
|
26 readonly attribute boolean blocklisted; |
|
27 |
|
28 readonly attribute boolean disabled; |
|
29 readonly attribute boolean clicktoplay; |
|
30 attribute unsigned long enabledState; |
|
31 |
|
32 readonly attribute PRTime lastModifiedTime; |
|
33 |
|
34 void getMimeTypes([optional] out unsigned long aCount, |
|
35 [retval, array, size_is(aCount)] out wstring aResults); |
|
36 void getMimeDescriptions([optional] out unsigned long aCount, |
|
37 [retval, array, size_is(aCount)] |
|
38 out wstring aResults); |
|
39 void getExtensions([optional] out unsigned long aCount, |
|
40 [retval, array, size_is(aCount)] |
|
41 out wstring aResults); |
|
42 }; |