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

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: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/network/tray_network.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 attempted to toggle Wi-Fi enable/disable.
47 // NOTE: Toggling is asynchronous and subsequent calls to query the current
48 // state may return the old value.
49 virtual void OnWillToggleWifi() = 0;
45 }; 50 };
46 51
47 } // namespace ash 52 } // namespace ash
48 53
49 #endif // ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H 54 #endif // ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H
OLDNEW
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/network/tray_network.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698