Lines Matching refs:Event
43 enum class Event {
65 static bool IsGoodEvent(Event event);
71 * Returns the current event that is being processed.
73 Event event() const;
81 Event Next();
92 * Returns the character data for a Text event.
164 Event event;
207 XmlPullParser::Event event) {
208 switch (event) {
209 case XmlPullParser::Event::kBadDocument:
211 case XmlPullParser::Event::kStartDocument:
213 case XmlPullParser::Event::kEndDocument:
215 case XmlPullParser::Event::kStartNamespace:
217 case XmlPullParser::Event::kEndNamespace:
219 case XmlPullParser::Event::kStartElement:
221 case XmlPullParser::Event::kEndElement:
223 case XmlPullParser::Event::kText:
225 case XmlPullParser::Event::kComment:
233 Event event;
236 while (IsGoodEvent(event = parser->Next()) &&
241 while ((event != Event::kEndElement || parser->depth() > start_depth) &&
242 IsGoodEvent(event)) {
243 switch (event) {
244 case Event::kText:
245 case Event::kComment:
246 case Event::kStartElement:
251 event = parser->Next();
260 case Event::kEndDocument:
262 case Event::kBadDocument:
264 case Event::kStartElement:
267 case Event::kEndElement:
277 inline bool XmlPullParser::IsGoodEvent(XmlPullParser::Event event) {
278 return event != Event::kBadDocument && event != Event::kEndDocument;