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

Unified Diff: ash/system/chromeos/network/tray_vpn.cc

Issue 351353004: chromeos: Move some network related UI in ui/chromeos/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-build Created 6 years, 5 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
Index: ash/system/chromeos/network/tray_vpn.cc
diff --git a/ash/system/chromeos/network/tray_vpn.cc b/ash/system/chromeos/network/tray_vpn.cc
index 3f73c7a67d6ff19defb9752e7e874c1e7bf97cce..05209775050f3dcab467d487995b4c2e0d361a90 100644
--- a/ash/system/chromeos/network/tray_vpn.cc
+++ b/ash/system/chromeos/network/tray_vpn.cc
@@ -6,7 +6,6 @@
#include "ash/metrics/user_metrics_recorder.h"
#include "ash/shell.h"
-#include "ash/system/chromeos/network/network_icon_animation.h"
#include "ash/system/chromeos/network/network_state_list_detailed_view.h"
#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/system_tray_delegate.h"
@@ -19,6 +18,7 @@
#include "third_party/cros_system_api/dbus/service_constants.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/chromeos/network/network_icon_animation.h"
using chromeos::NetworkHandler;
using chromeos::NetworkState;
@@ -29,7 +29,7 @@ namespace ash {
namespace tray {
class VpnDefaultView : public TrayItemMore,
- public network_icon::AnimationObserver {
+ public ui::network_icon::AnimationObserver {
public:
VpnDefaultView(SystemTrayItem* owner, bool show_more)
: TrayItemMore(owner, show_more) {
@@ -37,7 +37,7 @@ class VpnDefaultView : public TrayItemMore,
}
virtual ~VpnDefaultView() {
- network_icon::NetworkIconAnimation::GetInstance()->RemoveObserver(this);
+ ui::network_icon::NetworkIconAnimation::GetInstance()->RemoveObserver(this);
}
static bool ShouldShow() {
@@ -55,15 +55,16 @@ class VpnDefaultView : public TrayItemMore,
bool animating = false;
GetNetworkStateHandlerImageAndLabel(&image, &label, &animating);
if (animating)
- network_icon::NetworkIconAnimation::GetInstance()->AddObserver(this);
+ ui::network_icon::NetworkIconAnimation::GetInstance()->AddObserver(this);
else
- network_icon::NetworkIconAnimation::GetInstance()->RemoveObserver(this);
+ ui::network_icon::NetworkIconAnimation::GetInstance()->RemoveObserver(
+ this);
SetImage(&image);
SetLabel(label);
SetAccessibleName(label);
}
- // network_icon::AnimationObserver
+ // ui::network_icon::AnimationObserver
virtual void NetworkIconChanged() OVERRIDE {
Update();
}
@@ -77,8 +78,8 @@ class VpnDefaultView : public TrayItemMore,
const NetworkState* vpn =
handler->FirstNetworkByType(NetworkTypePattern::VPN());
if (!vpn || (vpn->connection_state() == shill::kStateIdle)) {
- *image = network_icon::GetImageForDisconnectedNetwork(
- network_icon::ICON_TYPE_DEFAULT_VIEW, shill::kTypeVPN);
+ *image = ui::network_icon::GetImageForDisconnectedNetwork(
+ ui::network_icon::ICON_TYPE_DEFAULT_VIEW, shill::kTypeVPN);
if (label) {
*label = l10n_util::GetStringUTF16(
IDS_ASH_STATUS_TRAY_VPN_DISCONNECTED);
@@ -87,11 +88,11 @@ class VpnDefaultView : public TrayItemMore,
return;
}
*animating = vpn->IsConnectingState();
- *image = network_icon::GetImageForNetwork(
- vpn, network_icon::ICON_TYPE_DEFAULT_VIEW);
+ *image = ui::network_icon::GetImageForNetwork(
+ vpn, ui::network_icon::ICON_TYPE_DEFAULT_VIEW);
if (label) {
- *label = network_icon::GetLabelForNetwork(
- vpn, network_icon::ICON_TYPE_DEFAULT_VIEW);
+ *label = ui::network_icon::GetLabelForNetwork(
+ vpn, ui::network_icon::ICON_TYPE_DEFAULT_VIEW);
}
}
« no previous file with comments | « ash/system/chromeos/network/tray_network_state_observer.cc ('k') | chrome/browser/chromeos/status/network_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698