OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/throb_animation.h" | 9 #include "app/throb_animation.h" |
10 #include "base/timer.h" | 10 #include "base/timer.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 public NetworkLibrary::Observer { | 49 public NetworkLibrary::Observer { |
50 public: | 50 public: |
51 explicit NetworkMenuButton(StatusAreaHost* host); | 51 explicit NetworkMenuButton(StatusAreaHost* host); |
52 virtual ~NetworkMenuButton(); | 52 virtual ~NetworkMenuButton(); |
53 | 53 |
54 // AnimationDelegate implementation. | 54 // AnimationDelegate implementation. |
55 virtual void AnimationProgressed(const Animation* animation); | 55 virtual void AnimationProgressed(const Animation* animation); |
56 | 56 |
57 // NetworkLibrary::Observer implementation. | 57 // NetworkLibrary::Observer implementation. |
58 virtual void NetworkChanged(NetworkLibrary* obj); | 58 virtual void NetworkChanged(NetworkLibrary* obj); |
59 virtual void CellularDataPlanChanged(NetworkLibrary* obj); | |
60 | 59 |
61 // Sets the badge icon. | 60 // Sets the badge icon. |
62 void SetBadge(const SkBitmap& badge); | 61 void SetBadge(const SkBitmap& badge); |
63 SkBitmap badge() const { return badge_; } | 62 SkBitmap badge() const { return badge_; } |
64 | 63 |
65 protected: | 64 protected: |
66 // StatusAreaButton implementation. | 65 // StatusAreaButton implementation. |
67 virtual void DrawPressed(gfx::Canvas* canvas); | 66 virtual void DrawPressed(gfx::Canvas* canvas); |
68 virtual void DrawIcon(gfx::Canvas* canvas); | 67 virtual void DrawIcon(gfx::Canvas* canvas); |
69 | 68 |
(...skipping 15 matching lines...) Expand all Loading... |
85 | 84 |
86 // The duration of the icon throbbing in milliseconds. | 85 // The duration of the icon throbbing in milliseconds. |
87 static const int kThrobDuration; | 86 static const int kThrobDuration; |
88 | 87 |
89 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); | 88 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); |
90 }; | 89 }; |
91 | 90 |
92 } // namespace chromeos | 91 } // namespace chromeos |
93 | 92 |
94 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 93 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
OLD | NEW |