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 import "mojo/common/string16.mojom"; | 8 import "mojo/common/string16.mojom"; |
9 | 9 |
10 // Allows clients (e.g. Chrome browser) to control the ash system tray menu. | 10 // Allows clients (e.g. Chrome browser) to control the ash system tray menu. |
11 interface SystemTray { | 11 interface SystemTray { |
12 // Sets the client interface. | 12 // Sets the client interface. |
13 SetClient(SystemTrayClient client); | 13 SetClient(SystemTrayClient client); |
14 | 14 |
15 // Sets the enabled state of the tray on the primary display. If not |enabled| | 15 // Sets the enabled state of the tray on the primary display. If not |enabled| |
16 // any open menu will be closed. | 16 // any open menu will be closed. |
17 SetPrimaryTrayEnabled(bool enabled); | 17 SetPrimaryTrayEnabled(bool enabled); |
18 | 18 |
19 // Sets the visibility of the tray on the primary display. | 19 // Sets the visibility of the tray on the primary display. |
20 SetPrimaryTrayVisible(bool visible); | 20 SetPrimaryTrayVisible(bool visible); |
21 | 21 |
22 // Sets the clock to use 24 hour time formatting if |use_24_hour| is true. | 22 // Sets the clock to use 24 hour time formatting if |use_24_hour| is true. |
23 // Otherwise sets 12 hour time formatting. | 23 // Otherwise sets 12 hour time formatting. |
24 SetUse24HourClock(bool use_24_hour); | 24 SetUse24HourClock(bool use_24_hour); |
25 | 25 |
26 // Shows an icon in the system tray indicating that a software update is | 26 // Shows an icon in the system tray indicating that a software update is |
27 // available. Once shown the icon persists until reboot. |severity| and | 27 // available. Once shown the icon persists until reboot. |severity| and |
28 // |factory_reset_required| are used to set the icon, color, and tooltip. | 28 // |factory_reset_required| are used to set the icon, color, and tooltip. |
29 ShowUpdateIcon(UpdateSeverity severity, bool factory_reset_required); | 29 ShowUpdateIcon(UpdateSeverity severity, bool factory_reset_required, UpdateTyp e update_type); |
James Cook
2017/04/18 23:20:56
nit: wrap line
Greg K
2017/04/18 23:45:23
Done.
| |
30 }; | 30 }; |
31 | 31 |
32 // Allows ash system tray to control a client (e.g. Chrome browser). Requests | 32 // Allows ash system tray to control a client (e.g. Chrome browser). Requests |
33 // often involve preferences or web UI that is not available to ash. | 33 // often involve preferences or web UI that is not available to ash. |
34 interface SystemTrayClient { | 34 interface SystemTrayClient { |
35 // Shows general settings UI. | 35 // Shows general settings UI. |
36 ShowSettings(); | 36 ShowSettings(); |
37 | 37 |
38 // Shows settings related to Bluetooth devices (e.g. to add a device). | 38 // Shows settings related to Bluetooth devices (e.g. to add a device). |
39 ShowBluetoothSettings(); | 39 ShowBluetoothSettings(); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 // Shows UI for changing proxy settings. | 107 // Shows UI for changing proxy settings. |
108 ShowProxySettings(); | 108 ShowProxySettings(); |
109 | 109 |
110 // Attempts to sign out the user. | 110 // Attempts to sign out the user. |
111 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582 | 111 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582 |
112 SignOut(); | 112 SignOut(); |
113 | 113 |
114 // Attempts to restart the system for update. | 114 // Attempts to restart the system for update. |
115 RequestRestartForUpdate(); | 115 RequestRestartForUpdate(); |
116 }; | 116 }; |
OLD | NEW |