// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIA_CONTROLS_ELEMENTS_MEDIA_CONTROL_ANIMATION_EVENT_LISTENER_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIA_CONTROLS_ELEMENTS_MEDIA_CONTROL_ANIMATION_EVENT_LISTENER_H_ #include "third_party/blink/renderer/core/dom/events/native_event_listener.h" #include "third_party/blink/renderer/modules/modules_export.h" #include "third_party/blink/renderer/platform/heap/member.h" namespace blink { class Element; class ExecutionContext; class Event; // Listens for animationend and animationiteration DOM events on a HTML element // provided by the loading panel. When the events are called it calls the // OnAnimation* methods on the loading panel. // // This exists because we need to know when the animation ends so we can reset // the element and we also need to keep track of how many iterations the // animation has gone through so we can nicely stop the animation at the end of // the current one. class MODULES_EXPORT MediaControlAnimationEventListener final : public NativeEventListener { … }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIA_CONTROLS_ELEMENTS_MEDIA_CONTROL_ANIMATION_EVENT_LISTENER_H_