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 #include "SkXMLParser.h" | 10 #include "SkXMLParser.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 //////////////// | 52 //////////////// |
53 | 53 |
54 SkXMLParser::SkXMLParser(SkXMLParserError* parserError) : fParser(NULL), fError(
parserError) | 54 SkXMLParser::SkXMLParser(SkXMLParserError* parserError) : fParser(NULL), fError(
parserError) |
55 { | 55 { |
56 } | 56 } |
57 | 57 |
58 SkXMLParser::~SkXMLParser() | 58 SkXMLParser::~SkXMLParser() |
59 { | 59 { |
60 } | 60 } |
61 | 61 |
| 62 bool SkXMLParser::parse(SkStream& docStream) |
| 63 { |
| 64 return false; |
| 65 } |
| 66 |
| 67 bool SkXMLParser::parse(const char doc[], size_t len) |
| 68 { |
| 69 return false; |
| 70 } |
| 71 |
| 72 void SkXMLParser::GetNativeErrorString(int error, SkString* str) |
| 73 { |
| 74 |
| 75 } |
| 76 |
62 bool SkXMLParser::startElement(const char elem[]) | 77 bool SkXMLParser::startElement(const char elem[]) |
63 { | 78 { |
64 return this->onStartElement(elem); | 79 return this->onStartElement(elem); |
65 } | 80 } |
66 | 81 |
67 bool SkXMLParser::addAttribute(const char name[], const char value[]) | 82 bool SkXMLParser::addAttribute(const char name[], const char value[]) |
68 { | 83 { |
69 return this->onAddAttribute(name, value); | 84 return this->onAddAttribute(name, value); |
70 } | 85 } |
71 | 86 |
72 bool SkXMLParser::endElement(const char elem[]) | 87 bool SkXMLParser::endElement(const char elem[]) |
73 { | 88 { |
74 return this->onEndElement(elem); | 89 return this->onEndElement(elem); |
75 } | 90 } |
76 | 91 |
77 bool SkXMLParser::text(const char text[], int len) | 92 bool SkXMLParser::text(const char text[], int len) |
78 { | 93 { |
79 return this->onText(text, len); | 94 return this->onText(text, len); |
80 } | 95 } |
81 | 96 |
82 //////////////////////////////////////////////////////////////////////////////// | 97 //////////////////////////////////////////////////////////////////////////////// |
83 | 98 |
84 bool SkXMLParser::onStartElement(const char elem[]) {return false; } | 99 bool SkXMLParser::onStartElement(const char elem[]) {return false; } |
85 bool SkXMLParser::onAddAttribute(const char name[], const char value[]) {return
false; } | 100 bool SkXMLParser::onAddAttribute(const char name[], const char value[]) {return
false; } |
86 bool SkXMLParser::onEndElement(const char elem[]) { return false; } | 101 bool SkXMLParser::onEndElement(const char elem[]) { return false; } |
87 bool SkXMLParser::onText(const char text[], int len) {return false; } | 102 bool SkXMLParser::onText(const char text[], int len) {return false; } |
OLD | NEW |