| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module ash.mojom; | 5 module ash.mojom; |
| 6 | 6 |
| 7 import "ash/public/interfaces/update.mojom"; |
| 8 |
| 7 // Allows clients (e.g. Chrome browser) to control the ash system tray menu. | 9 // Allows clients (e.g. Chrome browser) to control the ash system tray menu. |
| 8 interface SystemTray { | 10 interface SystemTray { |
| 9 // Sets the client interface. | 11 // Sets the client interface. |
| 10 SetClient(SystemTrayClient client); | 12 SetClient(SystemTrayClient client); |
| 11 | 13 |
| 12 // Sets the clock to use 24 hour time formatting if |use_24_hour| is true. | 14 // Sets the clock to use 24 hour time formatting if |use_24_hour| is true. |
| 13 // Otherwise sets 12 hour time formatting. | 15 // Otherwise sets 12 hour time formatting. |
| 14 SetUse24HourClock(bool use_24_hour); | 16 SetUse24HourClock(bool use_24_hour); |
| 17 |
| 18 // Shows an icon in the system tray indicating that a software update is |
| 19 // available. Once shown the icon persists until reboot. |severity| and |
| 20 // |factory_reset_required| are used to set the icon, color, and tooltip. |
| 21 ShowUpdateIcon(UpdateSeverity severity, bool factory_reset_required); |
| 15 }; | 22 }; |
| 16 | 23 |
| 17 // Allows ash system tray to control a client (e.g. Chrome browser). Requests | 24 // Allows ash system tray to control a client (e.g. Chrome browser). Requests |
| 18 // often involve preferences or web UI that is not available to ash. | 25 // often involve preferences or web UI that is not available to ash. |
| 19 interface SystemTrayClient { | 26 interface SystemTrayClient { |
| 20 // Shows general settings UI. | 27 // Shows general settings UI. |
| 21 ShowSettings(); | 28 ShowSettings(); |
| 22 | 29 |
| 23 // Shows the settings related to date, timezone etc. | 30 // Shows the settings related to date, timezone etc. |
| 24 ShowDateSettings(); | 31 ShowDateSettings(); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // Shows UI for changing proxy settings. | 87 // Shows UI for changing proxy settings. |
| 81 ShowProxySettings(); | 88 ShowProxySettings(); |
| 82 | 89 |
| 83 // Attempts to sign out the user. | 90 // Attempts to sign out the user. |
| 84 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582 | 91 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582 |
| 85 SignOut(); | 92 SignOut(); |
| 86 | 93 |
| 87 // Attempts to restart the system for update. | 94 // Attempts to restart the system for update. |
| 88 RequestRestartForUpdate(); | 95 RequestRestartForUpdate(); |
| 89 }; | 96 }; |
| OLD | NEW |