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

Unified Diff: chrome/browser/ui/ash/system_tray_client.h

Issue 2427823002: cros: Move system tray delegate widget container code to SystemTrayClient (Closed)
Patch Set: cleanup Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/system_tray_client.h
diff --git a/chrome/browser/ui/ash/system_tray_client.h b/chrome/browser/ui/ash/system_tray_client.h
index 2628b493d8d228285587467a5a11f4dcb3b618f8..b3923bd5652b220512c91ca940561c5e27fe0780 100644
--- a/chrome/browser/ui/ash/system_tray_client.h
+++ b/chrome/browser/ui/ash/system_tray_client.h
@@ -10,6 +10,10 @@
#include "chrome/browser/chromeos/system/system_clock_observer.h"
#include "mojo/public/cpp/bindings/binding.h"
+namespace ash {
+enum class LoginStatus;
+}
+
// Handles method calls delegated back to chrome from ash. Also notifies ash of
// relevant state changes in chrome.
// TODO: Consider renaming this to SystemTrayClientChromeOS.
@@ -21,6 +25,13 @@ class SystemTrayClient : public ash::mojom::SystemTrayClient,
static SystemTrayClient* Get();
+ // Returns the login state based on the user type, lock screen status, etc.
+ static ash::LoginStatus GetUserLoginStatus();
+
+ // Returns the container id for the parent window for new dialogs. The parent
+ // varies based on the current login and lock screen state.
+ static int GetDialogParentContainerId();
+
// ash::mojom::SystemTrayClient:
void ShowSettings() override;
void ShowDateSettings() override;
« no previous file with comments | « chrome/browser/ui/ash/network_connect_delegate_chromeos.cc ('k') | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698