#ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_H_
#define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_H_
#include <set>
#include <string>
#include "ash/ash_export.h"
#include "base/observer_list.h"
#include "ui/gfx/animation/animation_delegate.h"
#include "ui/gfx/animation/throb_animation.h"
namespace ash {
namespace network_icon {
class AnimationObserver;
class ASH_EXPORT NetworkIconAnimation : public gfx::AnimationDelegate {
public:
NetworkIconAnimation();
virtual ~NetworkIconAnimation();
double GetAnimation();
void AddObserver(AnimationObserver* observer);
void RemoveObserver(AnimationObserver* observer);
virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
static NetworkIconAnimation* GetInstance();
private:
gfx::ThrobAnimation animation_;
ObserverList<AnimationObserver> observers_;
};
}
}
#endif