| 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 |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/timer.h" | 12 #include "base/timer.h" |
| 13 #include "chrome/browser/chromeos/cros/network_library.h" | 13 #include "chrome/browser/chromeos/cros/network_library.h" |
| 14 #include "chrome/browser/chromeos/login/message_bubble.h" | 14 #include "chrome/browser/chromeos/login/message_bubble.h" |
| 15 #include "chrome/browser/chromeos/mobile_config.h" | 15 #include "chrome/browser/chromeos/mobile_config.h" |
| 16 #include "chrome/browser/chromeos/status/network_menu.h" | 16 #include "chrome/browser/chromeos/status/network_menu.h" |
| 17 #include "chrome/browser/chromeos/status/network_menu_icon.h" | 17 #include "chrome/browser/chromeos/status/network_menu_icon.h" |
| 18 #include "chrome/browser/chromeos/status/status_area_button.h" | 18 #include "chrome/browser/chromeos/status/status_area_button.h" |
| 19 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h" | 19 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h" |
| 20 | 20 |
| 21 class PrefService; | 21 class PrefService; |
| 22 | 22 |
| 23 namespace gfx { | |
| 24 class Canvas; | |
| 25 } | |
| 26 | |
| 27 namespace chromeos { | 23 namespace chromeos { |
| 28 | 24 |
| 29 // The network menu button in the status area. | 25 // The network menu button in the status area. |
| 30 // This class will handle getting the wifi networks and populating the menu. | 26 // This class will handle getting the wifi networks and populating the menu. |
| 31 // It will also handle the status icon changing and connecting to another | 27 // It will also handle the status icon changing and connecting to another |
| 32 // wifi/cellular network. | 28 // wifi/cellular network. |
| 33 // | 29 // |
| 34 // The network menu looks like this: | 30 // The network menu looks like this: |
| 35 // | 31 // |
| 36 // <icon> Ethernet | 32 // <icon> Ethernet |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 157 |
| 162 // Factory for delaying showing promo notification. | 158 // Factory for delaying showing promo notification. |
| 163 base::WeakPtrFactory<NetworkMenuButton> weak_ptr_factory_; | 159 base::WeakPtrFactory<NetworkMenuButton> weak_ptr_factory_; |
| 164 | 160 |
| 165 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); | 161 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); |
| 166 }; | 162 }; |
| 167 | 163 |
| 168 } // namespace chromeos | 164 } // namespace chromeos |
| 169 | 165 |
| 170 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 166 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
| OLD | NEW |