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

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

Issue 2441133002: mash: Introduce ShowWebDialogWithContainer for webui dialogs (Closed)
Patch Set: review comments 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/ui/ash/system_tray_delegate_chromeos.cc ('k') | chrome/browser/ui/ash/web_dialog_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/web_dialog_util.h
diff --git a/chrome/browser/ui/ash/web_dialog_util.h b/chrome/browser/ui/ash/web_dialog_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..d330997dd83d6aaeac1a0f04a43993a0e834cc84
--- /dev/null
+++ b/chrome/browser/ui/ash/web_dialog_util.h
@@ -0,0 +1,32 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ASH_WEB_DIALOG_UTIL_H_
+#define CHROME_BROWSER_UI_ASH_WEB_DIALOG_UTIL_H_
+
+#include "ui/gfx/native_widget_types.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace ui {
+class WebDialogDelegate;
+}
+
+namespace chrome {
+
+// Creates and shows an HTML dialog with the given delegate and context. The
+// dialog is created as a child of |parent|. If |parent| is null the dialog
+// will be placed in a fallback container window in the ash window hierarchy.
+// See ash/public/cpp/shell_window_ids.h for |container_id| values. The window
+// is destroyed when it is closed. See also chrome::ShowWebDialog().
+void ShowWebDialogWithContainer(gfx::NativeView parent,
+ int container_id,
+ content::BrowserContext* context,
+ ui::WebDialogDelegate* delegate);
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_UI_ASH_WEB_DIALOG_UTIL_H_
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.cc ('k') | chrome/browser/ui/ash/web_dialog_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698