Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1569)

Unified Diff: chrome/browser/ui/webui/constrained_web_dialog_ui.h

Issue 10353007: Extract a minimal subset of WebDialogUI/WebDialogDelegate from src/chrome -> src/ui/web_dialogs Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/constrained_web_dialog_ui.h
===================================================================
--- chrome/browser/ui/webui/constrained_web_dialog_ui.h (revision 135175)
+++ chrome/browser/ui/webui/constrained_web_dialog_ui.h (working copy)
@@ -12,8 +12,11 @@
class ConstrainedWindow;
class Profile;
class TabContentsWrapper;
+
+namespace web_dialogs {
class WebDialogDelegate;
-class WebDialogWebContentsDelegate;
+}
+class ChromeWebDialogWebContentsDelegate;
namespace base {
template<class T> class PropertyAccessor;
@@ -25,8 +28,9 @@
class ConstrainedWebDialogDelegate {
public:
- virtual const WebDialogDelegate* GetWebDialogDelegate() const = 0;
- virtual WebDialogDelegate* GetWebDialogDelegate() = 0;
+ virtual const web_dialogs::WebDialogDelegate*
+ GetWebDialogDelegate() const = 0;
+ virtual web_dialogs::WebDialogDelegate* GetWebDialogDelegate() = 0;
// Called when the dialog is being closed in response to a "DialogClose"
// message from WebUI.
@@ -76,8 +80,8 @@
// |overshadowed| is the tab being overshadowed by the dialog.
static ConstrainedWebDialogDelegate* CreateConstrainedWebDialog(
Profile* profile,
- WebDialogDelegate* delegate,
- WebDialogWebContentsDelegate* tab_delegate,
+ web_dialogs::WebDialogDelegate* delegate,
+ ChromeWebDialogWebContentsDelegate* tab_delegate,
TabContentsWrapper* overshadowed);
// Returns a property accessor that can be used to set the

Powered by Google App Engine
This is Rietveld 408576698