| 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 UI_WEB_DIALOGS_CONSTRAINED_WEB_DIALOG_UI_H_ | 5 #ifndef UI_WEB_DIALOGS_CONSTRAINED_WEB_DIALOG_UI_H_ |
| 6 #define UI_WEB_DIALOGS_CONSTRAINED_WEB_DIALOG_UI_H_ | 6 #define UI_WEB_DIALOGS_CONSTRAINED_WEB_DIALOG_UI_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "content/public/browser/web_ui_controller.h" | 9 #include "content/public/browser/web_ui_controller.h" |
| 10 #include "ui/web_dialogs/web_dialogs_export.h" | 10 #include "ui/web_dialogs/web_dialogs_export.h" |
| 11 | 11 |
| 12 class ConstrainedWindow; | 12 class ConstrainedWindow; |
| 13 class Profile; | 13 class Profile; |
| 14 class TabContents; | 14 class TabContents; |
| 15 class WebDialogWebContentsDelegate; | |
| 16 | 15 |
| 17 namespace base { | 16 namespace base { |
| 18 template<class T> class PropertyAccessor; | 17 template<class T> class PropertyAccessor; |
| 19 } | 18 } |
| 20 | 19 |
| 21 namespace content { | 20 namespace content { |
| 22 class RenderViewHost; | 21 class RenderViewHost; |
| 23 } | 22 } |
| 24 | 23 |
| 25 namespace ui { | 24 namespace ui { |
| 26 class WebDialogDelegate; | 25 class WebDialogDelegate; |
| 26 class WebDialogWebContentsDelegate; |
| 27 | 27 |
| 28 class WEB_DIALOGS_EXPORT ConstrainedWebDialogDelegate { | 28 class WEB_DIALOGS_EXPORT ConstrainedWebDialogDelegate { |
| 29 public: | 29 public: |
| 30 virtual const WebDialogDelegate* GetWebDialogDelegate() const = 0; | 30 virtual const WebDialogDelegate* GetWebDialogDelegate() const = 0; |
| 31 virtual WebDialogDelegate* GetWebDialogDelegate() = 0; | 31 virtual WebDialogDelegate* GetWebDialogDelegate() = 0; |
| 32 | 32 |
| 33 // Called when the dialog is being closed in response to a "DialogClose" | 33 // Called when the dialog is being closed in response to a "DialogClose" |
| 34 // message from WebUI. | 34 // message from WebUI. |
| 35 virtual void OnDialogCloseFromWebUI() = 0; | 35 virtual void OnDialogCloseFromWebUI() = 0; |
| 36 | 36 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // |overshadowed| is the tab being overshadowed by the dialog. | 98 // |overshadowed| is the tab being overshadowed by the dialog. |
| 99 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( | 99 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( |
| 100 Profile* profile, | 100 Profile* profile, |
| 101 WebDialogDelegate* delegate, | 101 WebDialogDelegate* delegate, |
| 102 WebDialogWebContentsDelegate* tab_delegate, | 102 WebDialogWebContentsDelegate* tab_delegate, |
| 103 TabContents* overshadowed); | 103 TabContents* overshadowed); |
| 104 | 104 |
| 105 } // namespace ui | 105 } // namespace ui |
| 106 | 106 |
| 107 #endif // UI_WEB_DIALOGS_CONSTRAINED_WEB_DIALOG_UI_H_ | 107 #endif // UI_WEB_DIALOGS_CONSTRAINED_WEB_DIALOG_UI_H_ |
| OLD | NEW |