Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: ash/public/interfaces/system_tray.mojom

Issue 2882933002: Add update available icon in system tray (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.
(...skipping 16 matching lines...) Expand all
27 // enterprise management. The item appears if |enterprise_domain| is not empty 27 // enterprise management. The item appears if |enterprise_domain| is not empty
28 // or |active_directory_managed| is true. 28 // or |active_directory_managed| is true.
29 SetEnterpriseDomain(string enterprise_domain, bool active_directory_managed); 29 SetEnterpriseDomain(string enterprise_domain, bool active_directory_managed);
30 30
31 // Shows an icon in the system tray indicating that a software update is 31 // Shows an icon in the system tray indicating that a software update is
32 // available. Once shown the icon persists until reboot. |severity| and 32 // available. Once shown the icon persists until reboot. |severity| and
33 // |factory_reset_required| are used to set the icon, color, and tooltip. 33 // |factory_reset_required| are used to set the icon, color, and tooltip.
34 ShowUpdateIcon(UpdateSeverity severity, 34 ShowUpdateIcon(UpdateSeverity severity,
35 bool factory_reset_required, 35 bool factory_reset_required,
36 UpdateType update_type); 36 UpdateType update_type);
37
38 // Shows an icon in the system tray indicating that a software update is
39 // available but user's agreement is required as current connection is
40 // cellular. Once shown the icon persists until reboot.
41 ShowUpdateOverCellularAvailableIcon();
37 }; 42 };
38 43
39 // Allows ash system tray to control a client (e.g. Chrome browser). Requests 44 // Allows ash system tray to control a client (e.g. Chrome browser). Requests
40 // often involve preferences or web UI that is not available to ash. 45 // often involve preferences or web UI that is not available to ash.
41 interface SystemTrayClient { 46 interface SystemTrayClient {
42 // Shows general settings UI. 47 // Shows general settings UI.
43 ShowSettings(); 48 ShowSettings();
44 49
45 // Shows settings related to Bluetooth devices (e.g. to add a device). 50 // Shows settings related to Bluetooth devices (e.g. to add a device).
46 ShowBluetoothSettings(); 51 ShowBluetoothSettings();
47 52
48 // Shows the web UI dialog to pair a Bluetooth device. 53 // Shows the web UI dialog to pair a Bluetooth device.
49 // |address| is the unique device address in the form "XX:XX:XX:XX:XX:XX" 54 // |address| is the unique device address in the form "XX:XX:XX:XX:XX:XX"
50 // with hex digits X. |name_for_display| is a human-readable name, not 55 // with hex digits X. |name_for_display| is a human-readable name, not
51 // necessarily the device name. 56 // necessarily the device name.
52 ShowBluetoothPairingDialog(string address, 57 ShowBluetoothPairingDialog(string address,
53 mojo.common.mojom.String16 name_for_display, 58 mojo.common.mojom.String16 name_for_display,
54 bool paired, 59 bool paired,
55 bool connected); 60 bool connected);
56 61
57 // Shows the settings related to date, timezone etc. 62 // Shows the settings related to date, timezone etc.
58 ShowDateSettings(); 63 ShowDateSettings();
59 64
65 // Show the about chrome OS page.
66 ShowAboutChromeOS();
stevenjb 2017/05/15 18:06:45 nit: Put this next to 'ShowHelp', and update the c
weidongg 2017/05/16 19:46:08 Done.
67
60 // Shows the dialog to set system time, date, and timezone. 68 // Shows the dialog to set system time, date, and timezone.
61 ShowSetTimeDialog(); 69 ShowSetTimeDialog();
62 70
63 // Shows settings related to multiple displays. 71 // Shows settings related to multiple displays.
64 ShowDisplaySettings(); 72 ShowDisplaySettings();
65 73
66 // Shows settings related to power. 74 // Shows settings related to power.
67 ShowPowerSettings(); 75 ShowPowerSettings();
68 76
69 // Shows the page that lets you disable performance tracing. 77 // Shows the page that lets you disable performance tracing.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 122
115 // Shows UI for changing proxy settings. 123 // Shows UI for changing proxy settings.
116 ShowProxySettings(); 124 ShowProxySettings();
117 125
118 // Attempts to sign out the user. 126 // Attempts to sign out the user.
119 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582 127 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582
120 SignOut(); 128 SignOut();
121 129
122 // Attempts to restart the system for update. 130 // Attempts to restart the system for update.
123 RequestRestartForUpdate(); 131 RequestRestartForUpdate();
132
133 // Attempts to check for update;
134 RequestUpdateCheck();
124 }; 135 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698