| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 // Shows settings related to Google Drive. | 139 // Shows settings related to Google Drive. |
| 140 virtual void ShowDriveSettings() = 0; | 140 virtual void ShowDriveSettings() = 0; |
| 141 | 141 |
| 142 // Shows settings related to input methods. | 142 // Shows settings related to input methods. |
| 143 virtual void ShowIMESettings() = 0; | 143 virtual void ShowIMESettings() = 0; |
| 144 | 144 |
| 145 // Shows help. | 145 // Shows help. |
| 146 virtual void ShowHelp() = 0; | 146 virtual void ShowHelp() = 0; |
| 147 | 147 |
| 148 // Gets whether the caps lock is on. | |
| 149 virtual bool IsCapsLockOn() const = 0; | |
| 150 | |
| 151 // Sets the caps lock status to |enabled|. | |
| 152 virtual void SetCapsLockEnabled(bool enabled) = 0; | |
| 153 | |
| 154 // Attempts to shut down the system. | 148 // Attempts to shut down the system. |
| 155 virtual void ShutDown() = 0; | 149 virtual void ShutDown() = 0; |
| 156 | 150 |
| 157 // Attempts to sign out the user. | 151 // Attempts to sign out the user. |
| 158 virtual void SignOut() = 0; | 152 virtual void SignOut() = 0; |
| 159 | 153 |
| 160 // Attempts to lock the screen. | 154 // Attempts to lock the screen. |
| 161 virtual void RequestLockScreen() = 0; | 155 virtual void RequestLockScreen() = 0; |
| 162 | 156 |
| 163 // Attempts to restart the system. | 157 // Attempts to restart the system. |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 269 |
| 276 // Sets VolumeControlDelegate. | 270 // Sets VolumeControlDelegate. |
| 277 virtual void SetVolumeControlDelegate( | 271 virtual void SetVolumeControlDelegate( |
| 278 scoped_ptr<VolumeControlDelegate> delegate) = 0; | 272 scoped_ptr<VolumeControlDelegate> delegate) = 0; |
| 279 | 273 |
| 280 }; | 274 }; |
| 281 | 275 |
| 282 } // namespace ash | 276 } // namespace ash |
| 283 | 277 |
| 284 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 278 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |