Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_ASH_WEB_DIALOG_UTIL_H_ | |
| 6 #define CHROME_BROWSER_UI_ASH_WEB_DIALOG_UTIL_H_ | |
| 7 | |
| 8 #include "ui/gfx/native_widget_types.h" | |
| 9 | |
| 10 namespace content { | |
| 11 class BrowserContext; | |
| 12 } | |
| 13 | |
| 14 namespace ui { | |
| 15 class WebDialogDelegate; | |
| 16 } | |
| 17 | |
| 18 namespace chrome { | |
| 19 | |
| 20 // Creates and shows an HTML dialog with the given delegate and context. The | |
| 21 // dialog is created as a child of |parent|. If |parent| is null the dialog | |
| 22 // is placed in a fallback shell window container on the primary display. Either | |
| 23 // 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.
| |
| 24 // destroyed when it is closed. See also chrome::ShowWebDialog(). | |
| 25 void ShowWebDialogWithContainer(gfx::NativeView parent, | |
| 26 int container_id, | |
| 27 content::BrowserContext* context, | |
| 28 ui::WebDialogDelegate* delegate); | |
| 29 | |
| 30 } // namespace chrome | |
| 31 | |
| 32 #endif // CHROME_BROWSER_UI_ASH_WEB_DIALOG_UTIL_H_ | |
| OLD | NEW |