~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Source/WebCore/css/CSSPrimitiveValue.idl

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Library General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Library General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Library General Public License
 
15
 * along with this library; see the file COPYING.LIB.  If not, write to
 
16
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
 * Boston, MA 02110-1301, USA.
 
18
 */
 
19
 
 
20
interface CSSPrimitiveValue : CSSValue {
 
21
 
 
22
    // UnitTypes
 
23
    const unsigned short CSS_UNKNOWN    = 0;
 
24
    const unsigned short CSS_NUMBER     = 1;
 
25
    const unsigned short CSS_PERCENTAGE = 2;
 
26
    const unsigned short CSS_EMS        = 3;
 
27
    const unsigned short CSS_EXS        = 4;
 
28
    const unsigned short CSS_PX         = 5;
 
29
    const unsigned short CSS_CM         = 6;
 
30
    const unsigned short CSS_MM         = 7;
 
31
    const unsigned short CSS_IN         = 8;
 
32
    const unsigned short CSS_PT         = 9;
 
33
    const unsigned short CSS_PC         = 10;
 
34
    const unsigned short CSS_DEG        = 11;
 
35
    const unsigned short CSS_RAD        = 12;
 
36
    const unsigned short CSS_GRAD       = 13;
 
37
    const unsigned short CSS_MS         = 14;
 
38
    const unsigned short CSS_S          = 15;
 
39
    const unsigned short CSS_HZ         = 16;
 
40
    const unsigned short CSS_KHZ        = 17;
 
41
    const unsigned short CSS_DIMENSION  = 18;
 
42
    const unsigned short CSS_STRING     = 19;
 
43
    const unsigned short CSS_URI        = 20;
 
44
    const unsigned short CSS_IDENT      = 21;
 
45
    const unsigned short CSS_ATTR       = 22;
 
46
    const unsigned short CSS_COUNTER    = 23;
 
47
    const unsigned short CSS_RECT       = 24;
 
48
    const unsigned short CSS_RGBCOLOR   = 25;
 
49
    const unsigned short CSS_VW         = 26;
 
50
    const unsigned short CSS_VH         = 27;
 
51
    const unsigned short CSS_VMIN       = 28;
 
52
    
 
53
    readonly attribute unsigned short primitiveType;
 
54
 
 
55
    [ObjCLegacyUnnamedParameters] void setFloatValue(in [Optional=DefaultIsUndefined] unsigned short unitType,
 
56
                                      in [Optional=DefaultIsUndefined] float floatValue)
 
57
        raises(DOMException);
 
58
    float getFloatValue(in [Optional=DefaultIsUndefined] unsigned short unitType)
 
59
        raises(DOMException);
 
60
    [ObjCLegacyUnnamedParameters] void setStringValue(in [Optional=DefaultIsUndefined] unsigned short stringType, 
 
61
                                       in [Optional=DefaultIsUndefined] DOMString stringValue)
 
62
        raises(DOMException);
 
63
    DOMString getStringValue()
 
64
        raises(DOMException);
 
65
    Counter getCounterValue()
 
66
        raises(DOMException);
 
67
    Rect getRectValue()
 
68
        raises(DOMException);
 
69
    RGBColor getRGBColorValue()
 
70
        raises(DOMException);
 
71
};
 
72