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

Side by Side Diff: include/xml/SkXMLParser.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 | « include/xml/SkDOM.h ('k') | samplecode/SampleApp.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 /* 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 SkXMLParser_DEFINED 10 #ifndef SkXMLParser_DEFINED
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 protected: 67 protected:
68 // override in subclasses; return true to stop parsing 68 // override in subclasses; return true to stop parsing
69 virtual bool onStartElement(const char elem[]); 69 virtual bool onStartElement(const char elem[]);
70 virtual bool onAddAttribute(const char name[], const char value[]); 70 virtual bool onAddAttribute(const char name[], const char value[]);
71 virtual bool onEndElement(const char elem[]); 71 virtual bool onEndElement(const char elem[]);
72 virtual bool onText(const char text[], int len); 72 virtual bool onText(const char text[], int len);
73 73
74 public: 74 public:
75 // public for ported implementation, not meant for clients to call 75 // public for ported implementation, not meant for clients to call
76 virtual bool startElement(const char elem[]); 76 bool startElement(const char elem[]);
77 virtual bool addAttribute(const char name[], const char value[]); 77 bool addAttribute(const char name[], const char value[]);
78 virtual bool endElement(const char elem[]); 78 bool endElement(const char elem[]);
79 virtual bool text(const char text[], int len); 79 bool text(const char text[], int len);
80 void* fParser; 80 void* fParser;
81 protected: 81 protected:
82 SkXMLParserError* fError; 82 SkXMLParserError* fError;
83 private: 83 private:
84 void reportError(void* parser); 84 void reportError(void* parser);
85 }; 85 };
86 86
87 #endif 87 #endif
OLDNEW
« no previous file with comments | « include/xml/SkDOM.h ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698