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

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

Issue 2415413002: Add '... implement SVGUnitTypes' to a bunch of SVG*Elements (Closed)
Patch Set: Update interface expectations Created 4 years, 2 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
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 29 matching lines...) Expand all
40 }; 40 };
41 template <> 41 template <>
42 const SVGEnumerationStringEntries& 42 const SVGEnumerationStringEntries&
43 getStaticStringEntries<SVGSpreadMethodType>(); 43 getStaticStringEntries<SVGSpreadMethodType>();
44 44
45 class SVGGradientElement : public SVGElement, public SVGURIReference { 45 class SVGGradientElement : public SVGElement, public SVGURIReference {
46 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
47 USING_GARBAGE_COLLECTED_MIXIN(SVGGradientElement); 47 USING_GARBAGE_COLLECTED_MIXIN(SVGGradientElement);
48 48
49 public: 49 public:
50 enum {
51 kSvgUnitTypeUnknown = SVGUnitTypes::kSvgUnitTypeUnknown,
52 kSvgUnitTypeUserspaceonuse = SVGUnitTypes::kSvgUnitTypeUserspaceonuse,
53 kSvgUnitTypeObjectboundingbox = SVGUnitTypes::kSvgUnitTypeObjectboundingbox
54 };
55
50 Vector<Gradient::ColorStop> buildStops(); 56 Vector<Gradient::ColorStop> buildStops();
51 57
52 SVGAnimatedTransformList* gradientTransform() { 58 SVGAnimatedTransformList* gradientTransform() {
53 return m_gradientTransform.get(); 59 return m_gradientTransform.get();
54 } 60 }
55 SVGAnimatedEnumeration<SVGSpreadMethodType>* spreadMethod() { 61 SVGAnimatedEnumeration<SVGSpreadMethodType>* spreadMethod() {
56 return m_spreadMethod.get(); 62 return m_spreadMethod.get();
57 } 63 }
58 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* gradientUnits() { 64 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* gradientUnits() {
59 return m_gradientUnits.get(); 65 return m_gradientUnits.get();
(...skipping 19 matching lines...) Expand all
79 inline bool isSVGGradientElement(const SVGElement& element) { 85 inline bool isSVGGradientElement(const SVGElement& element) {
80 return element.hasTagName(SVGNames::radialGradientTag) || 86 return element.hasTagName(SVGNames::radialGradientTag) ||
81 element.hasTagName(SVGNames::linearGradientTag); 87 element.hasTagName(SVGNames::linearGradientTag);
82 } 88 }
83 89
84 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); 90 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement);
85 91
86 } // namespace blink 92 } // namespace blink
87 93
88 #endif // SVGGradientElement_h 94 #endif // SVGGradientElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698