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

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

Issue 1115083002: Add the supporting code for the cast system tray integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Share chromecast extension ids with other code Created 5 years, 7 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
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
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 UpdateInfo(); 91 UpdateInfo();
92 ~UpdateInfo(); 92 ~UpdateInfo();
93 93
94 UpdateSeverity severity; 94 UpdateSeverity severity;
95 bool update_required; 95 bool update_required;
96 bool factory_reset_required; 96 bool factory_reset_required;
97 }; 97 };
98 98
99 using IMEInfoList = std::vector<IMEInfo>; 99 using IMEInfoList = std::vector<IMEInfo>;
100 100
101 class CastConfigDelegate;
101 class NetworkingConfigDelegate; 102 class NetworkingConfigDelegate;
102 class VPNDelegate; 103 class VPNDelegate;
103 104
104 using RebootOnShutdownCallback = base::Callback<void(bool)>; 105 using RebootOnShutdownCallback = base::Callback<void(bool)>;
105 106
106 namespace tray { 107 namespace tray {
107 class UserAccountsDelegate; 108 class UserAccountsDelegate;
108 } // namespace tray 109 } // namespace tray
109 110
110 // SystemTrayDelegate is intended for delegating tasks in the System Tray to the 111 // SystemTrayDelegate is intended for delegating tasks in the System Tray to the
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 278
278 // Returns whether bluetooth is enabled. 279 // Returns whether bluetooth is enabled.
279 virtual bool GetBluetoothEnabled(); 280 virtual bool GetBluetoothEnabled();
280 281
281 // Returns whether the delegate has initiated a bluetooth discovery session. 282 // Returns whether the delegate has initiated a bluetooth discovery session.
282 virtual bool GetBluetoothDiscovering(); 283 virtual bool GetBluetoothDiscovering();
283 284
284 // Shows UI for changing proxy settings. 285 // Shows UI for changing proxy settings.
285 virtual void ChangeProxySettings(); 286 virtual void ChangeProxySettings();
286 287
288 // Returns CastConfigDelegate. May return nullptr.
289 virtual CastConfigDelegate* GetCastConfigDelegate() const;
290
287 // Returns NetworkingConfigDelegate. May return nullptr. 291 // Returns NetworkingConfigDelegate. May return nullptr.
288 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; 292 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const;
289 293
290 // Returns VolumeControlDelegate. May return nullptr. 294 // Returns VolumeControlDelegate. May return nullptr.
291 virtual VolumeControlDelegate* GetVolumeControlDelegate() const; 295 virtual VolumeControlDelegate* GetVolumeControlDelegate() const;
292 296
293 // Sets the VolumeControlDelegate. 297 // Sets the VolumeControlDelegate.
294 virtual void SetVolumeControlDelegate( 298 virtual void SetVolumeControlDelegate(
295 scoped_ptr<VolumeControlDelegate> delegate); 299 scoped_ptr<VolumeControlDelegate> delegate);
296 300
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // asynchronously calls |callback| once a trusted policy becomes available. 338 // asynchronously calls |callback| once a trusted policy becomes available.
335 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback); 339 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback);
336 340
337 // Returns VPNDelegate. May return nullptr. 341 // Returns VPNDelegate. May return nullptr.
338 virtual VPNDelegate* GetVPNDelegate() const; 342 virtual VPNDelegate* GetVPNDelegate() const;
339 }; 343 };
340 344
341 } // namespace ash 345 } // namespace ash
342 346
343 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 347 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698