3 * Copyright 2006 The Android Open Source Project
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
10 #ifndef SkXMLAnimatorWriter_DEFINED
11 #define SkXMLAnimatorWriter_DEFINED
13 #include "SkXMLWriter.h"
16 class SkDisplayXMLParser;
18 class SkXMLAnimatorWriter : public SkXMLWriter {
20 SkXMLAnimatorWriter(SkAnimator*);
21 virtual ~SkXMLAnimatorWriter();
22 virtual void writeHeader();
23 SkDEBUGCODE(static void UnitTest(class SkCanvas* canvas);)
26 void onAddAttributeLen(const char name[], const char value[], size_t length) SK_OVERRIDE;
27 void onEndElement() SK_OVERRIDE;
28 void onStartElementLen(const char elem[], size_t length) SK_OVERRIDE;
29 void onAddText(const char text[], size_t length) SK_OVERRIDE;
32 SkAnimator* fAnimator;
33 SkDisplayXMLParser* fParser;
36 #endif // SkXMLAnimatorWriter_DEFINED