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

Side by Side Diff: include/xml/SkDOM.h

Issue 2164193002: Initial SVG model (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: warning fix Created 4 years, 4 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 | « gyp/svg.gyp ('k') | include/xml/SkXMLParser.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkDOM_DEFINED 10 #ifndef SkDOM_DEFINED
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 bool hasAttr(const Node*, const char name[], const char value[]) const; 74 bool hasAttr(const Node*, const char name[], const char value[]) const;
75 bool hasS32(const Node*, const char name[], int32_t value) const; 75 bool hasS32(const Node*, const char name[], int32_t value) const;
76 bool hasScalar(const Node*, const char name[], SkScalar value) const; 76 bool hasScalar(const Node*, const char name[], SkScalar value) const;
77 bool hasHex(const Node*, const char name[], uint32_t value) const; 77 bool hasHex(const Node*, const char name[], uint32_t value) const;
78 bool hasBool(const Node*, const char name[], bool value) const; 78 bool hasBool(const Node*, const char name[], bool value) const;
79 79
80 class AttrIter { 80 class AttrIter {
81 public: 81 public:
82 AttrIter(const class SkDOM&, const Node*); 82 AttrIter(const SkDOM&, const Node*);
83 const char* next(const char** value); 83 const char* next(const char** value);
84 private: 84 private:
85 const Attr* fAttr; 85 const Attr* fAttr;
86 const Attr* fStop; 86 const Attr* fStop;
87 }; 87 };
88 88
89 SkDEBUGCODE(void dump(const Node* node = NULL, int tabLevel = 0) const;) 89 SkDEBUGCODE(void dump(const Node* node = NULL, int tabLevel = 0) const;)
90 90
91 private: 91 private:
92 SkChunkAlloc fAlloc; 92 SkChunkAlloc fAlloc;
93 Node* fRoot; 93 Node* fRoot;
94 SkAutoTDelete<SkDOMParser> fParser; 94 SkAutoTDelete<SkDOMParser> fParser;
95 95
96 typedef SkNoncopyable INHERITED; 96 typedef SkNoncopyable INHERITED;
97 }; 97 };
98 98
99 #endif 99 #endif
OLDNEW
« no previous file with comments | « gyp/svg.gyp ('k') | include/xml/SkXMLParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698