OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // for the new devices. | 109 // for the new devices. |
110 void RefreshNetworkDeviceObserver(NetworkLibrary* cros); | 110 void RefreshNetworkDeviceObserver(NetworkLibrary* cros); |
111 | 111 |
112 // Called when the active network has possibly changed. This will remove | 112 // Called when the active network has possibly changed. This will remove |
113 // old network observer and add a network observer for the active network. | 113 // old network observer and add a network observer for the active network. |
114 void RefreshNetworkObserver(NetworkLibrary* cros); | 114 void RefreshNetworkObserver(NetworkLibrary* cros); |
115 | 115 |
116 // Shows 3G promo notification if needed. | 116 // Shows 3G promo notification if needed. |
117 void ShowOptionalMobileDataPromoNotification(NetworkLibrary* cros); | 117 void ShowOptionalMobileDataPromoNotification(NetworkLibrary* cros); |
118 | 118 |
119 // The status area host, | |
120 StatusAreaHost* host_; | |
121 | |
122 // Path of the Cellular device that we monitor property updates from. | 119 // Path of the Cellular device that we monitor property updates from. |
123 std::string cellular_device_path_; | 120 std::string cellular_device_path_; |
124 | 121 |
125 // The icon showing the network strength. | 122 // The icon showing the network strength. |
126 const SkBitmap* icon_; | 123 const SkBitmap* icon_; |
127 // A badge icon displayed on top of icon, in bottom-right corner. | 124 // A badge icon displayed on top of icon, in bottom-right corner. |
128 const SkBitmap* right_badge_; | 125 const SkBitmap* right_badge_; |
129 // A badge icon displayed on top of icon, in bottom-left corner. | 126 // A badge icon displayed on top of icon, in bottom-left corner. |
130 const SkBitmap* left_badge_; | 127 const SkBitmap* left_badge_; |
131 | 128 |
(...skipping 12 matching lines...) Expand all Loading... |
144 | 141 |
145 // Factory for delaying showing promo notification. | 142 // Factory for delaying showing promo notification. |
146 ScopedRunnableMethodFactory<NetworkMenuButton> method_factory_; | 143 ScopedRunnableMethodFactory<NetworkMenuButton> method_factory_; |
147 | 144 |
148 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); | 145 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); |
149 }; | 146 }; |
150 | 147 |
151 } // namespace chromeos | 148 } // namespace chromeos |
152 | 149 |
153 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 150 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
OLD | NEW |