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