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

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

Issue 2816253002: Display "Restart to update Adobe Flash Player" for Flash updates. (Closed)
Patch Set: Fix nits from last review Created 3 years, 8 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
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/public/interfaces/update.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
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,
30 bool factory_reset_required,
31 UpdateType update_type);
30 }; 32 };
31 33
32 // Allows ash system tray to control a client (e.g. Chrome browser). Requests 34 // 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. 35 // often involve preferences or web UI that is not available to ash.
34 interface SystemTrayClient { 36 interface SystemTrayClient {
35 // Shows general settings UI. 37 // Shows general settings UI.
36 ShowSettings(); 38 ShowSettings();
37 39
38 // Shows settings related to Bluetooth devices (e.g. to add a device). 40 // Shows settings related to Bluetooth devices (e.g. to add a device).
39 ShowBluetoothSettings(); 41 ShowBluetoothSettings();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Shows UI for changing proxy settings. 109 // Shows UI for changing proxy settings.
108 ShowProxySettings(); 110 ShowProxySettings();
109 111
110 // Attempts to sign out the user. 112 // Attempts to sign out the user.
111 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582 113 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582
112 SignOut(); 114 SignOut();
113 115
114 // Attempts to restart the system for update. 116 // Attempts to restart the system for update.
115 RequestRestartForUpdate(); 117 RequestRestartForUpdate();
116 }; 118 };
OLDNEW
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/public/interfaces/update.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698