| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // Called when the active network has possibly changed. This will remove | 118 // Called when the active network has possibly changed. This will remove |
| 119 // old network observer and add a network observer for the active network. | 119 // old network observer and add a network observer for the active network. |
| 120 void RefreshNetworkObserver(NetworkLibrary* cros); | 120 void RefreshNetworkObserver(NetworkLibrary* cros); |
| 121 | 121 |
| 122 // Shows 3G promo notification if needed. | 122 // Shows 3G promo notification if needed. |
| 123 void ShowOptionalMobileDataPromoNotification(NetworkLibrary* cros); | 123 void ShowOptionalMobileDataPromoNotification(NetworkLibrary* cros); |
| 124 | 124 |
| 125 void SetTooltipAndAccessibleName(const string16& label); | 125 void SetTooltipAndAccessibleName(const string16& label); |
| 126 | 126 |
| 127 // The Network menu. | 127 // The Network menu. |
| 128 scoped_ptr<NetworkMenu> network_menu_; | 128 scoped_ptr<NetworkMenuView> network_menu_; |
| 129 | 129 |
| 130 // Path of the Cellular device that we monitor property updates from. | 130 // Path of the Cellular device that we monitor property updates from. |
| 131 std::string cellular_device_path_; | 131 std::string cellular_device_path_; |
| 132 | 132 |
| 133 // The network icon and associated data. | 133 // The network icon and associated data. |
| 134 scoped_ptr<NetworkMenuIcon> network_icon_; | 134 scoped_ptr<NetworkMenuIcon> network_icon_; |
| 135 | 135 |
| 136 // Notification bubble for 3G promo. | 136 // Notification bubble for 3G promo. |
| 137 MessageBubble* mobile_data_bubble_; | 137 MessageBubble* mobile_data_bubble_; |
| 138 | 138 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 158 | 158 |
| 159 // Factory for delaying showing promo notification. | 159 // Factory for delaying showing promo notification. |
| 160 ScopedRunnableMethodFactory<NetworkMenuButton> method_factory_; | 160 ScopedRunnableMethodFactory<NetworkMenuButton> method_factory_; |
| 161 | 161 |
| 162 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); | 162 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 } // namespace chromeos | 165 } // namespace chromeos |
| 166 | 166 |
| 167 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 167 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
| OLD | NEW |