| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 UpdateInfo(); | 64 UpdateInfo(); |
| 65 ~UpdateInfo(); | 65 ~UpdateInfo(); |
| 66 | 66 |
| 67 UpdateSeverity severity; | 67 UpdateSeverity severity; |
| 68 bool update_required; | 68 bool update_required; |
| 69 bool factory_reset_required; | 69 bool factory_reset_required; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 class CastConfigDelegate; | |
| 73 class NetworkingConfigDelegate; | 72 class NetworkingConfigDelegate; |
| 74 | 73 |
| 75 // SystemTrayDelegate is intended for delegating tasks in the System Tray to the | 74 // SystemTrayDelegate is intended for delegating tasks in the System Tray to the |
| 76 // application (e.g. Chrome). These tasks should be limited to application | 75 // application (e.g. Chrome). These tasks should be limited to application |
| 77 // (browser) specific tasks. For non application specific tasks, where possible, | 76 // (browser) specific tasks. For non application specific tasks, where possible, |
| 78 // components/, chromeos/, device/, etc., code should be used directly. If more | 77 // components/, chromeos/, device/, etc., code should be used directly. If more |
| 79 // than one related method is being added, consider adding an additional | 78 // than one related method is being added, consider adding an additional |
| 80 // specific delegate (e.g. CastConfigDelegate). | 79 // specific delegate (e.g. CastConfigDelegate). |
| 81 // | 80 // |
| 82 // These methods should all have trivial default implementations for platforms | 81 // These methods should all have trivial default implementations for platforms |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 176 |
| 178 // Returns whether bluetooth capability is available. | 177 // Returns whether bluetooth capability is available. |
| 179 virtual bool GetBluetoothAvailable(); | 178 virtual bool GetBluetoothAvailable(); |
| 180 | 179 |
| 181 // Returns whether bluetooth is enabled. | 180 // Returns whether bluetooth is enabled. |
| 182 virtual bool GetBluetoothEnabled(); | 181 virtual bool GetBluetoothEnabled(); |
| 183 | 182 |
| 184 // Returns whether the delegate has initiated a bluetooth discovery session. | 183 // Returns whether the delegate has initiated a bluetooth discovery session. |
| 185 virtual bool GetBluetoothDiscovering(); | 184 virtual bool GetBluetoothDiscovering(); |
| 186 | 185 |
| 187 // Returns CastConfigDelegate. May return nullptr. | |
| 188 virtual CastConfigDelegate* GetCastConfigDelegate(); | |
| 189 | |
| 190 // Returns NetworkingConfigDelegate. May return nullptr. | 186 // Returns NetworkingConfigDelegate. May return nullptr. |
| 191 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; | 187 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; |
| 192 | 188 |
| 193 // Retrieves the session start time. Returns |false| if the time is not set. | 189 // Retrieves the session start time. Returns |false| if the time is not set. |
| 194 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time); | 190 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time); |
| 195 | 191 |
| 196 // Retrieves the session length limit. Returns |false| if no limit is set. | 192 // Retrieves the session length limit. Returns |false| if no limit is set. |
| 197 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); | 193 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); |
| 198 | 194 |
| 199 // Get the system tray menu size in pixels (dependent on the language). | 195 // Get the system tray menu size in pixels (dependent on the language). |
| (...skipping 19 matching lines...) Expand all Loading... |
| 219 // Creates a system tray item for display rotation lock. | 215 // Creates a system tray item for display rotation lock. |
| 220 // TODO(jamescook): Remove this when mus has support for display management | 216 // TODO(jamescook): Remove this when mus has support for display management |
| 221 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 217 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
| 222 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 218 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
| 223 SystemTray* tray); | 219 SystemTray* tray); |
| 224 }; | 220 }; |
| 225 | 221 |
| 226 } // namespace ash | 222 } // namespace ash |
| 227 | 223 |
| 228 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 224 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |