dom/interfaces/css/nsIDOMCSSPrimitiveValue.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/css/nsIDOMCSSPrimitiveValue.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,62 @@
     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 "nsIDOMCSSValue.idl"
    1.10 +
    1.11 +/**
    1.12 + * The nsIDOMCSSPrimitiveValue interface is a datatype for a primitive
    1.13 + * CSS value in the Document Object Model.
    1.14 + *
    1.15 + * For more information on this interface please see
    1.16 + * http://www.w3.org/TR/DOM-Level-2-Style
    1.17 + */
    1.18 +
    1.19 +[scriptable, uuid(f6df7293-2dc9-4cb9-9531-778caf4370e0)]
    1.20 +interface nsIDOMCSSPrimitiveValue : nsIDOMCSSValue
    1.21 +{
    1.22 +  // UnitTypes
    1.23 +  const unsigned short      CSS_UNKNOWN                    = 0;
    1.24 +  const unsigned short      CSS_NUMBER                     = 1;
    1.25 +  const unsigned short      CSS_PERCENTAGE                 = 2;
    1.26 +  const unsigned short      CSS_EMS                        = 3;
    1.27 +  const unsigned short      CSS_EXS                        = 4;
    1.28 +  const unsigned short      CSS_PX                         = 5;
    1.29 +  const unsigned short      CSS_CM                         = 6;
    1.30 +  const unsigned short      CSS_MM                         = 7;
    1.31 +  const unsigned short      CSS_IN                         = 8;
    1.32 +  const unsigned short      CSS_PT                         = 9;
    1.33 +  const unsigned short      CSS_PC                         = 10;
    1.34 +  const unsigned short      CSS_DEG                        = 11;
    1.35 +  const unsigned short      CSS_RAD                        = 12;
    1.36 +  const unsigned short      CSS_GRAD                       = 13;
    1.37 +  const unsigned short      CSS_MS                         = 14;
    1.38 +  const unsigned short      CSS_S                          = 15;
    1.39 +  const unsigned short      CSS_HZ                         = 16;
    1.40 +  const unsigned short      CSS_KHZ                        = 17;
    1.41 +  const unsigned short      CSS_DIMENSION                  = 18;
    1.42 +  const unsigned short      CSS_STRING                     = 19;
    1.43 +  const unsigned short      CSS_URI                        = 20;
    1.44 +  const unsigned short      CSS_IDENT                      = 21;
    1.45 +  const unsigned short      CSS_ATTR                       = 22;
    1.46 +  const unsigned short      CSS_COUNTER                    = 23;
    1.47 +  const unsigned short      CSS_RECT                       = 24;
    1.48 +  const unsigned short      CSS_RGBCOLOR                   = 25;
    1.49 +
    1.50 +  readonly attribute unsigned short   primitiveType;
    1.51 +  void               setFloatValue(in unsigned short unitType, 
    1.52 +                                   in float floatValue)
    1.53 +                                        raises(DOMException);
    1.54 +  float              getFloatValue(in unsigned short unitType)
    1.55 +                                        raises(DOMException);
    1.56 +  void               setStringValue(in unsigned short stringType, 
    1.57 +                                    in DOMString stringValue)
    1.58 +                                        raises(DOMException);
    1.59 +  DOMString          getStringValue()
    1.60 +                                        raises(DOMException);
    1.61 +  nsIDOMCounter      getCounterValue()
    1.62 +                                        raises(DOMException);
    1.63 +  nsIDOMRect         getRectValue()
    1.64 +                                        raises(DOMException);
    1.65 +};

mercurial