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

Unified Diff: ui/chromeos/network/network_icon_animation.h

Issue 2435903002: Move tray code from ui/chromeos/network/ (Closed)
Patch Set: Rebase Created 4 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 | « ui/chromeos/network/network_icon.cc ('k') | ui/chromeos/network/network_icon_animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/chromeos/network/network_icon_animation.h
diff --git a/ui/chromeos/network/network_icon_animation.h b/ui/chromeos/network/network_icon_animation.h
deleted file mode 100644
index f37791b790aa5fa3aab3e121598bbd9f49cbedc7..0000000000000000000000000000000000000000
--- a/ui/chromeos/network/network_icon_animation.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_H_
-#define UI_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_H_
-
-#include <set>
-#include <string>
-
-#include "base/observer_list.h"
-#include "ui/chromeos/ui_chromeos_export.h"
-#include "ui/gfx/animation/animation_delegate.h"
-#include "ui/gfx/animation/throb_animation.h"
-
-namespace ui {
-namespace network_icon {
-
-class AnimationObserver;
-
-// Single instance class to handle icon animations and keep them in sync.
-class UI_CHROMEOS_EXPORT NetworkIconAnimation : public gfx::AnimationDelegate {
- public:
- NetworkIconAnimation();
- ~NetworkIconAnimation() override;
-
- // Returns the current animation value, [0-1].
- double GetAnimation();
-
- // The animation stops when all observers have been removed.
- // Be sure to remove observers when no associated icons are animating.
- void AddObserver(AnimationObserver* observer);
- void RemoveObserver(AnimationObserver* observer);
-
- // gfx::AnimationDelegate implementation.
- void AnimationProgressed(const gfx::Animation* animation) override;
-
- static NetworkIconAnimation* GetInstance();
-
- private:
- gfx::ThrobAnimation animation_;
- base::ObserverList<AnimationObserver> observers_;
-};
-
-} // namespace network_icon
-} // namespace ui
-
-#endif // UI_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_H_
« no previous file with comments | « ui/chromeos/network/network_icon.cc ('k') | ui/chromeos/network/network_icon_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698