diff options
author | chocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-03 06:58:14 +0000 |
---|---|---|
committer | chocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-03 06:58:14 +0000 |
commit | 7c3cc8a33bbd488b37478cafe01dd6a3a43591d7 (patch) | |
tree | 7606bca17e04156f1e49f76cd89a689d30b847a2 /chrome/browser/chromeos/network_message_observer.h | |
parent | 6b26224c72ca4b49c50d881d51ec9d72b70f8dfc (diff) | |
download | chromium_src-7c3cc8a33bbd488b37478cafe01dd6a3a43591d7.zip chromium_src-7c3cc8a33bbd488b37478cafe01dd6a3a43591d7.tar.gz chromium_src-7c3cc8a33bbd488b37478cafe01dd6a3a43591d7.tar.bz2 |
Revert 64888 - Push for ers:
Added handling of network ("service" in flimflam parlance) property changes.
NetworkLibrary updates its Network objects in response to property changes,
then calls any NetworkObservers that have registered for the given network.
Use the is_active member of Network in various places to ensure that we are
dealing with the correct network.
Created separate observer classes for NetworkManager, Network, and
CellularDataPlan, so that monitors can be established independently for each
of them. Changed the callback method names to prepend "On", i.e.,
OnNetworkManagerChanged, OnNetworkChanged, OnCellularDataPlanChanged.
Wired up signal strength update and network technology update in the status
bar, network dropdown menu, and internet settings page.
Added new icon badges for 1xRTT radio technology. These are used when EVDO
coverage switches to 1xRTT. Just as is the case for the 3G icons, there are
three 1x icons: normal, warn, and error. Please consider these icons to be
placeholders if the UI folks think they need to be redesigned.
Centralized choosing of the network technology badge in
NetworkMenu::BadgeForNetworkTechnology.
BUG=chromium-os:5612:chromium-os:7619,chromium-os:5917,chromium-os:4674
TEST=Extensive manual testing with different combinations of wi-fi and
cellular networks connected and disconnected. Used a modified version
of flimflam that randomly changes reported signal strength, network
technology, and roaming state, and verified that the UI correctly reflected
current values for the active network (roaming is not handled in the UI
at this time).
Review URL: http://codereview.chromium.org/4235005
TBR=chocobo@chromium.org
Review URL: http://codereview.chromium.org/4229006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64889 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/network_message_observer.h')
-rw-r--r-- | chrome/browser/chromeos/network_message_observer.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/chromeos/network_message_observer.h b/chrome/browser/chromeos/network_message_observer.h index db1ba1b..cdb0a81 100644 --- a/chrome/browser/chromeos/network_message_observer.h +++ b/chrome/browser/chromeos/network_message_observer.h @@ -23,8 +23,7 @@ namespace chromeos { // The network message observer displays a system notification for network // messages. -class NetworkMessageObserver : public NetworkLibrary::NetworkManagerObserver, - public NetworkLibrary::CellularDataPlanObserver { +class NetworkMessageObserver : public NetworkLibrary::Observer { public: explicit NetworkMessageObserver(Profile* profile); virtual ~NetworkMessageObserver(); @@ -35,10 +34,9 @@ class NetworkMessageObserver : public NetworkLibrary::NetworkManagerObserver, virtual void CreateModalPopup(views::WindowDelegate* view); virtual void MobileSetup(const ListValue* args); - // NetworkLibrary::NetworkManagerObserver implementation. - virtual void OnNetworkManagerChanged(NetworkLibrary* obj); - // NetworkLibrary::CellularDataPlanObserver implementation. - virtual void OnCellularDataPlanChanged(NetworkLibrary* obj); + // NetworkLibrary::Observer implementation. + virtual void NetworkChanged(NetworkLibrary* obj); + virtual void CellularDataPlanChanged(NetworkLibrary* obj); bool initialized_; // Wifi networks by service path. @@ -64,3 +62,4 @@ class NetworkMessageObserver : public NetworkLibrary::NetworkManagerObserver, } // namespace chromeos #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ + |