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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 virtual bool IsUserSupervised() const; | 137 virtual bool IsUserSupervised() const; |
138 | 138 |
139 // Returns true if the current user is child. | 139 // Returns true if the current user is child. |
140 // TODO(merkulova): remove on FakeUserManager componentization. | 140 // TODO(merkulova): remove on FakeUserManager componentization. |
141 // crbug.com/443119 | 141 // crbug.com/443119 |
142 virtual bool IsUserChild() const; | 142 virtual bool IsUserChild() const; |
143 | 143 |
144 // Fills |info| structure (which must not be null) with current update info. | 144 // Fills |info| structure (which must not be null) with current update info. |
145 virtual void GetSystemUpdateInfo(UpdateInfo* info) const; | 145 virtual void GetSystemUpdateInfo(UpdateInfo* info) const; |
146 | 146 |
147 // Shows settings. | |
148 virtual void ShowSettings(); | |
149 | |
150 // Returns true if settings menu item should appear. | 147 // Returns true if settings menu item should appear. |
151 virtual bool ShouldShowSettings(); | 148 virtual bool ShouldShowSettings(); |
152 | 149 |
153 // Shows the dialog to set system time, date, and timezone. | 150 // Shows the dialog to set system time, date, and timezone. |
154 virtual void ShowSetTimeDialog(); | 151 virtual void ShowSetTimeDialog(); |
155 | 152 |
156 // Shows the settings related to network. If |guid| is not empty, | 153 // Shows the settings related to network. If |guid| is not empty, |
157 // show the settings for the corresponding network. | 154 // show the settings for the corresponding network. |
158 virtual void ShowNetworkSettingsForGuid(const std::string& guid); | 155 virtual void ShowNetworkSettingsForGuid(const std::string& guid); |
159 | 156 |
160 // Shows settings related to multiple displays. | |
161 virtual void ShowDisplaySettings(); | |
162 | |
163 // Shows settings related to power. | |
164 virtual void ShowPowerSettings(); | |
165 | |
166 // Shows the page that lets you disable performance tracing. | |
167 virtual void ShowChromeSlow(); | |
168 | |
169 // Returns true if the notification for the display configuration change | 157 // Returns true if the notification for the display configuration change |
170 // should appear. | 158 // should appear. |
171 virtual bool ShouldShowDisplayNotification(); | 159 virtual bool ShouldShowDisplayNotification(); |
172 | 160 |
173 // Shows settings related to input methods. | |
174 virtual void ShowIMESettings(); | |
175 | |
176 // Shows help. | |
177 virtual void ShowHelp(); | |
178 | |
179 // Show accessilibity help. | |
180 virtual void ShowAccessibilityHelp(); | |
181 | |
182 // Show the settings related to accessilibity. | |
183 virtual void ShowAccessibilitySettings(); | |
184 | |
185 // Shows the help center article for palette. | |
186 virtual void ShowPaletteHelp(); | |
187 | |
188 // Shows the settings related to the palette. | |
189 virtual void ShowPaletteSettings(); | |
190 | |
191 // Shows more information about public account mode. | |
192 virtual void ShowPublicAccountInfo(); | |
193 | |
194 // Shows information about enterprise enrolled devices. | 161 // Shows information about enterprise enrolled devices. |
195 virtual void ShowEnterpriseInfo(); | 162 virtual void ShowEnterpriseInfo(); |
196 | 163 |
197 // Shows login UI to add other users to this session. | 164 // Shows login UI to add other users to this session. |
198 virtual void ShowUserLogin(); | 165 virtual void ShowUserLogin(); |
199 | 166 |
200 // Attempts to sign out the user. | 167 // Attempts to sign out the user. |
201 virtual void SignOut(); | 168 virtual void SignOut(); |
202 | 169 |
203 // Attempts to restart the system for update. | 170 // Attempts to restart the system for update. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 215 |
249 // Returns whether bluetooth capability is available. | 216 // Returns whether bluetooth capability is available. |
250 virtual bool GetBluetoothAvailable(); | 217 virtual bool GetBluetoothAvailable(); |
251 | 218 |
252 // Returns whether bluetooth is enabled. | 219 // Returns whether bluetooth is enabled. |
253 virtual bool GetBluetoothEnabled(); | 220 virtual bool GetBluetoothEnabled(); |
254 | 221 |
255 // Returns whether the delegate has initiated a bluetooth discovery session. | 222 // Returns whether the delegate has initiated a bluetooth discovery session. |
256 virtual bool GetBluetoothDiscovering(); | 223 virtual bool GetBluetoothDiscovering(); |
257 | 224 |
258 // Shows UI for changing proxy settings. | |
259 virtual void ShowProxySettings(); | |
260 | |
261 // Returns CastConfigDelegate. May return nullptr. | 225 // Returns CastConfigDelegate. May return nullptr. |
262 virtual CastConfigDelegate* GetCastConfigDelegate(); | 226 virtual CastConfigDelegate* GetCastConfigDelegate(); |
263 | 227 |
264 // Returns NetworkingConfigDelegate. May return nullptr. | 228 // Returns NetworkingConfigDelegate. May return nullptr. |
265 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; | 229 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; |
266 | 230 |
267 // Returns VolumeControlDelegate. May return nullptr. | 231 // Returns VolumeControlDelegate. May return nullptr. |
268 virtual VolumeControlDelegate* GetVolumeControlDelegate() const; | 232 virtual VolumeControlDelegate* GetVolumeControlDelegate() const; |
269 | 233 |
270 // Sets the VolumeControlDelegate. | 234 // Sets the VolumeControlDelegate. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // Creates a system tray item for display rotation lock. | 277 // Creates a system tray item for display rotation lock. |
314 // TODO(jamescook): Remove this when mus has support for display management | 278 // TODO(jamescook): Remove this when mus has support for display management |
315 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 279 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
316 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 280 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
317 SystemTray* tray); | 281 SystemTray* tray); |
318 }; | 282 }; |
319 | 283 |
320 } // namespace ash | 284 } // namespace ash |
321 | 285 |
322 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 286 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |