| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |