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

Unified Diff: chrome/browser/ui/browser_dialogs.h

Issue 2871073002: cros: Bind hangup red button on remote controller to close web dialog (Closed)
Patch Set: nits 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_dialogs.h
diff --git a/chrome/browser/ui/browser_dialogs.h b/chrome/browser/ui/browser_dialogs.h
index 9ece1b6d7476bb1f2223222550e83b4e4f1fa9ca..a6aa62be6204da9d4cce4dc47d0eda5f4436bb99 100644
--- a/chrome/browser/ui/browser_dialogs.h
+++ b/chrome/browser/ui/browser_dialogs.h
@@ -93,12 +93,14 @@ gfx::NativeWindow ShowWebDialog(gfx::NativeView parent,
#if defined(USE_ASH)
// Creates and shows an HTML dialog with the given delegate and browser context.
-// The dialog is placed in the ash window hierarchy in the given container.
+// The dialog is placed in the ash window hierarchy in the given container. The
+// window is automatically destroyed when it is closed.
+// Returns the created window.
// 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 ShowWebDialogInContainer(int container_id,
- content::BrowserContext* context,
- ui::WebDialogDelegate* delegate);
+gfx::NativeWindow ShowWebDialogInContainer(int container_id,
+ content::BrowserContext* context,
+ ui::WebDialogDelegate* delegate);
#endif // defined(USE_ASH)
// Shows the create chrome app shortcut dialog box.
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_web_dialog_browsertest.cc ('k') | chrome/browser/ui/views/chrome_web_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698