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