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

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

Issue 2441133002: mash: Introduce ShowWebDialogWithContainer for webui dialogs (Closed)
Patch Set: private constructor 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/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..af234d0a8b578e88f411e0496e33c8927d2d6366
--- /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
+// is placed in a fallback shell window container on the primary display. Either
+// a |parent| or valid |container_id| must be provided. The window is destroyed
sky 2016/10/21 23:11:15 Agaun, document what container_id is. A reference
James Cook 2016/10/21 23:28:13 Done.
+// 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_

Powered by Google App Engine
This is Rietveld 408576698