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

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

Issue 2839043004: chromeos: Refactor ash SystemTrayDelegate enterprise methods to mojo (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.
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 // Sets enterprise management information. If |enterprise_domain| is not empty
27 // or |active_directory_managed| is true then an item will be shown in the
28 // system tray menu stating that the device is managed.
29 SetEnterpriseDomain(string enterprise_domain, bool active_directory_managed);
Tom Sepez 2017/04/26 19:29:53 This just updates the display, right? No change o
James Cook 2017/04/26 21:04:15 Correct. I updated the comment to try to clarify.
30
26 // 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
27 // available. Once shown the icon persists until reboot. |severity| and 32 // available. Once shown the icon persists until reboot. |severity| and
28 // |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.
29 ShowUpdateIcon(UpdateSeverity severity, 34 ShowUpdateIcon(UpdateSeverity severity,
30 bool factory_reset_required, 35 bool factory_reset_required,
31 UpdateType update_type); 36 UpdateType update_type);
32 }; 37 };
33 38
34 // Allows ash system tray to control a client (e.g. Chrome browser). Requests 39 // Allows ash system tray to control a client (e.g. Chrome browser). Requests
35 // often involve preferences or web UI that is not available to ash. 40 // often involve preferences or web UI that is not available to ash.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 83
79 // Shows the help center article for the stylus tool palette. 84 // Shows the help center article for the stylus tool palette.
80 ShowPaletteHelp(); 85 ShowPaletteHelp();
81 86
82 // Shows the settings related to the stylus tool palette. 87 // Shows the settings related to the stylus tool palette.
83 ShowPaletteSettings(); 88 ShowPaletteSettings();
84 89
85 // Shows information about public account mode. 90 // Shows information about public account mode.
86 ShowPublicAccountInfo(); 91 ShowPublicAccountInfo();
87 92
88 // TODO(crbug.com/647412): ShowEnterpriseInfo(); 93 // Shows information about enterprise enrolled devices.
94 ShowEnterpriseInfo();
89 95
90 // Shows UI to configure or activate the network specified by |network_id|, 96 // Shows UI to configure or activate the network specified by |network_id|,
91 // which may include showing payment or captive portal UI when appropriate. 97 // which may include showing payment or captive portal UI when appropriate.
92 ShowNetworkConfigure(string network_id); 98 ShowNetworkConfigure(string network_id);
93 99
94 // Shows UI to create a new network connection. The |type| is a Shill/Flimflam 100 // Shows UI to create a new network connection. The |type| is a Shill/Flimflam
95 // network type from third_party/cros_system_api/dbus/shill/dbus-constants.h 101 // network type from third_party/cros_system_api/dbus/shill/dbus-constants.h
96 // ('wifi', 'cellular', etc.). 102 // ('wifi', 'cellular', etc.).
97 ShowNetworkCreate(string type); 103 ShowNetworkCreate(string type);
98 104
(...skipping 10 matching lines...) Expand all
109 // Shows UI for changing proxy settings. 115 // Shows UI for changing proxy settings.
110 ShowProxySettings(); 116 ShowProxySettings();
111 117
112 // Attempts to sign out the user. 118 // Attempts to sign out the user.
113 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582 119 // TODO(jamescook): Migrate to a user or login service. crbug.com/665582
114 SignOut(); 120 SignOut();
115 121
116 // Attempts to restart the system for update. 122 // Attempts to restart the system for update.
117 RequestRestartForUpdate(); 123 RequestRestartForUpdate();
118 }; 124 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698