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

Side by Side Diff: ash/system/network/network_observer.h

Issue 10824142: Support toggling Wi-Fi with keyboard shortcut. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H 5 #ifndef ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H
6 #define ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H 6 #define ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 24 matching lines...) Expand all
35 // Sets a network error notification. |error_type| identifies the type of 35 // Sets a network error notification. |error_type| identifies the type of
36 // error. |delegate|->NotificationLinkClicked() will be called if |link_text| 36 // error. |delegate|->NotificationLinkClicked() will be called if |link_text|
37 // is clicked (if supplied, |link_text| may be empty). 37 // is clicked (if supplied, |link_text| may be empty).
38 virtual void SetNetworkError(NetworkTrayDelegate* delegate, 38 virtual void SetNetworkError(NetworkTrayDelegate* delegate,
39 ErrorType error_type, 39 ErrorType error_type,
40 const string16& title, 40 const string16& title,
41 const string16& message, 41 const string16& message,
42 const string16& link_text) = 0; 42 const string16& link_text) = 0;
43 // Clears the error notification for |error_type|. 43 // Clears the error notification for |error_type|.
44 virtual void ClearNetworkError(ErrorType error_type) = 0; 44 virtual void ClearNetworkError(ErrorType error_type) = 0;
45
46 // Called when the user toggled Wi-Fi enable/disable.
47 // |wifi_enabled| is the new state of Wi-Fi after it is toggled.
48 virtual void OnWifiToggled(bool wifi_enabled) = 0;
45 }; 49 };
46 50
47 } // namespace ash 51 } // namespace ash
48 52
49 #endif // ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H 53 #endif // ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698