Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Unified Diff: chrome/browser/chromeos/dom_ui/internet_options_handler.cc

Issue 3166028: Replace network combobox with network dropdown button (Closed)
Patch Set: Removed trailing spaces Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/network_screen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/dom_ui/internet_options_handler.cc
diff --git a/chrome/browser/chromeos/dom_ui/internet_options_handler.cc b/chrome/browser/chromeos/dom_ui/internet_options_handler.cc
index bbb370e7349b5e3259bf00f9722d7e0185dde7fc..7e157ed9dcae773ba64ad87c8e3e8622d29e3047 100644
--- a/chrome/browser/chromeos/dom_ui/internet_options_handler.cc
+++ b/chrome/browser/chromeos/dom_ui/internet_options_handler.cc
@@ -18,7 +18,7 @@
#include "chrome/browser/browser_list.h"
#include "chrome/browser/browser_window.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
-#include "chrome/browser/chromeos/status/network_menu_button.h"
+#include "chrome/browser/chromeos/status/network_menu.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/tab_contents_view.h"
#include "chrome/common/notification_service.h"
@@ -227,7 +227,7 @@ ListValue* InternetOptionsHandler::GetWiredList() {
SkBitmap icon = *rb.GetBitmapNamed(IDR_STATUSBAR_WIRED_BLACK);
if (!ethernet_network.connecting() &&
!ethernet_network.connected()) {
- icon = chromeos::NetworkMenuButton::IconForDisplay(icon,
+ icon = chromeos::NetworkMenu::IconForDisplay(icon,
*rb.GetBitmapNamed(IDR_STATUSBAR_NETWORK_DISCONNECTED));
}
list->Append(GetNetwork(
@@ -251,10 +251,10 @@ ListValue* InternetOptionsHandler::GetWirelessList() {
const chromeos::WifiNetworkVector& wifi_networks = cros->wifi_networks();
for (chromeos::WifiNetworkVector::const_iterator it =
wifi_networks.begin(); it != wifi_networks.end(); ++it) {
- SkBitmap icon = chromeos::NetworkMenuButton::IconForNetworkStrength(
+ SkBitmap icon = chromeos::NetworkMenu::IconForNetworkStrength(
it->strength(), true);
if (it->encrypted()) {
- icon = chromeos::NetworkMenuButton::IconForDisplay(icon,
+ icon = chromeos::NetworkMenu::IconForDisplay(icon,
*rb.GetBitmapNamed(IDR_STATUSBAR_NETWORK_SECURE));
}
list->Append(GetNetwork(
@@ -271,10 +271,10 @@ ListValue* InternetOptionsHandler::GetWirelessList() {
cros->cellular_networks();
for (chromeos::CellularNetworkVector::const_iterator it =
cellular_networks.begin(); it != cellular_networks.end(); ++it) {
- SkBitmap icon = chromeos::NetworkMenuButton::IconForNetworkStrength(
+ SkBitmap icon = chromeos::NetworkMenu::IconForNetworkStrength(
it->strength(), true);
SkBitmap badge = *rb.GetBitmapNamed(IDR_STATUSBAR_NETWORK_3G);
- icon = chromeos::NetworkMenuButton::IconForDisplay(icon, badge);
+ icon = chromeos::NetworkMenu::IconForDisplay(icon, badge);
list->Append(GetNetwork(
it->service_path(),
icon,
@@ -312,7 +312,7 @@ ListValue* InternetOptionsHandler::GetRememberedList() {
wifi_networks.begin(); it != wifi_networks.end(); ++it) {
SkBitmap icon = *rb.GetBitmapNamed(IDR_STATUSBAR_NETWORK_BARS0);
if (it->encrypted()) {
- icon = chromeos::NetworkMenuButton::IconForDisplay(icon,
+ icon = chromeos::NetworkMenu::IconForDisplay(icon,
*rb.GetBitmapNamed(IDR_STATUSBAR_NETWORK_SECURE));
}
list->Append(GetNetwork(
@@ -331,7 +331,7 @@ ListValue* InternetOptionsHandler::GetRememberedList() {
cellular_networks.begin(); it != cellular_networks.end(); ++it) {
SkBitmap icon = *rb.GetBitmapNamed(IDR_STATUSBAR_NETWORK_BARS0);
SkBitmap badge = *rb.GetBitmapNamed(IDR_STATUSBAR_NETWORK_3G);
- icon = chromeos::NetworkMenuButton::IconForDisplay(icon, badge);
+ icon = chromeos::NetworkMenu::IconForDisplay(icon, badge);
list->Append(GetNetwork(
it->service_path(),
icon,
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/network_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698