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

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: rebase Created 8 years, 4 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 | « ash/system/network/network_observer.h ('k') | ash/system/network/tray_network.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..eaed13066ffff18d7f5ccc4488936158ea8e88ad 100644
--- a/ash/system/network/tray_network.h
+++ b/ash/system/network/tray_network.h
@@ -24,6 +24,11 @@ class NetworkTrayView;
class TrayNetwork : public SystemTrayItem,
public NetworkObserver {
public:
+ enum DetailedViewType {
+ LIST_VIEW,
+ WIFI_VIEW,
+ };
+
TrayNetwork();
virtual ~TrayNetwork();
@@ -49,6 +54,7 @@ class TrayNetwork : public SystemTrayItem,
const string16& message,
const string16& link_text) OVERRIDE;
virtual void ClearNetworkError(ErrorType error_type) OVERRIDE;
+ virtual void OnWillToggleWifi() OVERRIDE;
private:
friend class tray::NetworkErrorView;
@@ -63,6 +69,7 @@ class TrayNetwork : public SystemTrayItem,
tray::NetworkDetailedView* detailed_;
tray::NetworkNotificationView* notification_;
scoped_ptr<tray::NetworkErrors> errors_;
+ bool request_wifi_view_;
DISALLOW_COPY_AND_ASSIGN(TrayNetwork);
};
« no previous file with comments | « ash/system/network/network_observer.h ('k') | ash/system/network/tray_network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698