| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 // Sets the volume level. | 155 // Sets the volume level. |
| 156 virtual void SetVolumeLevel(float level) = 0; | 156 virtual void SetVolumeLevel(float level) = 0; |
| 157 | 157 |
| 158 // Gets whether the caps lock is on. | 158 // Gets whether the caps lock is on. |
| 159 virtual bool IsCapsLockOn() const = 0; | 159 virtual bool IsCapsLockOn() const = 0; |
| 160 | 160 |
| 161 // Sets the caps lock status to |enabled|. | 161 // Sets the caps lock status to |enabled|. |
| 162 virtual void SetCapsLockEnabled(bool enabled) = 0; | 162 virtual void SetCapsLockEnabled(bool enabled) = 0; |
| 163 | 163 |
| 164 // Gets whether accessibility mode is turned on. | |
| 165 virtual bool IsInAccessibilityMode() const = 0; | |
| 166 | |
| 167 // Enables or disables spoken feedback. | |
| 168 virtual void SetEnableSpokenFeedback(bool enable) = 0; | |
| 169 | |
| 170 // Attempts to shut down the system. | 164 // Attempts to shut down the system. |
| 171 virtual void ShutDown() = 0; | 165 virtual void ShutDown() = 0; |
| 172 | 166 |
| 173 // Attempts to sign out the user. | 167 // Attempts to sign out the user. |
| 174 virtual void SignOut() = 0; | 168 virtual void SignOut() = 0; |
| 175 | 169 |
| 176 // Attempts to lock the screen. | 170 // Attempts to lock the screen. |
| 177 virtual void RequestLockScreen() = 0; | 171 virtual void RequestLockScreen() = 0; |
| 178 | 172 |
| 179 // Attempts to restart the system. | 173 // Attempts to restart the system. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // Opens the cellular network specific URL. | 277 // Opens the cellular network specific URL. |
| 284 virtual void ShowCellularURL(const std::string& url) = 0; | 278 virtual void ShowCellularURL(const std::string& url) = 0; |
| 285 | 279 |
| 286 // Shows UI for changing proxy settings. | 280 // Shows UI for changing proxy settings. |
| 287 virtual void ChangeProxySettings() = 0; | 281 virtual void ChangeProxySettings() = 0; |
| 288 }; | 282 }; |
| 289 | 283 |
| 290 } // namespace ash | 284 } // namespace ash |
| 291 | 285 |
| 292 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 286 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |