| 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 // will be placed in a fallback container window in the ash window hierarchy. | |
| 23 // See ash/public/cpp/shell_window_ids.h for |container_id| values. The window | |
| 24 // is 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 |