| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // implementations of this class. Consumers of this delegate should handle the | 120 // implementations of this class. Consumers of this delegate should handle the |
| 121 // default return value (e.g. nullptr). | 121 // default return value (e.g. nullptr). |
| 122 class ASH_EXPORT SystemTrayDelegate { | 122 class ASH_EXPORT SystemTrayDelegate { |
| 123 public: | 123 public: |
| 124 SystemTrayDelegate(); | 124 SystemTrayDelegate(); |
| 125 virtual ~SystemTrayDelegate(); | 125 virtual ~SystemTrayDelegate(); |
| 126 | 126 |
| 127 // Called after SystemTray has been instantiated. | 127 // Called after SystemTray has been instantiated. |
| 128 virtual void Initialize(); | 128 virtual void Initialize(); |
| 129 | 129 |
| 130 // Called before SystemTray is destroyed. | |
| 131 virtual void Shutdown(); | |
| 132 | |
| 133 // Returns true if system tray should be visible on startup. | 130 // Returns true if system tray should be visible on startup. |
| 134 virtual bool GetTrayVisibilityOnStartup(); | 131 virtual bool GetTrayVisibilityOnStartup(); |
| 135 | 132 |
| 136 // Gets information about the active user. | 133 // Gets information about the active user. |
| 137 virtual LoginStatus GetUserLoginStatus() const; | 134 virtual LoginStatus GetUserLoginStatus() const; |
| 138 | 135 |
| 139 // Shows UI for changing user's profile picture. | 136 // Shows UI for changing user's profile picture. |
| 140 virtual void ChangeProfilePicture(); | 137 virtual void ChangeProfilePicture(); |
| 141 | 138 |
| 142 // Returns the domain that manages the device, if it is enterprise-enrolled. | 139 // Returns the domain that manages the device, if it is enterprise-enrolled. |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 // asynchronously calls |callback| once a trusted policy becomes available. | 333 // asynchronously calls |callback| once a trusted policy becomes available. |
| 337 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback); | 334 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback); |
| 338 | 335 |
| 339 // Returns VPNDelegate. May return nullptr. | 336 // Returns VPNDelegate. May return nullptr. |
| 340 virtual VPNDelegate* GetVPNDelegate() const; | 337 virtual VPNDelegate* GetVPNDelegate() const; |
| 341 }; | 338 }; |
| 342 | 339 |
| 343 } // namespace ash | 340 } // namespace ash |
| 344 | 341 |
| 345 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 342 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |