Chromium Code Reviews| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 ~IMEInfo(); | 68 ~IMEInfo(); |
| 69 | 69 |
| 70 bool selected; | 70 bool selected; |
| 71 bool third_party; | 71 bool third_party; |
| 72 std::string id; | 72 std::string id; |
| 73 base::string16 name; | 73 base::string16 name; |
| 74 base::string16 medium_name; | 74 base::string16 medium_name; |
| 75 base::string16 short_name; | 75 base::string16 short_name; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 struct ASH_EXPORT UpdateInfo { | |
| 79 enum UpdateSeverity { | |
| 80 UPDATE_NORMAL, | |
| 81 UPDATE_LOW_GREEN, | |
| 82 UPDATE_HIGH_ORANGE, | |
| 83 UPDATE_SEVERE_RED, | |
| 84 }; | |
| 85 | |
| 86 UpdateInfo(); | |
| 87 ~UpdateInfo(); | |
| 88 | |
| 89 UpdateSeverity severity; | |
| 90 bool is_factory_reset_required; | |
| 91 }; | |
| 92 | |
| 78 typedef std::vector<IMEInfo> IMEInfoList; | 93 typedef std::vector<IMEInfo> IMEInfoList; |
| 79 | 94 |
| 80 class VolumeControlDelegate; | 95 class VolumeControlDelegate; |
| 81 | 96 |
| 82 namespace tray { | 97 namespace tray { |
| 83 class UserAccountsDelegate; | 98 class UserAccountsDelegate; |
| 84 } // namespace tray | 99 } // namespace tray |
| 85 | 100 |
| 86 class ASH_EXPORT SystemTrayDelegate { | 101 class ASH_EXPORT SystemTrayDelegate { |
| 87 public: | 102 public: |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 114 | 129 |
| 115 // Returns the name of the user that manages the current supervised user. | 130 // Returns the name of the user that manages the current supervised user. |
| 116 virtual const base::string16 GetSupervisedUserManagerName() const = 0; | 131 virtual const base::string16 GetSupervisedUserManagerName() const = 0; |
| 117 | 132 |
| 118 // Returns the notification for supervised users. | 133 // Returns the notification for supervised users. |
| 119 virtual const base::string16 GetSupervisedUserMessage() const = 0; | 134 virtual const base::string16 GetSupervisedUserMessage() const = 0; |
| 120 | 135 |
| 121 // Returns true if the current user is supervised. | 136 // Returns true if the current user is supervised. |
| 122 virtual bool IsUserSupervised() const = 0; | 137 virtual bool IsUserSupervised() const = 0; |
| 123 | 138 |
| 124 // Returns whether a system upgrade is available. | 139 // Returns whether a system upgrade is available. Fills |info| structure if |
| 125 virtual bool SystemShouldUpgrade() const = 0; | 140 // it's not NULL. |
| 141 virtual bool SystemShouldUpgrade(UpdateInfo* info) const = 0; | |
|
stevenjb
2014/10/01 22:26:44
Looking at the chrome implementation, it looks lik
ygorshenin1
2014/10/02 14:21:35
I renamed the method to GetSystemUpdateInfo(), but
stevenjb
2014/10/02 15:33:55
Sorry, that was some intermediate confusion on my
| |
| 126 | 142 |
| 127 // Returns the desired hour clock type. | 143 // Returns the desired hour clock type. |
| 128 virtual base::HourClockType GetHourClockType() const = 0; | 144 virtual base::HourClockType GetHourClockType() const = 0; |
| 129 | 145 |
| 130 // Shows settings. | 146 // Shows settings. |
| 131 virtual void ShowSettings() = 0; | 147 virtual void ShowSettings() = 0; |
| 132 | 148 |
| 133 // Returns true if settings menu item should appear. | 149 // Returns true if settings menu item should appear. |
| 134 virtual bool ShouldShowSettings() = 0; | 150 virtual bool ShouldShowSettings() = 0; |
| 135 | 151 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 293 virtual bool IsSearchKeyMappedToCapsLock() = 0; | 309 virtual bool IsSearchKeyMappedToCapsLock() = 0; |
| 294 | 310 |
| 295 // Returns accounts delegate for given user. | 311 // Returns accounts delegate for given user. |
| 296 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( | 312 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( |
| 297 const std::string& user_id) = 0; | 313 const std::string& user_id) = 0; |
| 298 }; | 314 }; |
| 299 | 315 |
| 300 } // namespace ash | 316 } // namespace ash |
| 301 | 317 |
| 302 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 318 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |