SVGDocumentExtensions.h [plain text]
#ifndef SVGDocumentExtensions_H
#define SVGDocumentExtensions_H
#if SVG_SUPPORT
#include <wtf/Forward.h>
#include <wtf/HashSet.h>
namespace WebCore {
class Document;
class EventListener;
class Node;
class String;
class SVGSVGElement;
class TimeScheduler;
class SVGDocumentExtensions {
public:
SVGDocumentExtensions(Document*);
~SVGDocumentExtensions();
PassRefPtr<EventListener> createSVGEventListener(const String& functionName, const String& code, Node*);
void addTimeContainer(SVGSVGElement*);
void removeTimeContainer(SVGSVGElement*);
void startAnimations();
void pauseAnimations();
void unpauseAnimations();
private:
Document* m_doc; HashSet<SVGSVGElement*> m_timeContainers;
SVGDocumentExtensions(const SVGDocumentExtensions&);
SVGDocumentExtensions& operator=(const SVGDocumentExtensions&);
};
}
#endif // SVG_SUPPORT
#endif