| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 typedef std::vector<IMEInfo> IMEInfoList; | 54 typedef std::vector<IMEInfo> IMEInfoList; |
| 55 | 55 |
| 56 struct PowerSupplyStatus; | 56 struct PowerSupplyStatus; |
| 57 | 57 |
| 58 class SystemTrayDelegate { | 58 class SystemTrayDelegate { |
| 59 public: | 59 public: |
| 60 virtual ~SystemTrayDelegate() {} | 60 virtual ~SystemTrayDelegate() {} |
| 61 | 61 |
| 62 // Returns true if system tray should be visible on startup. |
| 63 virtual bool GetTrayVisibilityOnStartup() = 0; |
| 64 |
| 62 // Gets information about the logged in user. | 65 // Gets information about the logged in user. |
| 63 virtual const std::string GetUserDisplayName() const = 0; | 66 virtual const std::string GetUserDisplayName() const = 0; |
| 64 virtual const std::string GetUserEmail() const = 0; | 67 virtual const std::string GetUserEmail() const = 0; |
| 65 virtual const SkBitmap& GetUserImage() const = 0; | 68 virtual const SkBitmap& GetUserImage() const = 0; |
| 66 virtual user::LoginStatus GetUserLoginStatus() const = 0; | 69 virtual user::LoginStatus GetUserLoginStatus() const = 0; |
| 67 | 70 |
| 68 // Returns whether a system upgrade is available. | 71 // Returns whether a system upgrade is available. |
| 69 virtual bool SystemShouldUpgrade() const = 0; | 72 virtual bool SystemShouldUpgrade() const = 0; |
| 70 | 73 |
| 71 // Returns the resource id for the icon to show for the update notification. | 74 // Returns the resource id for the icon to show for the update notification. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // Returns whether bluetooth is enabled. | 172 // Returns whether bluetooth is enabled. |
| 170 virtual bool GetBluetoothEnabled() = 0; | 173 virtual bool GetBluetoothEnabled() = 0; |
| 171 | 174 |
| 172 // Shows UI for changing proxy settings. | 175 // Shows UI for changing proxy settings. |
| 173 virtual void ChangeProxySettings() = 0; | 176 virtual void ChangeProxySettings() = 0; |
| 174 }; | 177 }; |
| 175 | 178 |
| 176 } // namespace ash | 179 } // namespace ash |
| 177 | 180 |
| 178 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 181 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |