Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: core/svg/SVGSVGElement.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/svg/SVGRenderingIntent.idl ('k') | core/svg/SVGScriptElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * Copyright (C) 2006 Apple Inc. All rights reserved. 5 * Copyright (C) 2006 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details. 15 * Library General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Library General Public License 17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to 18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA. 20 * Boston, MA 02110-1301, USA.
21 */ 21 */
22 22
23 // http://www.w3.org/TR/SVG2/struct.html#InterfaceSVGSVGElement 23 // http://www.w3.org/TR/SVG2/struct.html#InterfaceSVGSVGElement
24 24
25 // TODO: no css::ViewCSS available!
26 // TODO: no events::DocumentEvent available!
27 [ 25 [
28 TypeChecking=Interface, 26 TypeChecking=Interface,
29 ] interface SVGSVGElement : SVGGraphicsElement { 27 ] interface SVGSVGElement : SVGGraphicsElement {
30 28
31 readonly attribute SVGAnimatedLength x; 29 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth x;
32 readonly attribute SVGAnimatedLength y; 30 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth y;
33 readonly attribute SVGAnimatedLength width; 31 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth width;
34 readonly attribute SVGAnimatedLength height; 32 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth height;
33 // TODO(philipj): viewport should be a DOMRectReadOnly.
35 readonly attribute SVGRect viewport; 34 readonly attribute SVGRect viewport;
36 readonly attribute float pixelUnitToMillimeterX; 35 // TODO(philipj): useCurrentView and currentView have been removed:
37 readonly attribute float pixelUnitToMillimeterY; 36 // https://github.com/w3c/svgwg/commit/4c26fd36937a65192024208d85c144a21071b 057
38 readonly attribute float screenPixelToMillimeterX; 37 [Measure] readonly attribute boolean useCurrentView;
39 readonly attribute float screenPixelToMillimeterY; 38 [Measure] readonly attribute SVGViewSpec currentView;
40 readonly attribute boolean useCurrentView;
41 readonly attribute SVGViewSpec currentView;
42 attribute float currentScale; 39 attribute float currentScale;
40 // TODO(philipj): currentTranslate should be a DOMPointReadOnly.
43 [ImplementedAs=currentTranslateFromJavascript] readonly attribute SVGPoint c urrentTranslate; 41 [ImplementedAs=currentTranslateFromJavascript] readonly attribute SVGPoint c urrentTranslate;
44 42
45 unsigned long suspendRedraw(unsigned long maxWaitMilliseconds); 43 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementSuspendRedraw] unsigned lo ng suspendRedraw(unsigned long maxWaitMilliseconds);
46 void unsuspendRedraw(unsigned long suspendHandleId); 44 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedraw] void unsu spendRedraw(unsigned long suspendHandleId);
47 void unsuspendRedrawAll(); 45 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedrawAll] void u nsuspendRedrawAll();
48 void forceRedraw(); 46 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementForceRedraw] void forceRed raw();
49 void pauseAnimations(); 47 void pauseAnimations();
50 void unpauseAnimations(); 48 void unpauseAnimations();
51 boolean animationsPaused(); 49 boolean animationsPaused();
52 float getCurrentTime(); 50 float getCurrentTime();
53 void setCurrentTime(float seconds); 51 void setCurrentTime(float seconds);
52 // TODO(philipj): The rect arguments should be DOMRectReadOnly.
54 NodeList getIntersectionList(SVGRect rect, SVGElement? referenceElement); 53 NodeList getIntersectionList(SVGRect rect, SVGElement? referenceElement);
55 NodeList getEnclosureList(SVGRect rect, SVGElement? referenceElement); 54 NodeList getEnclosureList(SVGRect rect, SVGElement? referenceElement);
56 boolean checkIntersection(SVGElement element, SVGRect rect); 55 boolean checkIntersection(SVGElement element, SVGRect rect);
57 boolean checkEnclosure(SVGElement element, SVGRect rect); 56 boolean checkEnclosure(SVGElement element, SVGRect rect);
58 void deselectAll(); 57 void deselectAll();
58 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGNumber createSVGNumber();
59 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGLength createSVGLength();
60 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGAngle createSVGAngle();
61 // TODO(philipj): SVGPoint/Matrix/Rect should be DOMPoint/Matrix/Rect.
62 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGPoint createSVGPoint();
63 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGMatrix createSVGMatrix();
64 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGRect createSVGRect();
65 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransform( );
66 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransformF romMatrix(SVGMatrix matrix);
59 67
60 SVGNumber createSVGNumber(); 68 // TODO(philipj): The following was part of SVG 1.1:
61 SVGLength createSVGLength(); 69 // http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGSVGElement
62 SVGAngle createSVGAngle(); 70 [Measure] readonly attribute float pixelUnitToMillimeterX;
63 SVGPoint createSVGPoint(); 71 [Measure] readonly attribute float pixelUnitToMillimeterY;
64 SVGMatrix createSVGMatrix(); 72 [Measure] readonly attribute float screenPixelToMillimeterX;
65 SVGRect createSVGRect(); 73 [Measure] readonly attribute float screenPixelToMillimeterY;
66 SVGTransform createSVGTransform(); 74 [Measure] Element getElementById(DOMString elementId);
67 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
68 Element getElementById(DOMString elementId);
69 }; 75 };
70 76
71 SVGSVGElement implements SVGFitToViewBox; 77 SVGSVGElement implements SVGFitToViewBox;
72 SVGSVGElement implements SVGZoomAndPan; 78 SVGSVGElement implements SVGZoomAndPan;
OLDNEW
« no previous file with comments | « core/svg/SVGRenderingIntent.idl ('k') | core/svg/SVGScriptElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698