diff options
author | initial.commit <initial.commit@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-27 00:20:51 +0000 |
---|---|---|
committer | initial.commit <initial.commit@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-27 00:20:51 +0000 |
commit | f5b16fed647e941aa66933178da85db2860d639b (patch) | |
tree | f00e9856c04aad3b558a140955e7674add33f051 /webkit/port/ksvg2 | |
parent | 920c091ac3ee15079194c82ae8a7a18215f3f23c (diff) | |
download | chromium_src-f5b16fed647e941aa66933178da85db2860d639b.zip chromium_src-f5b16fed647e941aa66933178da85db2860d639b.tar.gz chromium_src-f5b16fed647e941aa66933178da85db2860d639b.tar.bz2 |
Add webkit to the repository.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/ksvg2')
-rw-r--r-- | webkit/port/ksvg2/svg/SVGMatrix.idl | 52 | ||||
-rw-r--r-- | webkit/port/ksvg2/svg/SVGPathSegList.idl | 48 | ||||
-rw-r--r-- | webkit/port/ksvg2/svg/SVGPointList.idl | 47 | ||||
-rw-r--r-- | webkit/port/ksvg2/svg/SVGTransformList.idl | 50 |
4 files changed, 197 insertions, 0 deletions
diff --git a/webkit/port/ksvg2/svg/SVGMatrix.idl b/webkit/port/ksvg2/svg/SVGMatrix.idl new file mode 100644 index 0000000..ef157f6 --- /dev/null +++ b/webkit/port/ksvg2/svg/SVGMatrix.idl @@ -0,0 +1,52 @@ +/* + Copyright (C) 2004, 2005 Nikolas Zimmermann <wildfox@kde.org> + Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> + Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> + Copyright (C) 2006 Apple Computer, Inc. All rights reserved. + + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +module svg { + + interface [Conditional=SVG, PODType=AffineTransform] SVGMatrix { + // FIXME: these attributes should all be floats but since we implement + // AffineTransform with doubles setting these as doubles makes more sense. + attribute double a; + attribute double b; + attribute double c; + attribute double d; + attribute double e; + attribute double f; + + SVGMatrix multiply(in SVGMatrix secondMatrix); + [Custom] SVGMatrix inverse() + raises(SVGException); + SVGMatrix translate(in float x, in float y); + SVGMatrix scale(in float scaleFactor); + SVGMatrix scaleNonUniform(in float scaleFactorX, in float scaleFactorY); + SVGMatrix rotate(in float angle); + [Custom] SVGMatrix rotateFromVector(in float x, in float y) + raises(SVGException); + SVGMatrix flipX(); + SVGMatrix flipY(); + SVGMatrix skewX(in float angle); + SVGMatrix skewY(in float angle); + }; + +} diff --git a/webkit/port/ksvg2/svg/SVGPathSegList.idl b/webkit/port/ksvg2/svg/SVGPathSegList.idl new file mode 100644 index 0000000..efd27a2 --- /dev/null +++ b/webkit/port/ksvg2/svg/SVGPathSegList.idl @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> + * Copyright (C) 2006 Apple Computer, Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +module svg { + + interface [Conditional=SVG] SVGPathSegList { + readonly attribute unsigned long numberOfItems; + + void clear() + raises(DOMException); + SVGPathSeg initialize(in SVGPathSeg newItem) + raises(DOMException, SVGException); + SVGPathSeg getItem(in unsigned long index) + raises(DOMException); + SVGPathSeg insertItemBefore(in SVGPathSeg newItem, in unsigned long index) + raises(DOMException, SVGException); + SVGPathSeg replaceItem(in SVGPathSeg newItem, in unsigned long index) + raises(DOMException, SVGException); + SVGPathSeg removeItem(in unsigned long index) + raises(DOMException); + SVGPathSeg appendItem(in SVGPathSeg newItem) + raises(DOMException, SVGException); + }; + +} diff --git a/webkit/port/ksvg2/svg/SVGPointList.idl b/webkit/port/ksvg2/svg/SVGPointList.idl new file mode 100644 index 0000000..24b1042 --- /dev/null +++ b/webkit/port/ksvg2/svg/SVGPointList.idl @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2006 Apple Computer, Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +module svg { + + interface [Conditional=SVG] SVGPointList { + readonly attribute unsigned long numberOfItems; + + void clear() + raises(DOMException); + SVGPoint initialize(in SVGPoint item) + raises(DOMException, SVGException); + SVGPoint getItem(in unsigned long index) + raises(DOMException); + SVGPoint insertItemBefore(in SVGPoint item, in unsigned long index) + raises(DOMException, SVGException); + SVGPoint replaceItem(in SVGPoint item, in unsigned long index) + raises(DOMException, SVGException); + SVGPoint removeItem(in unsigned long index) + raises(DOMException); + SVGPoint appendItem(in SVGPoint item) + raises(DOMException, SVGException); + }; + +} diff --git a/webkit/port/ksvg2/svg/SVGTransformList.idl b/webkit/port/ksvg2/svg/SVGTransformList.idl new file mode 100644 index 0000000..d03351a --- /dev/null +++ b/webkit/port/ksvg2/svg/SVGTransformList.idl @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> + * Copyright (C) 2006 Apple Computer, Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +module svg { + + interface [Conditional=SVG] SVGTransformList { + readonly attribute unsigned long numberOfItems; + + void clear() + raises(DOMException); + SVGTransform initialize(in SVGTransform item) + raises(DOMException, SVGException); + SVGTransform getItem(in unsigned long index) + raises(DOMException); + SVGTransform insertItemBefore(in SVGTransform item, in unsigned long index) + raises(DOMException, SVGException); + SVGTransform replaceItem(in SVGTransform item, in unsigned long index) + raises(DOMException, SVGException); + SVGTransform removeItem(in unsigned long index) + raises(DOMException); + SVGTransform appendItem(in SVGTransform item) + raises(DOMException, SVGException); + SVGTransform createSVGTransformFromMatrix(in SVGMatrix matrix); + SVGTransform consolidate(); + }; + +} |