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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 // Shows settings related to Google Drive. | 136 // Shows settings related to Google Drive. |
137 virtual void ShowDriveSettings() = 0; | 137 virtual void ShowDriveSettings() = 0; |
138 | 138 |
139 // Shows settings related to input methods. | 139 // Shows settings related to input methods. |
140 virtual void ShowIMESettings() = 0; | 140 virtual void ShowIMESettings() = 0; |
141 | 141 |
142 // Shows help. | 142 // Shows help. |
143 virtual void ShowHelp() = 0; | 143 virtual void ShowHelp() = 0; |
144 | 144 |
145 // Is the system audio muted? | |
146 virtual bool IsAudioMuted() const = 0; | |
147 | |
148 // Mutes/Unmutes the audio system. | |
149 virtual void SetAudioMuted(bool muted) = 0; | |
150 | |
151 // Gets the volume level. The range is [0, 1.0]. | |
152 virtual float GetVolumeLevel() const = 0; | |
153 | |
154 // Sets the volume level. The range is [0, 1.0]. | |
155 virtual void SetVolumeLevel(float level) = 0; | |
156 | |
157 // Gets whether the caps lock is on. | 145 // Gets whether the caps lock is on. |
158 virtual bool IsCapsLockOn() const = 0; | 146 virtual bool IsCapsLockOn() const = 0; |
159 | 147 |
160 // Sets the caps lock status to |enabled|. | 148 // Sets the caps lock status to |enabled|. |
161 virtual void SetCapsLockEnabled(bool enabled) = 0; | 149 virtual void SetCapsLockEnabled(bool enabled) = 0; |
162 | 150 |
163 // Attempts to shut down the system. | 151 // Attempts to shut down the system. |
164 virtual void ShutDown() = 0; | 152 virtual void ShutDown() = 0; |
165 | 153 |
166 // Attempts to sign out the user. | 154 // Attempts to sign out the user. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 // Opens the cellular network specific URL. | 264 // Opens the cellular network specific URL. |
277 virtual void ShowCellularURL(const std::string& url) = 0; | 265 virtual void ShowCellularURL(const std::string& url) = 0; |
278 | 266 |
279 // Shows UI for changing proxy settings. | 267 // Shows UI for changing proxy settings. |
280 virtual void ChangeProxySettings() = 0; | 268 virtual void ChangeProxySettings() = 0; |
281 }; | 269 }; |
282 | 270 |
283 } // namespace ash | 271 } // namespace ash |
284 | 272 |
285 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 273 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |