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

Unified Diff: chrome/browser/ui/webui/constrained_web_dialog_ui.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_ui.h
diff --git a/chrome/browser/ui/webui/constrained_web_dialog_ui.h b/chrome/browser/ui/webui/constrained_web_dialog_ui.h
index 791e0bf4fc8e74a12940f16a2372513bd4534a44..f0855d414d6f98bbf56d8af6dad0c1f5149b5b23 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_ui.h
+++ b/chrome/browser/ui/webui/constrained_web_dialog_ui.h
@@ -6,9 +6,9 @@
#define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
#include "base/compiler_specific.h"
+#include "chrome/browser/ui/native_web_contents_modal_dialog.h"
#include "content/public/browser/web_ui_controller.h"
-
-class WebContentsModalDialog;
+#include "ui/gfx/native_widget_types.h"
namespace content {
class BrowserContext;
@@ -35,12 +35,12 @@ class ConstrainedWebDialogDelegate {
// released WebContents.
virtual void ReleaseWebContentsOnDialogClose() = 0;
- // Returns the WebContentsModalDialog.
- virtual WebContentsModalDialog* GetWindow() = 0;
-
// Returns the WebContents owned by the constrained window.
virtual content::WebContents* GetWebContents() = 0;
+ // Returns the native type used to display the dialog.
+ virtual NativeWebContentsModalDialog GetNativeDialog() = 0;
+
protected:
virtual ~ConstrainedWebDialogDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698