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

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

Issue 2452283003: chromeos: Make network enrollment and SIM unlock dialogs work with mash (Closed)
Patch Set: rebase 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
« no previous file with comments | « chrome/browser/chromeos/sim_dialog_delegate.cc ('k') | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23b79cd82d34f99eb0cc1832b4b1c68d1b4f9c7e..a63a2d30db462520af249ebb5f289af90eaeba9b 100644
--- a/chrome/browser/ui/ash/system_tray_client.h
+++ b/chrome/browser/ui/ash/system_tray_client.h
@@ -14,6 +14,11 @@ namespace ash {
enum class LoginStatus;
}
+namespace views {
+class Widget;
+class WidgetDelegate;
+}
+
// Handles method calls delegated back to chrome from ash. Also notifies ash of
// relevant state changes in chrome.
// TODO: Consider renaming this to SystemTrayClientChromeOS.
@@ -32,6 +37,12 @@ class SystemTrayClient : public ash::mojom::SystemTrayClient,
// varies based on the current login and lock screen state.
static int GetDialogParentContainerId();
+ // Creates a modal dialog in the parent window for new dialogs on the primary
+ // display. See GetDialogParentContainerId() and views::CreateDialogWidget().
+ // The returned widget is owned by its native widget.
+ static views::Widget* CreateUnownedDialogWidget(
+ views::WidgetDelegate* widget_delegate);
+
// ash::mojom::SystemTrayClient:
void ShowSettings() override;
void ShowDateSettings() override;
« no previous file with comments | « chrome/browser/chromeos/sim_dialog_delegate.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