dom/plugins/base/nsIPluginTag.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/plugins/base/nsIPluginTag.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +[scriptable, uuid(0e56f04d-cda4-4a55-ab83-e5e29ddd370e)]
    1.12 +interface nsIPluginTag : nsISupports
    1.13 +{
    1.14 +  // enabledState is stored as one of the following as an integer in prefs,
    1.15 +  // so if new states are added, they must not renumber the existing states.
    1.16 +  const unsigned long STATE_DISABLED = 0;
    1.17 +  const unsigned long STATE_CLICKTOPLAY = 1;
    1.18 +  const unsigned long STATE_ENABLED = 2;
    1.19 +
    1.20 +  readonly attribute AUTF8String description;
    1.21 +  readonly attribute AUTF8String filename;
    1.22 +  readonly attribute AUTF8String fullpath;
    1.23 +  readonly attribute AUTF8String version;
    1.24 +  readonly attribute AUTF8String name;
    1.25 +
    1.26 +  /**
    1.27 +   * true only if this plugin is "hardblocked" and cannot be enabled.
    1.28 +   */
    1.29 +  readonly attribute boolean blocklisted;
    1.30 +
    1.31 +  readonly attribute boolean disabled;
    1.32 +  readonly attribute boolean clicktoplay;
    1.33 +           attribute unsigned long enabledState;
    1.34 +
    1.35 +  readonly attribute PRTime lastModifiedTime;
    1.36 +
    1.37 +  void getMimeTypes([optional] out unsigned long aCount,
    1.38 +                    [retval, array, size_is(aCount)] out wstring aResults);
    1.39 +  void getMimeDescriptions([optional] out unsigned long aCount,
    1.40 +                           [retval, array, size_is(aCount)]
    1.41 +                           out wstring aResults);
    1.42 +  void getExtensions([optional] out unsigned long aCount,
    1.43 +                     [retval, array, size_is(aCount)]
    1.44 +                     out wstring aResults);
    1.45 +};

mercurial