Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: Source/core/svg/SVGAnimationElement.h

Issue 201673003: [SVG2] Add onbegin, onend and onrepeat EventHandlers on SVGAnimationElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fs review Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2008 Cameron McCormack <cam@mcc.id.au>
7 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // SVGAnimationElement 67 // SVGAnimationElement
68 float getStartTime() const; 68 float getStartTime() const;
69 float getCurrentTime() const; 69 float getCurrentTime() const;
70 float getSimpleDuration() const; 70 float getSimpleDuration() const;
71 71
72 void beginElement(); 72 void beginElement();
73 void beginElementAt(float offset); 73 void beginElementAt(float offset);
74 void endElement(); 74 void endElement();
75 void endElementAt(float offset); 75 void endElementAt(float offset);
76 76
77 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(begin, beginEvent);
78 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(end, endEvent);
79 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(repeat, repeatEvent);
80
77 static bool isTargetAttributeCSSProperty(SVGElement*, const QualifiedName&); 81 static bool isTargetAttributeCSSProperty(SVGElement*, const QualifiedName&);
78 82
79 virtual bool isAdditive() const; 83 virtual bool isAdditive() const;
80 bool isAccumulated() const; 84 bool isAccumulated() const;
81 AnimationMode animationMode() const { return m_animationMode; } 85 AnimationMode animationMode() const { return m_animationMode; }
82 CalcMode calcMode() const { return m_calcMode; } 86 CalcMode calcMode() const { return m_calcMode; }
83 87
84 enum ShouldApplyAnimation { 88 enum ShouldApplyAnimation {
85 DontApplyAnimation, 89 DontApplyAnimation,
86 ApplyCSSAnimation, 90 ApplyCSSAnimation,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 String m_lastValuesAnimationFrom; 245 String m_lastValuesAnimationFrom;
242 String m_lastValuesAnimationTo; 246 String m_lastValuesAnimationTo;
243 bool m_hasInvalidCSSAttributeType; 247 bool m_hasInvalidCSSAttributeType;
244 CalcMode m_calcMode; 248 CalcMode m_calcMode;
245 AnimationMode m_animationMode; 249 AnimationMode m_animationMode;
246 }; 250 };
247 251
248 } // namespace WebCore 252 } // namespace WebCore
249 253
250 #endif // SVGAnimationElement_h 254 #endif // SVGAnimationElement_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/svg/script-tests/animation-events.js ('k') | Source/core/svg/SVGAnimationElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698