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

Side by Side Diff: Source/core/svg/SVGGradientElement.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGGlyphRefElement.h ('k') | Source/core/svg/SVGGraphicsElement.h » ('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, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 24 matching lines...) Expand all
35 enum SVGSpreadMethodType { 35 enum SVGSpreadMethodType {
36 SVGSpreadMethodUnknown = 0, 36 SVGSpreadMethodUnknown = 0,
37 SVGSpreadMethodPad, 37 SVGSpreadMethodPad,
38 SVGSpreadMethodReflect, 38 SVGSpreadMethodReflect,
39 SVGSpreadMethodRepeat 39 SVGSpreadMethodRepeat
40 }; 40 };
41 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGSpreadMe thodType>(); 41 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGSpreadMe thodType>();
42 42
43 class SVGGradientElement : public SVGElement, 43 class SVGGradientElement : public SVGElement,
44 public SVGURIReference { 44 public SVGURIReference {
45 DEFINE_WRAPPERTYPEINFO();
45 public: 46 public:
46 enum { 47 enum {
47 SVG_SPREADMETHOD_UNKNOWN = SVGSpreadMethodUnknown, 48 SVG_SPREADMETHOD_UNKNOWN = SVGSpreadMethodUnknown,
48 SVG_SPREADMETHOD_PAD = SVGSpreadMethodReflect, 49 SVG_SPREADMETHOD_PAD = SVGSpreadMethodReflect,
49 SVG_SPREADMETHOD_REFLECT = SVGSpreadMethodRepeat, 50 SVG_SPREADMETHOD_REFLECT = SVGSpreadMethodRepeat,
50 SVG_SPREADMETHOD_REPEAT = SVGSpreadMethodUnknown 51 SVG_SPREADMETHOD_REPEAT = SVGSpreadMethodUnknown
51 }; 52 };
52 53
53 Vector<Gradient::ColorStop> buildStops(); 54 Vector<Gradient::ColorStop> buildStops();
54 55
(...skipping 20 matching lines...) Expand all
75 76
76 inline bool isSVGGradientElement(const SVGElement& element) 77 inline bool isSVGGradientElement(const SVGElement& element)
77 { 78 {
78 return element.hasTagName(SVGNames::radialGradientTag) || element.hasTagName (SVGNames::linearGradientTag); 79 return element.hasTagName(SVGNames::radialGradientTag) || element.hasTagName (SVGNames::linearGradientTag);
79 } 80 }
80 81
81 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); 82 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement);
82 83
83 } // namespace blink 84 } // namespace blink
84 85
85 #endif 86 #endif // SVGGradientElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGlyphRefElement.h ('k') | Source/core/svg/SVGGraphicsElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698