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

Side by Side Diff: ash/system/tray/system_tray_delegate.h

Issue 21046008: Convert all connect code to use NetworkHandler instead of NetworkLibrary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedbac Round 2.2 Created 7 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_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/system/user/login_status.h" 12 #include "ash/system/user/login_status.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/i18n/time_formatting.h" 14 #include "base/i18n/time_formatting.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
17 #include "ui/gfx/image/image_skia.h" 17 #include "ui/gfx/image/image_skia.h"
18 #include "ui/gfx/native_widget_types.h"
18 19
19 namespace base { 20 namespace base {
20 class TimeDelta; 21 class TimeDelta;
21 class TimeTicks; 22 class TimeTicks;
22 } 23 }
23 24
24 namespace ash { 25 namespace ash {
25 26
26 struct ASH_EXPORT NetworkIconInfo { 27 struct ASH_EXPORT NetworkIconInfo {
27 NetworkIconInfo(); 28 NetworkIconInfo();
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // Cancels ongoing drive operation. 245 // Cancels ongoing drive operation.
245 virtual void CancelDriveOperation(int32 operation_id) = 0; 246 virtual void CancelDriveOperation(int32 operation_id) = 0;
246 247
247 // Returns information about the ongoing drive operations. 248 // Returns information about the ongoing drive operations.
248 virtual void GetDriveOperationStatusList( 249 virtual void GetDriveOperationStatusList(
249 DriveOperationStatusList* list) = 0; 250 DriveOperationStatusList* list) = 0;
250 251
251 // Shows UI to configure or activate the network specified by |network_id|. 252 // Shows UI to configure or activate the network specified by |network_id|.
252 virtual void ConfigureNetwork(const std::string& network_id) = 0; 253 virtual void ConfigureNetwork(const std::string& network_id) = 0;
253 254
254 // Sends a connect request for the network specified by |network_id|. 255 // Shows UI to enroll the network specified by |network_id| if appropriate,
255 virtual void ConnectToNetwork(const std::string& network_id) = 0; 256 // otherwise behaves the same as ConfigureNetwork. |parent_window| is used
257 // to parent any configuration UI. If NULL a default window will be used.
258 virtual void EnrollOrConfigureNetwork(const std::string& network_id,
259 gfx::NativeWindow parent_window) = 0;
256 260
257 // Shows UI to manage bluetooth devices. 261 // Shows UI to manage bluetooth devices.
258 virtual void ManageBluetoothDevices() = 0; 262 virtual void ManageBluetoothDevices() = 0;
259 263
260 // Toggles bluetooth. 264 // Toggles bluetooth.
261 virtual void ToggleBluetooth() = 0; 265 virtual void ToggleBluetooth() = 0;
262 266
263 // Shows UI to unlock a mobile sim. 267 // Shows UI to unlock a mobile sim.
264 virtual void ShowMobileSimDialog() = 0; 268 virtual void ShowMobileSimDialog() = 0;
265 269
270 // Shows UI to setup a mobile network.
271 virtual void ShowMobileSetup(const std::string& network_id) = 0;
272
266 // Shows UI to connect to an unlisted wifi network. 273 // Shows UI to connect to an unlisted wifi network.
267 virtual void ShowOtherWifi() = 0; 274 virtual void ShowOtherWifi() = 0;
268 275
269 // Shows UI to configure vpn. 276 // Shows UI to configure vpn.
270 virtual void ShowOtherVPN() = 0; 277 virtual void ShowOtherVPN() = 0;
271 278
272 // Shows UI to search for cellular networks. 279 // Shows UI to search for cellular networks.
273 virtual void ShowOtherCellular() = 0; 280 virtual void ShowOtherCellular() = 0;
274 281
275 // Returns whether bluetooth capability is available. 282 // Returns whether bluetooth capability is available.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // Speaks the given text if spoken feedback is enabled. 323 // Speaks the given text if spoken feedback is enabled.
317 virtual void MaybeSpeak(const std::string& utterance) const = 0; 324 virtual void MaybeSpeak(const std::string& utterance) const = 0;
318 325
319 // Creates a dummy delegate for testing. 326 // Creates a dummy delegate for testing.
320 static SystemTrayDelegate* CreateDummyDelegate(); 327 static SystemTrayDelegate* CreateDummyDelegate();
321 }; 328 };
322 329
323 } // namespace ash 330 } // namespace ash
324 331
325 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 332 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698