| 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"; | 7 import "ash/public/interfaces/update.mojom"; |
| 8 | 8 |
| 9 // 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. |
| 10 interface SystemTray { | 10 interface SystemTray { |
| 11 // Sets the client interface. | 11 // Sets the client interface. |
| 12 SetClient(SystemTrayClient client); | 12 SetClient(SystemTrayClient client); |
| 13 | 13 |
| 14 // Sets the enabled state of the tray on the primary display. If not |enabled| |
| 15 // any open menu will be closed. |
| 16 SetPrimaryTrayEnabled(bool enabled); |
| 17 |
| 18 // Sets the visibility of the tray on the primary display. |
| 19 SetPrimaryTrayVisible(bool visible); |
| 20 |
| 14 // Sets the clock to use 24 hour time formatting if |use_24_hour| is true. | 21 // Sets the clock to use 24 hour time formatting if |use_24_hour| is true. |
| 15 // Otherwise sets 12 hour time formatting. | 22 // Otherwise sets 12 hour time formatting. |
| 16 SetUse24HourClock(bool use_24_hour); | 23 SetUse24HourClock(bool use_24_hour); |
| 17 | 24 |
| 18 // Shows an icon in the system tray indicating that a software update is | 25 // Shows an icon in the system tray indicating that a software update is |
| 19 // available. Once shown the icon persists until reboot. |severity| and | 26 // available. Once shown the icon persists until reboot. |severity| and |
| 20 // |factory_reset_required| are used to set the icon, color, and tooltip. | 27 // |factory_reset_required| are used to set the icon, color, and tooltip. |
| 21 ShowUpdateIcon(UpdateSeverity severity, bool factory_reset_required); | 28 ShowUpdateIcon(UpdateSeverity severity, bool factory_reset_required); |
| 22 }; | 29 }; |
| 23 | 30 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Shows UI for changing proxy settings. | 94 // Shows UI for changing proxy settings. |
| 88 ShowProxySettings(); | 95 ShowProxySettings(); |
| 89 | 96 |
| 90 // Attempts to sign out the user. | 97 // Attempts to sign out the user. |
| 91 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582 | 98 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582 |
| 92 SignOut(); | 99 SignOut(); |
| 93 | 100 |
| 94 // Attempts to restart the system for update. | 101 // Attempts to restart the system for update. |
| 95 RequestRestartForUpdate(); | 102 RequestRestartForUpdate(); |
| 96 }; | 103 }; |
| OLD | NEW |