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

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 CloseWebContentsModalDialog call from ConstrainedWebDialogDelegateBase 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..6f167f0ebd712883021cbba6cc2c0961c4296b01 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_ui.h
+++ b/chrome/browser/ui/webui/constrained_web_dialog_ui.h
@@ -7,8 +7,7 @@
#include "base/compiler_specific.h"
#include "content/public/browser/web_ui_controller.h"
-
-class WebContentsModalDialog;
+#include "ui/gfx/native_widget_types.h"
namespace content {
class BrowserContext;
@@ -35,12 +34,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 NativeWindow used to display the dialog.
+ virtual gfx::NativeWindow GetNativeWindow() = 0;
+
protected:
virtual ~ConstrainedWebDialogDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698