OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "components/web_modal/native_web_contents_modal_dialog.h" | 9 #include "components/web_modal/native_web_contents_modal_dialog.h" |
10 #include "content/public/browser/web_ui_controller.h" | 10 #include "content/public/browser/web_ui_controller.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogUI); | 76 DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogUI); |
77 }; | 77 }; |
78 | 78 |
79 // Create a constrained HTML dialog. The actual object that gets created | 79 // Create a constrained HTML dialog. The actual object that gets created |
80 // is a ConstrainedWebDialogDelegate, which later triggers construction of a | 80 // is a ConstrainedWebDialogDelegate, which later triggers construction of a |
81 // ConstrainedWebDialogUI object. | 81 // ConstrainedWebDialogUI object. |
82 // |browser_context| is used to construct the constrained HTML dialog's | 82 // |browser_context| is used to construct the constrained HTML dialog's |
83 // WebContents. | 83 // WebContents. |
84 // |delegate| controls the behavior of the dialog. | 84 // |delegate| controls the behavior of the dialog. |
85 // |tab_delegate| is optional, pass one in to use a custom | |
86 // WebDialogWebContentsDelegate with the dialog, or NULL to | |
87 // use the default one. The dialog takes ownership of | |
88 // |tab_delegate|. | |
89 // |overshadowed| is the tab being overshadowed by the dialog. | 85 // |overshadowed| is the tab being overshadowed by the dialog. |
90 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( | 86 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( |
91 content::BrowserContext* browser_context, | 87 content::BrowserContext* browser_context, |
92 ui::WebDialogDelegate* delegate, | 88 ui::WebDialogDelegate* delegate, |
93 ui::WebDialogWebContentsDelegate* tab_delegate, | |
94 content::WebContents* overshadowed); | 89 content::WebContents* overshadowed); |
95 | 90 |
96 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ | 91 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ |
OLD | NEW |