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

Side by Side Diff: ash/system/chromeos/network/network_icon_animation_observer.h

Issue 12094072: Use ash NetworkIconAnimation in NetworkMenuIcon code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_OBSERVER_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_OBSERVER_H_
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_OBSERVER_H_ 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_OBSERVER_H_
7 7
8 #include "ash/ash_export.h"
9
8 namespace ash { 10 namespace ash {
9 namespace network_icon { 11 namespace network_icon {
10 12
11 // Observer interface class for animating network icons. 13 // Observer interface class for animating network icons.
12 class AnimationObserver { 14 class ASH_EXPORT AnimationObserver {
13 public: 15 public:
14 // Called when the image has changed due to animation. The callback should 16 // Called when the image has changed due to animation. The callback should
15 // trigger a call to GetImageForNetwork() to retrieve the image. 17 // trigger a call to GetImageForNetwork() to retrieve the image.
16 virtual void NetworkIconChanged() = 0; 18 virtual void NetworkIconChanged() = 0;
17 19
18 protected: 20 protected:
19 virtual ~AnimationObserver() {} 21 virtual ~AnimationObserver() {}
20 }; 22 };
21 23
22 } // namespace network_icon 24 } // namespace network_icon
23 } // namespace ash 25 } // namespace ash
24 26
25 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_OBSERVER_H_ 27 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_ANIMATION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698