dom/plugins/base/nsIPluginTag.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/. */
     6 #include "nsISupports.idl"
     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;
    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;
    23   /**
    24    * true only if this plugin is "hardblocked" and cannot be enabled.
    25    */
    26   readonly attribute boolean blocklisted;
    28   readonly attribute boolean disabled;
    29   readonly attribute boolean clicktoplay;
    30            attribute unsigned long enabledState;
    32   readonly attribute PRTime lastModifiedTime;
    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 };

mercurial