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 "SkDisplayEvent.h" | 10 #include "SkDisplayEvent.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 fMax = code; | 243 fMax = code; |
244 SkASSERT(count == 1 || index == SK_PROPERTY(keys)); | 244 SkASSERT(count == 1 || index == SK_PROPERTY(keys)); |
245 if (--count > 0) { | 245 if (--count > 0) { |
246 SkASSERT(*chars == '-'); | 246 SkASSERT(*chars == '-'); |
247 chars++; | 247 chars++; |
248 fMax = (SkKey) SkUTF8_NextUnichar(&chars); | 248 fMax = (SkKey) SkUTF8_NextUnichar(&chars); |
249 SkASSERT(fMax >= code); | 249 SkASSERT(fMax >= code); |
250 } | 250 } |
251 return true; | 251 return true; |
252 } | 252 } |
253 | |
254 #ifdef SK_BUILD_FOR_ANDROID | |
255 | |
256 #include "SkMetaData.h" | |
257 #include "SkParse.h" | |
258 #include "SkTextBox.h" | |
259 #include "SkXMLWriter.h" | |
260 | |
261 void SkMetaData::setPtr(char const*, void*, PtrProc ) {} | |
262 void SkMetaData::setS32(char const*, int ) {} | |
263 bool SkEventSink::doEvent(SkEvent const& ) { return false; } | |
264 bool SkXMLParser::parse(SkStream& ) { return false; } | |
265 SkXMLParserError::SkXMLParserError( ) {} | |
266 void SkEvent::setType(char const*, size_t ) {} | |
267 void SkEvent::postTime(SkMSec) {} | |
268 SkEvent::SkEvent(char const*, SkEventSinkID) {} | |
269 SkEvent::SkEvent(SkEvent const&) {} | |
270 SkEvent::SkEvent( ) {} | |
271 SkEvent::~SkEvent( ) {} | |
272 bool SkEventSink::onQuery(SkEvent* ) { return false; } | |
273 SkEventSink::SkEventSink( ) {} | |
274 SkEventSink::~SkEventSink( ) {} | |
275 bool SkXMLParser::parse(char const*, size_t ) { return false; } | |
276 bool SkXMLParser::parse(SkDOM const&, SkDOMNode const* ) { return false; } | |
277 //void SkParse::UnitTest( ) {} | |
278 const char* SkMetaData::findString(char const* ) const {return 0;} | |
279 bool SkMetaData::findPtr(char const*, void**, PtrProc* ) const {return false;} | |
280 bool SkMetaData::findS32(char const*, int* ) const {return false;} | |
281 bool SkEvent::isType(char const*, size_t ) const { return false; } | |
282 void SkMetaData::setString(char const*, char const* ) {} | |
283 const char* SkParse::FindNamedColor(char const*, size_t, SkColor* ) {return NULL
; } | |
284 const char* SkMetaData::Iter::next(SkMetaData::Type*, int* ) { return NULL; } | |
285 SkMetaData::Iter::Iter(SkMetaData const& ) {} | |
286 bool SkMetaData::findScalar(char const*, SkScalar* ) const {return false;} | |
287 void SkMetaData::reset( ) {} | |
288 void SkEvent::setType(SkString const& ) {} | |
289 bool SkMetaData::findBool(char const*, bool* ) const {return false;} | |
290 void SkEvent::getType(SkString*) const {} | |
291 bool SkXMLParser::endElement(char const* ) { return false; } | |
292 bool SkXMLParser::addAttribute(char const*, char const* ) { return false;} | |
293 bool SkXMLParser::startElement(char const* ) { return false;} | |
294 bool SkXMLParser::text(char const*, int ) { return false;} | |
295 bool SkXMLParser::onText(char const*, int ) { return false;} | |
296 SkXMLParser::SkXMLParser(SkXMLParserError* ) {} | |
297 SkXMLParser::~SkXMLParser( ) {} | |
298 SkXMLParserError::~SkXMLParserError( ) {} | |
299 void SkXMLParserError::getErrorString(SkString*) const {} | |
300 void SkTextBox::setSpacing(SkScalar, SkScalar ) {} | |
301 void SkTextBox::setSpacingAlign(SkTextBox::SpacingAlign ) {} | |
302 void SkTextBox::draw(SkCanvas*, char const*, size_t, SkPaint const& ) {} | |
303 void SkTextBox::setBox(SkRect const& ) {} | |
304 void SkTextBox::setMode(SkTextBox::Mode ) {} | |
305 SkTextBox::SkTextBox( ) {} | |
306 void SkMetaData::setScalar(char const*, SkScalar ) {} | |
307 const char* SkParse::FindScalar(char const*, SkScalar* ) {return 0; } | |
308 const char* SkParse::FindScalars(char const*, SkScalar*, int ) {return 0; } | |
309 const char* SkParse::FindHex(char const*, unsigned int* ) {return 0; } | |
310 const char* SkParse::FindS32(char const*, int* ) {return 0; } | |
311 void SkXMLWriter::addAttribute(char const*, char const* ) {} | |
312 void SkXMLWriter::startElement(char const* ) {} | |
313 void SkXMLWriter::doEnd(SkXMLWriter::Elem* ) {} | |
314 SkXMLWriter::Elem* SkXMLWriter::getEnd( ) { return 0; } | |
315 bool SkXMLWriter::doStart(char const*, size_t ) { return false; } | |
316 SkXMLWriter::SkXMLWriter(bool ) {} | |
317 SkXMLWriter::~SkXMLWriter( ) {} | |
318 SkMetaData::SkMetaData() {} | |
319 SkMetaData::~SkMetaData() {} | |
320 bool SkEventSink::onEvent(SkEvent const&) {return false;} | |
321 bool SkXMLParser::onEndElement(char const*) {return false;} | |
322 bool SkXMLParser::onAddAttribute(char const*, char const*) {return false;} | |
323 bool SkXMLParser::onStartElement(char const*) {return false;} | |
324 void SkXMLWriter::writeHeader() {} | |
325 | |
326 #endif | |
OLD | NEW |