Chromium Code Reviews| 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 "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "content/public/browser/web_ui_controller.h" | 10 #include "content/public/browser/web_ui_controller.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 // of a ConstrainedWebDialogUI object. | 94 // of a ConstrainedWebDialogUI object. |
| 95 // |browser_context| is used to construct the constrained HTML dialog's | 95 // |browser_context| is used to construct the constrained HTML dialog's |
| 96 // WebContents. | 96 // WebContents. |
| 97 // |delegate| controls the behavior of the dialog. | 97 // |delegate| controls the behavior of the dialog. |
| 98 // |overshadowed| is the tab being overshadowed by the dialog. | 98 // |overshadowed| is the tab being overshadowed by the dialog. |
| 99 ConstrainedWebDialogDelegate* ShowConstrainedWebDialog( | 99 ConstrainedWebDialogDelegate* ShowConstrainedWebDialog( |
| 100 content::BrowserContext* browser_context, | 100 content::BrowserContext* browser_context, |
| 101 ui::WebDialogDelegate* delegate, | 101 ui::WebDialogDelegate* delegate, |
| 102 content::WebContents* overshadowed); | 102 content::WebContents* overshadowed); |
| 103 | 103 |
| 104 ConstrainedWebDialogDelegate* ShowTopLevelConstrainedWebDialog( | |
|
Lei Zhang
2016/07/25 21:35:10
Please add a comment similiar to the functions abo
rbpotter
2016/07/26 21:48:19
Done.
| |
| 105 content::BrowserContext* browser_context, | |
| 106 ui::WebDialogDelegate* delegate, | |
| 107 content::WebContents* web_contents); | |
| 108 | |
| 104 // Create and show a constrained HTML dialog with auto-resize enabled. The | 109 // Create and show a constrained HTML dialog with auto-resize enabled. The |
| 105 // dialog is shown automatically after document load has completed to avoid UI | 110 // dialog is shown automatically after document load has completed to avoid UI |
| 106 // jankiness. | 111 // jankiness. |
| 107 // |browser_context| is used to construct the dialog's WebContents. | 112 // |browser_context| is used to construct the dialog's WebContents. |
| 108 // |delegate| controls the behavior of the dialog. | 113 // |delegate| controls the behavior of the dialog. |
| 109 // |overshadowed| is the tab being overshadowed by the dialog. | 114 // |overshadowed| is the tab being overshadowed by the dialog. |
| 110 // |min_size| is the minimum size of the dialog. | 115 // |min_size| is the minimum size of the dialog. |
| 111 // |max_size| is the maximum size of the dialog. | 116 // |max_size| is the maximum size of the dialog. |
| 112 ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize( | 117 ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize( |
| 113 content::BrowserContext* browser_context, | 118 content::BrowserContext* browser_context, |
| 114 ui::WebDialogDelegate* delegate, | 119 ui::WebDialogDelegate* delegate, |
| 115 content::WebContents* overshadowed, | 120 content::WebContents* overshadowed, |
| 116 const gfx::Size& min_size, | 121 const gfx::Size& min_size, |
| 117 const gfx::Size& max_size); | 122 const gfx::Size& max_size); |
| 118 | 123 |
| 119 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ | 124 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ |
| OLD | NEW |