| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 10 #include "chrome/browser/chromeos/status/network_menu.h" | 10 #include "chrome/browser/chromeos/status/network_menu.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 virtual void OnConnectToNetworkRequested() = 0; | 32 virtual void OnConnectToNetworkRequested() = 0; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 NetworkDropdown(Actor* actor, content::WebUI* web_ui, bool oobe); | 35 NetworkDropdown(Actor* actor, content::WebUI* web_ui, bool oobe); |
| 36 virtual ~NetworkDropdown(); | 36 virtual ~NetworkDropdown(); |
| 37 | 37 |
| 38 // This method should be called, when item with the given id is chosen. | 38 // This method should be called, when item with the given id is chosen. |
| 39 void OnItemChosen(int id); | 39 void OnItemChosen(int id); |
| 40 | 40 |
| 41 // NetworkMenu::Delegate | 41 // NetworkMenu::Delegate |
| 42 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; | 42 virtual gfx::NativeWindow GetNativeWindow() const override; |
| 43 virtual void OpenButtonOptions() OVERRIDE; | 43 virtual void OpenButtonOptions() override; |
| 44 virtual bool ShouldOpenButtonOptions() const OVERRIDE; | 44 virtual bool ShouldOpenButtonOptions() const override; |
| 45 virtual void OnConnectToNetworkRequested() OVERRIDE; | 45 virtual void OnConnectToNetworkRequested() override; |
| 46 | 46 |
| 47 // NetworkStateHandlerObserver | 47 // NetworkStateHandlerObserver |
| 48 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; | 48 virtual void DefaultNetworkChanged(const NetworkState* network) override; |
| 49 virtual void NetworkConnectionStateChanged( | 49 virtual void NetworkConnectionStateChanged( |
| 50 const NetworkState* network) OVERRIDE; | 50 const NetworkState* network) override; |
| 51 virtual void NetworkListChanged() OVERRIDE; | 51 virtual void NetworkListChanged() override; |
| 52 | 52 |
| 53 // network_icon::AnimationObserver | 53 // network_icon::AnimationObserver |
| 54 virtual void NetworkIconChanged() OVERRIDE; | 54 virtual void NetworkIconChanged() override; |
| 55 | 55 |
| 56 // Refreshes control state. Usually there's no need to do it manually | 56 // Refreshes control state. Usually there's no need to do it manually |
| 57 // as control refreshes itself on network state change. | 57 // as control refreshes itself on network state change. |
| 58 // Should be called on language change. | 58 // Should be called on language change. |
| 59 void Refresh(); | 59 void Refresh(); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 void SetNetworkIconAndText(); | 62 void SetNetworkIconAndText(); |
| 63 | 63 |
| 64 // Request a network scan and refreshes control state. Should be called | 64 // Request a network scan and refreshes control state. Should be called |
| (...skipping 12 matching lines...) Expand all Loading... |
| 77 | 77 |
| 78 // Timer used to periodically force network scan. | 78 // Timer used to periodically force network scan. |
| 79 base::RepeatingTimer<NetworkDropdown> network_scan_timer_; | 79 base::RepeatingTimer<NetworkDropdown> network_scan_timer_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(NetworkDropdown); | 81 DISALLOW_COPY_AND_ASSIGN(NetworkDropdown); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace chromeos | 84 } // namespace chromeos |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ | 86 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ |
| OLD | NEW |