| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // implementations of this class. Consumers of this delegate should handle the | 103 // implementations of this class. Consumers of this delegate should handle the |
| 104 // default return value (e.g. nullptr). | 104 // default return value (e.g. nullptr). |
| 105 class ASH_EXPORT SystemTrayDelegate { | 105 class ASH_EXPORT SystemTrayDelegate { |
| 106 public: | 106 public: |
| 107 SystemTrayDelegate(); | 107 SystemTrayDelegate(); |
| 108 virtual ~SystemTrayDelegate(); | 108 virtual ~SystemTrayDelegate(); |
| 109 | 109 |
| 110 // Called after SystemTray has been instantiated. | 110 // Called after SystemTray has been instantiated. |
| 111 virtual void Initialize(); | 111 virtual void Initialize(); |
| 112 | 112 |
| 113 // Returns true if system tray should be visible on startup. | |
| 114 virtual bool GetTrayVisibilityOnStartup(); | |
| 115 | |
| 116 // Gets information about the active user. | 113 // Gets information about the active user. |
| 117 virtual LoginStatus GetUserLoginStatus() const; | 114 virtual LoginStatus GetUserLoginStatus() const; |
| 118 | 115 |
| 119 // Returns the domain that manages the device, if it is enterprise-enrolled. | 116 // Returns the domain that manages the device, if it is enterprise-enrolled. |
| 120 virtual std::string GetEnterpriseDomain() const; | 117 virtual std::string GetEnterpriseDomain() const; |
| 121 | 118 |
| 122 // Returns notification for enterprise enrolled devices. | 119 // Returns notification for enterprise enrolled devices. |
| 123 virtual base::string16 GetEnterpriseMessage() const; | 120 virtual base::string16 GetEnterpriseMessage() const; |
| 124 | 121 |
| 125 // Returns the display email of the user that manages the current supervised | 122 // Returns the display email of the user that manages the current supervised |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 // Creates a system tray item for display rotation lock. | 274 // Creates a system tray item for display rotation lock. |
| 278 // TODO(jamescook): Remove this when mus has support for display management | 275 // TODO(jamescook): Remove this when mus has support for display management |
| 279 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 276 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
| 280 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 277 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
| 281 SystemTray* tray); | 278 SystemTray* tray); |
| 282 }; | 279 }; |
| 283 | 280 |
| 284 } // namespace ash | 281 } // namespace ash |
| 285 | 282 |
| 286 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 283 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |