dom/interfaces/css/nsIDOMCSSPrimitiveValue.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 "nsIDOMCSSValue.idl"
     8 /**
     9  * The nsIDOMCSSPrimitiveValue interface is a datatype for a primitive
    10  * CSS value in the Document Object Model.
    11  *
    12  * For more information on this interface please see
    13  * http://www.w3.org/TR/DOM-Level-2-Style
    14  */
    16 [scriptable, uuid(f6df7293-2dc9-4cb9-9531-778caf4370e0)]
    17 interface nsIDOMCSSPrimitiveValue : nsIDOMCSSValue
    18 {
    19   // UnitTypes
    20   const unsigned short      CSS_UNKNOWN                    = 0;
    21   const unsigned short      CSS_NUMBER                     = 1;
    22   const unsigned short      CSS_PERCENTAGE                 = 2;
    23   const unsigned short      CSS_EMS                        = 3;
    24   const unsigned short      CSS_EXS                        = 4;
    25   const unsigned short      CSS_PX                         = 5;
    26   const unsigned short      CSS_CM                         = 6;
    27   const unsigned short      CSS_MM                         = 7;
    28   const unsigned short      CSS_IN                         = 8;
    29   const unsigned short      CSS_PT                         = 9;
    30   const unsigned short      CSS_PC                         = 10;
    31   const unsigned short      CSS_DEG                        = 11;
    32   const unsigned short      CSS_RAD                        = 12;
    33   const unsigned short      CSS_GRAD                       = 13;
    34   const unsigned short      CSS_MS                         = 14;
    35   const unsigned short      CSS_S                          = 15;
    36   const unsigned short      CSS_HZ                         = 16;
    37   const unsigned short      CSS_KHZ                        = 17;
    38   const unsigned short      CSS_DIMENSION                  = 18;
    39   const unsigned short      CSS_STRING                     = 19;
    40   const unsigned short      CSS_URI                        = 20;
    41   const unsigned short      CSS_IDENT                      = 21;
    42   const unsigned short      CSS_ATTR                       = 22;
    43   const unsigned short      CSS_COUNTER                    = 23;
    44   const unsigned short      CSS_RECT                       = 24;
    45   const unsigned short      CSS_RGBCOLOR                   = 25;
    47   readonly attribute unsigned short   primitiveType;
    48   void               setFloatValue(in unsigned short unitType, 
    49                                    in float floatValue)
    50                                         raises(DOMException);
    51   float              getFloatValue(in unsigned short unitType)
    52                                         raises(DOMException);
    53   void               setStringValue(in unsigned short stringType, 
    54                                     in DOMString stringValue)
    55                                         raises(DOMException);
    56   DOMString          getStringValue()
    57                                         raises(DOMException);
    58   nsIDOMCounter      getCounterValue()
    59                                         raises(DOMException);
    60   nsIDOMRect         getRectValue()
    61                                         raises(DOMException);
    62 };

mercurial