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" |
11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Size; | 14 class Size; |
15 } | 15 } |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 class BrowserContext; | 18 class BrowserContext; |
19 class RenderViewHost; | |
20 class WebContents; | 19 class WebContents; |
21 } | 20 } |
22 | 21 |
23 namespace ui { | 22 namespace ui { |
24 class WebDialogDelegate; | 23 class WebDialogDelegate; |
25 class WebDialogWebContentsDelegate; | |
26 } | 24 } |
27 | 25 |
28 class ConstrainedWebDialogDelegate { | 26 class ConstrainedWebDialogDelegate { |
29 public: | 27 public: |
30 virtual const ui::WebDialogDelegate* GetWebDialogDelegate() const = 0; | 28 virtual const ui::WebDialogDelegate* GetWebDialogDelegate() const = 0; |
31 virtual ui::WebDialogDelegate* GetWebDialogDelegate() = 0; | 29 virtual ui::WebDialogDelegate* GetWebDialogDelegate() = 0; |
32 | 30 |
33 // Called when the dialog is being closed in response to a "dialogClose" | 31 // Called when the dialog is being closed in response to a "dialogClose" |
34 // message from WebUI. | 32 // message from WebUI. |
35 virtual void OnDialogCloseFromWebUI() = 0; | 33 virtual void OnDialogCloseFromWebUI() = 0; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // |min_size| is the minimum size of the dialog. | 108 // |min_size| is the minimum size of the dialog. |
111 // |max_size| is the maximum size of the dialog. | 109 // |max_size| is the maximum size of the dialog. |
112 ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize( | 110 ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize( |
113 content::BrowserContext* browser_context, | 111 content::BrowserContext* browser_context, |
114 ui::WebDialogDelegate* delegate, | 112 ui::WebDialogDelegate* delegate, |
115 content::WebContents* overshadowed, | 113 content::WebContents* overshadowed, |
116 const gfx::Size& min_size, | 114 const gfx::Size& min_size, |
117 const gfx::Size& max_size); | 115 const gfx::Size& max_size); |
118 | 116 |
119 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ | 117 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ |
OLD | NEW |