Chromium Code Reviews| 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 | 9 |
| 9 // 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. |
| 10 interface SystemTray { | 11 interface SystemTray { |
| 11 // Sets the client interface. | 12 // Sets the client interface. |
| 12 SetClient(SystemTrayClient client); | 13 SetClient(SystemTrayClient client); |
| 13 | 14 |
| 14 // 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| |
| 15 // any open menu will be closed. | 16 // any open menu will be closed. |
| 16 SetPrimaryTrayEnabled(bool enabled); | 17 SetPrimaryTrayEnabled(bool enabled); |
| 17 | 18 |
| 18 // Sets the visibility of the tray on the primary display. | 19 // Sets the visibility of the tray on the primary display. |
| 19 SetPrimaryTrayVisible(bool visible); | 20 SetPrimaryTrayVisible(bool visible); |
| 20 | 21 |
| 21 // 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. |
| 22 // Otherwise sets 12 hour time formatting. | 23 // Otherwise sets 12 hour time formatting. |
| 23 SetUse24HourClock(bool use_24_hour); | 24 SetUse24HourClock(bool use_24_hour); |
| 24 | 25 |
| 25 // 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 |
| 26 // available. Once shown the icon persists until reboot. |severity| and | 27 // available. Once shown the icon persists until reboot. |severity| and |
| 27 // |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. |
| 28 ShowUpdateIcon(UpdateSeverity severity, bool factory_reset_required); | 29 ShowUpdateIcon(UpdateSeverity severity, bool factory_reset_required); |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 // 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 |
| 32 // 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. |
| 33 interface SystemTrayClient { | 34 interface SystemTrayClient { |
| 34 // Shows general settings UI. | 35 // Shows general settings UI. |
| 35 ShowSettings(); | 36 ShowSettings(); |
| 36 | 37 |
| 38 // Shows settings related to Bluetooth devices (e.g. to add a device). | |
| 39 ShowBluetoothSettings(); | |
| 40 | |
| 41 // Shows the web UI dialog to pair a Bluetooth device. | |
| 42 // |address| is the unique device address in the form "XX:XX:XX:XX:XX:XX" | |
| 43 // with hex digits X. |name_for_display| is a human-readable name, not | |
| 44 // necessarily the device name. | |
| 45 ShowBluetoothPairingDialog(string address, | |
|
James Cook
2017/03/17 22:23:30
This method isn't called yet, but is used to gener
msw
2017/03/18 00:44:44
Acknowledged.
| |
| 46 mojo.common.mojom.String16 name_for_display, | |
| 47 bool paired, | |
|
James Cook
2017/03/17 22:23:30
I do not know why you would show a pairing dialog
msw
2017/03/18 00:44:44
Acknowledged.
| |
| 48 bool connected); | |
| 49 | |
| 37 // Shows the settings related to date, timezone etc. | 50 // Shows the settings related to date, timezone etc. |
| 38 ShowDateSettings(); | 51 ShowDateSettings(); |
| 39 | 52 |
| 40 // Shows the dialog to set system time, date, and timezone. | 53 // Shows the dialog to set system time, date, and timezone. |
| 41 ShowSetTimeDialog(); | 54 ShowSetTimeDialog(); |
| 42 | 55 |
| 43 // Shows settings related to multiple displays. | 56 // Shows settings related to multiple displays. |
| 44 ShowDisplaySettings(); | 57 ShowDisplaySettings(); |
| 45 | 58 |
| 46 // Shows settings related to power. | 59 // Shows settings related to power. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 // Shows UI for changing proxy settings. | 107 // Shows UI for changing proxy settings. |
| 95 ShowProxySettings(); | 108 ShowProxySettings(); |
| 96 | 109 |
| 97 // Attempts to sign out the user. | 110 // Attempts to sign out the user. |
| 98 // 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 |
| 99 SignOut(); | 112 SignOut(); |
| 100 | 113 |
| 101 // Attempts to restart the system for update. | 114 // Attempts to restart the system for update. |
| 102 RequestRestartForUpdate(); | 115 RequestRestartForUpdate(); |
| 103 }; | 116 }; |
| OLD | NEW |