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

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

Issue 12276010: Factor out uses of the WebContentsModalDialog interface from platform-independent code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove incorrect override Created 7 years, 10 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_delegate_base.h
diff --git a/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h b/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h
index e4692be1af044ae9f860e3ea144f77cbd09b133b..e95d092303983f0b90152c2686f6cb5368d88930 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h
+++ b/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h
@@ -29,7 +29,6 @@ class ConstrainedWebDialogDelegateBase
WebDialogWebContentsDelegate* tab_delegate);
virtual ~ConstrainedWebDialogDelegateBase();
- void set_window(WebContentsModalDialog* window);
bool closed_via_webui() const;
// ConstrainedWebDialogDelegate interface.
@@ -38,7 +37,7 @@ class ConstrainedWebDialogDelegateBase
virtual ui::WebDialogDelegate* GetWebDialogDelegate() OVERRIDE;
virtual void OnDialogCloseFromWebUI() OVERRIDE;
virtual void ReleaseWebContentsOnDialogClose() OVERRIDE;
- virtual WebContentsModalDialog* GetWindow() OVERRIDE;
+ virtual NativeWebContentsModalDialog GetNativeDialog() OVERRIDE;
virtual content::WebContents* GetWebContents() OVERRIDE;
// WebDialogWebContentsDelegate interface.
@@ -49,10 +48,6 @@ class ConstrainedWebDialogDelegateBase
private:
scoped_ptr<ui::WebDialogDelegate> web_dialog_delegate_;
- // The web contents modal dialog that owns |this|. Saved so we can close it
- // later.
- WebContentsModalDialog* window_;
-
// Holds the HTML to display in the constrained dialog.
scoped_ptr<content::WebContents> web_contents_;
« no previous file with comments | « chrome/browser/ui/webui/certificate_viewer_webui.cc ('k') | chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698