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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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? | 145 // Is the system audio muted? |
146 virtual bool IsAudioMuted() const = 0; | 146 virtual bool IsAudioMuted() const = 0; |
147 | 147 |
148 // Mutes/Unmutes the audio system. | 148 // Mutes/Unmutes the audio system. |
149 virtual void SetAudioMuted(bool muted) = 0; | 149 virtual void SetAudioMuted(bool muted) = 0; |
150 | 150 |
151 // Gets the volume level. | 151 // Gets the volume level. The range is [0, 1.0]. |
152 virtual float GetVolumeLevel() const = 0; | 152 virtual float GetVolumeLevel() const = 0; |
153 | 153 |
154 // Sets the volume level. | 154 // Sets the volume level. The range is [0, 1.0]. |
155 virtual void SetVolumeLevel(float level) = 0; | 155 virtual void SetVolumeLevel(float level) = 0; |
156 | 156 |
157 // Gets whether the caps lock is on. | 157 // Gets whether the caps lock is on. |
158 virtual bool IsCapsLockOn() const = 0; | 158 virtual bool IsCapsLockOn() const = 0; |
159 | 159 |
160 // Sets the caps lock status to |enabled|. | 160 // Sets the caps lock status to |enabled|. |
161 virtual void SetCapsLockEnabled(bool enabled) = 0; | 161 virtual void SetCapsLockEnabled(bool enabled) = 0; |
162 | 162 |
163 // Attempts to shut down the system. | 163 // Attempts to shut down the system. |
164 virtual void ShutDown() = 0; | 164 virtual void ShutDown() = 0; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 // Opens the cellular network specific URL. | 276 // Opens the cellular network specific URL. |
277 virtual void ShowCellularURL(const std::string& url) = 0; | 277 virtual void ShowCellularURL(const std::string& url) = 0; |
278 | 278 |
279 // Shows UI for changing proxy settings. | 279 // Shows UI for changing proxy settings. |
280 virtual void ChangeProxySettings() = 0; | 280 virtual void ChangeProxySettings() = 0; |
281 }; | 281 }; |
282 | 282 |
283 } // namespace ash | 283 } // namespace ash |
284 | 284 |
285 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 285 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |