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 51 matching lines...) Loading... |
62 void SetBadge(const SkBitmap& badge) { badge_ = badge; } | 62 void SetBadge(const SkBitmap& badge) { badge_ = badge; } |
63 SkBitmap badge() const { return badge_; } | 63 SkBitmap badge() const { return badge_; } |
64 | 64 |
65 protected: | 65 protected: |
66 // StatusAreaButton implementation. | 66 // StatusAreaButton implementation. |
67 virtual void DrawIcon(gfx::Canvas* canvas); | 67 virtual void DrawIcon(gfx::Canvas* canvas); |
68 | 68 |
69 // NetworkMenu implementation: | 69 // NetworkMenu implementation: |
70 virtual bool IsBrowserMode() const; | 70 virtual bool IsBrowserMode() const; |
71 virtual gfx::NativeWindow GetNativeWindow() const; | 71 virtual gfx::NativeWindow GetNativeWindow() const; |
72 virtual void OpenButtonOptions() const; | 72 virtual void OpenButtonOptions(); |
73 virtual bool ShouldOpenButtonOptions() const; | 73 virtual bool ShouldOpenButtonOptions() const; |
74 | 74 |
75 private: | 75 private: |
76 // The status area host, | 76 // The status area host, |
77 StatusAreaHost* host_; | 77 StatusAreaHost* host_; |
78 | 78 |
79 // A badge icon displayed on top of the icon. | 79 // A badge icon displayed on top of the icon. |
80 SkBitmap badge_; | 80 SkBitmap badge_; |
81 | 81 |
82 // The throb animation that does the wifi connecting animation. | 82 // The throb animation that does the wifi connecting animation. |
83 ThrobAnimation animation_connecting_; | 83 ThrobAnimation animation_connecting_; |
84 | 84 |
85 // The duration of the icon throbbing in milliseconds. | 85 // The duration of the icon throbbing in milliseconds. |
86 static const int kThrobDuration; | 86 static const int kThrobDuration; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); | 88 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace chromeos | 91 } // namespace chromeos |
92 | 92 |
93 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 93 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
OLD | NEW |