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