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

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

Issue 148173018: [SVG] SVGAnimatedString{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove debug print Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGStringListTearOff.cpp ('k') | Source/core/svg/SVGTests.cpp » ('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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2010 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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef SVGTests_h 21 #ifndef SVGTests_h
22 #define SVGTests_h 22 #define SVGTests_h
23 23
24 #include "core/svg/SVGStringList.h" 24 #include "core/svg/SVGStaticStringList.h"
25 #include "core/svg/properties/SVGAnimatedPropertyMacros.h"
26 #include "wtf/HashSet.h" 25 #include "wtf/HashSet.h"
27 26
28 namespace WebCore { 27 namespace WebCore {
29 28
30 class Attribute; 29 class Attribute;
31 class QualifiedName; 30 class QualifiedName;
32 class SVGElement; 31 class SVGElement;
33 32
34 class SVGTests { 33 class SVGTests {
35 public: 34 public:
36 SVGStringList& requiredFeatures(); 35 SVGStringListTearOff* requiredFeatures() { return m_requiredFeatures->tearOf f(); }
37 SVGStringList& requiredExtensions(); 36 SVGStringListTearOff* requiredExtensions() { return m_requiredExtensions->te arOff(); }
38 SVGStringList& systemLanguage(); 37 SVGStringListTearOff* systemLanguage() { return m_systemLanguage->tearOff(); }
39 38
40 bool hasExtension(const String&) const; 39 bool hasExtension(const String&) const;
41 bool isValid() const; 40 bool isValid() const;
42 41
43 bool parseAttribute(const QualifiedName&, const AtomicString&); 42 bool parseAttribute(const QualifiedName&, const AtomicString&);
44 bool isKnownAttribute(const QualifiedName&); 43 bool isKnownAttribute(const QualifiedName&);
45 44
46 void addSupportedAttributes(HashSet<QualifiedName>&); 45 void addSupportedAttributes(HashSet<QualifiedName>&);
47 46
48 static SVGAttributeToPropertyMap& attributeToPropertyMap();
49
50 protected: 47 protected:
51 SVGTests(); 48 SVGTests(SVGElement* contextElement);
52
53 void synchronizeRequiredFeatures(SVGElement* contextElement);
54 void synchronizeRequiredExtensions(SVGElement* contextElement);
55 void synchronizeSystemLanguage(SVGElement* contextElement);
56 49
57 private: 50 private:
58 // Custom 'requiredFeatures' property 51 RefPtr<SVGStaticStringList> m_requiredFeatures;
59 static const SVGPropertyInfo* requiredFeaturesPropertyInfo(); 52 RefPtr<SVGStaticStringList> m_requiredExtensions;
60 SVGSynchronizableAnimatedProperty<SVGStringList> m_requiredFeatures; 53 RefPtr<SVGStaticStringList> m_systemLanguage;
61
62 // Custom 'requiredExtensions' property
63 static const SVGPropertyInfo* requiredExtensionsPropertyInfo();
64 SVGSynchronizableAnimatedProperty<SVGStringList> m_requiredExtensions;
65
66 // Custom 'systemLanguage' property
67 static const SVGPropertyInfo* systemLanguagePropertyInfo();
68 SVGSynchronizableAnimatedProperty<SVGStringList> m_systemLanguage;
69 }; 54 };
70 55
71 } // namespace WebCore 56 } // namespace WebCore
72 57
73 #endif // SVGTests_h 58 #endif // SVGTests_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGStringListTearOff.cpp ('k') | Source/core/svg/SVGTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698