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

Unified Diff: ash/system/network/tray_network.h

Issue 10824142: Support toggling Wi-Fi with keyboard shortcut. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change the key conbination and messages for popup Created 8 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/network/tray_network.h
diff --git a/ash/system/network/tray_network.h b/ash/system/network/tray_network.h
index 022446dce5fb03815f74cb82d6cf4122330c446c..f240099c4e3eee4d947654431afa11088b63fb82 100644
--- a/ash/system/network/tray_network.h
+++ b/ash/system/network/tray_network.h
@@ -12,6 +12,8 @@
namespace ash {
namespace internal {
+class TrayDetailsView;
+
namespace tray {
class NetworkDefaultView;
class NetworkDetailedView;
@@ -49,6 +51,7 @@ class TrayNetwork : public SystemTrayItem,
const string16& message,
const string16& link_text) OVERRIDE;
virtual void ClearNetworkError(ErrorType error_type) OVERRIDE;
+ virtual void OnWifiToggled(bool wifi_enabled) OVERRIDE;
private:
friend class tray::NetworkErrorView;
@@ -61,6 +64,7 @@ class TrayNetwork : public SystemTrayItem,
tray::NetworkTrayView* tray_;
tray::NetworkDefaultView* default_;
tray::NetworkDetailedView* detailed_;
+ TrayDetailsView* wifi_view_;
stevenjb 2012/08/02 17:47:16 Having two different detailed view pointers is pre
mazda 2012/08/02 19:49:16 Created a common base class and deleted wifi_view_
tray::NetworkNotificationView* notification_;
scoped_ptr<tray::NetworkErrors> errors_;

Powered by Google App Engine
This is Rietveld 408576698