OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_OBSERVER_H_ |
| 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_OBSERVER_H_ |
| 7 |
| 8 namespace ash { |
| 9 namespace network_icon { |
| 10 |
| 11 // Observer interface class for animating network icons. |
| 12 class AnimationObserver { |
| 13 public: |
| 14 // Called when the image has changed due to animation. The callback should |
| 15 // trigger a call to GetImageForNetwork() to retrieve the image. |
| 16 virtual void NetworkIconChanged() = 0; |
| 17 |
| 18 protected: |
| 19 virtual ~AnimationObserver() {} |
| 20 }; |
| 21 |
| 22 } // namespace network_icon |
| 23 } // namespace ash |
| 24 |
| 25 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_OBSERVER_H_ |
OLD | NEW |