OLD | NEW |
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_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 virtual void RemoveShutdownPolicyObserver(ShutdownPolicyObserver* observer); | 307 virtual void RemoveShutdownPolicyObserver(ShutdownPolicyObserver* observer); |
308 | 308 |
309 // Determines whether the device is automatically rebooted when shut down as | 309 // Determines whether the device is automatically rebooted when shut down as |
310 // specified by the device policy |DeviceRebootOnShutdown|. This function | 310 // specified by the device policy |DeviceRebootOnShutdown|. This function |
311 // asynchronously calls |callback| once a trusted policy becomes available. | 311 // asynchronously calls |callback| once a trusted policy becomes available. |
312 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback); | 312 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback); |
313 | 313 |
314 // Returns VPNDelegate. May return nullptr. | 314 // Returns VPNDelegate. May return nullptr. |
315 virtual VPNDelegate* GetVPNDelegate() const; | 315 virtual VPNDelegate* GetVPNDelegate() const; |
316 | 316 |
317 // Creates a system tray item for display settings. | |
318 // TODO(jamescook): Remove this when mus has support for display management | |
319 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | |
320 virtual std::unique_ptr<SystemTrayItem> CreateDisplayTrayItem( | |
321 SystemTray* tray); | |
322 | |
323 // Creates a system tray item for display rotation lock. | 317 // Creates a system tray item for display rotation lock. |
324 // TODO(jamescook): Remove this when mus has support for display management | 318 // TODO(jamescook): Remove this when mus has support for display management |
325 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 319 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
326 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 320 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
327 SystemTray* tray); | 321 SystemTray* tray); |
328 }; | 322 }; |
329 | 323 |
330 } // namespace ash | 324 } // namespace ash |
331 | 325 |
332 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 326 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |