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

Unified Diff: sky/engine/core/events/AnimationEvent.h

Issue 676923002: Remove the webkit prefix from idl properties and interfaces. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/Touch.idl ('k') | sky/engine/core/events/AnimationEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/events/AnimationEvent.h
diff --git a/sky/engine/core/events/WebKitAnimationEvent.h b/sky/engine/core/events/AnimationEvent.h
similarity index 66%
rename from sky/engine/core/events/WebKitAnimationEvent.h
rename to sky/engine/core/events/AnimationEvent.h
index f4406d9ad8f7cdb31a118742fb2a94ec3dd76c20..94e650c0ca24cff525122dd991542b6b65f8a665 100644
--- a/sky/engine/core/events/WebKitAnimationEvent.h
+++ b/sky/engine/core/events/AnimationEvent.h
@@ -23,8 +23,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebKitAnimationEvent_h
-#define WebKitAnimationEvent_h
+#ifndef AnimationEvent_h
+#define AnimationEvent_h
#include "core/events/Event.h"
@@ -33,30 +33,30 @@ namespace blink {
// FIXME : This class has a WebKit prefix on purpose so we can use the EventAliases system. When the
// runtime flag of unprefixed animation will be removed we can rename that class and do the same as
// the CSS Transitions.
-struct WebKitAnimationEventInit : public EventInit {
- WebKitAnimationEventInit();
+struct AnimationEventInit : public EventInit {
+ AnimationEventInit();
String animationName;
double elapsedTime;
};
-class WebKitAnimationEvent FINAL : public Event {
+class AnimationEvent FINAL : public Event {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<WebKitAnimationEvent> create()
+ static PassRefPtrWillBeRawPtr<AnimationEvent> create()
{
- return adoptRefWillBeNoop(new WebKitAnimationEvent);
+ return adoptRefWillBeNoop(new AnimationEvent);
}
- static PassRefPtrWillBeRawPtr<WebKitAnimationEvent> create(const AtomicString& type, const String& animationName, double elapsedTime)
+ static PassRefPtrWillBeRawPtr<AnimationEvent> create(const AtomicString& type, const String& animationName, double elapsedTime)
{
- return adoptRefWillBeNoop(new WebKitAnimationEvent(type, animationName, elapsedTime));
+ return adoptRefWillBeNoop(new AnimationEvent(type, animationName, elapsedTime));
}
- static PassRefPtrWillBeRawPtr<WebKitAnimationEvent> create(const AtomicString& type, const WebKitAnimationEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<AnimationEvent> create(const AtomicString& type, const AnimationEventInit& initializer)
{
- return adoptRefWillBeNoop(new WebKitAnimationEvent(type, initializer));
+ return adoptRefWillBeNoop(new AnimationEvent(type, initializer));
}
- virtual ~WebKitAnimationEvent();
+ virtual ~AnimationEvent();
const String& animationName() const;
double elapsedTime() const;
@@ -66,9 +66,9 @@ public:
virtual void trace(Visitor*) OVERRIDE;
private:
- WebKitAnimationEvent();
- WebKitAnimationEvent(const AtomicString& type, const String& animationName, double elapsedTime);
- WebKitAnimationEvent(const AtomicString&, const WebKitAnimationEventInit&);
+ AnimationEvent();
+ AnimationEvent(const AtomicString& type, const String& animationName, double elapsedTime);
+ AnimationEvent(const AtomicString&, const AnimationEventInit&);
String m_animationName;
double m_elapsedTime;
@@ -76,4 +76,4 @@ private:
} // namespace blink
-#endif // WebKitAnimationEvent_h
+#endif // AnimationEvent_h
« no previous file with comments | « sky/engine/core/dom/Touch.idl ('k') | sky/engine/core/events/AnimationEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698