Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 file, |
michael@0 | 4 | * You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | */ |
michael@0 | 6 | |
michael@0 | 7 | interface Counter; |
michael@0 | 8 | |
michael@0 | 9 | interface CSSPrimitiveValue : CSSValue { |
michael@0 | 10 | |
michael@0 | 11 | // UnitTypes |
michael@0 | 12 | const unsigned short CSS_UNKNOWN = 0; |
michael@0 | 13 | const unsigned short CSS_NUMBER = 1; |
michael@0 | 14 | const unsigned short CSS_PERCENTAGE = 2; |
michael@0 | 15 | const unsigned short CSS_EMS = 3; |
michael@0 | 16 | const unsigned short CSS_EXS = 4; |
michael@0 | 17 | const unsigned short CSS_PX = 5; |
michael@0 | 18 | const unsigned short CSS_CM = 6; |
michael@0 | 19 | const unsigned short CSS_MM = 7; |
michael@0 | 20 | const unsigned short CSS_IN = 8; |
michael@0 | 21 | const unsigned short CSS_PT = 9; |
michael@0 | 22 | const unsigned short CSS_PC = 10; |
michael@0 | 23 | const unsigned short CSS_DEG = 11; |
michael@0 | 24 | const unsigned short CSS_RAD = 12; |
michael@0 | 25 | const unsigned short CSS_GRAD = 13; |
michael@0 | 26 | const unsigned short CSS_MS = 14; |
michael@0 | 27 | const unsigned short CSS_S = 15; |
michael@0 | 28 | const unsigned short CSS_HZ = 16; |
michael@0 | 29 | const unsigned short CSS_KHZ = 17; |
michael@0 | 30 | const unsigned short CSS_DIMENSION = 18; |
michael@0 | 31 | const unsigned short CSS_STRING = 19; |
michael@0 | 32 | const unsigned short CSS_URI = 20; |
michael@0 | 33 | const unsigned short CSS_IDENT = 21; |
michael@0 | 34 | const unsigned short CSS_ATTR = 22; |
michael@0 | 35 | const unsigned short CSS_COUNTER = 23; |
michael@0 | 36 | const unsigned short CSS_RECT = 24; |
michael@0 | 37 | const unsigned short CSS_RGBCOLOR = 25; |
michael@0 | 38 | |
michael@0 | 39 | readonly attribute unsigned short primitiveType; |
michael@0 | 40 | [Throws] |
michael@0 | 41 | void setFloatValue(unsigned short unitType, |
michael@0 | 42 | float floatValue); |
michael@0 | 43 | [Throws] |
michael@0 | 44 | float getFloatValue(unsigned short unitType); |
michael@0 | 45 | [Throws] |
michael@0 | 46 | void setStringValue(unsigned short stringType, |
michael@0 | 47 | DOMString stringValue); |
michael@0 | 48 | [Throws] |
michael@0 | 49 | DOMString getStringValue(); |
michael@0 | 50 | [Throws] |
michael@0 | 51 | Counter getCounterValue(); |
michael@0 | 52 | [Throws] |
michael@0 | 53 | Rect getRectValue(); |
michael@0 | 54 | [Throws] |
michael@0 | 55 | RGBColor getRGBColorValue(); |
michael@0 | 56 | }; |