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

Unified Diff: chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm

Issue 11358027: Move constrained web dialog code back to chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros fix2 Created 8 years, 1 month 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/cocoa/constrained_web_dialog_delegate_mac.mm
diff --git a/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm b/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
index e6231f7375441a6ac6afdfc63d3c2f116cd7c99d..d1f900c9214f5ef8b5371de82119e2c1e0c0bb94 100644
--- a/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
+++ b/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
@@ -16,7 +16,6 @@
#include "ui/web_dialogs/web_dialog_web_contents_delegate.h"
using content::WebContents;
-using ui::ConstrainedWebDialogDelegate;
using ui::WebDialogDelegate;
using ui::WebDialogWebContentsDelegate;
@@ -117,19 +116,18 @@ ConstrainedWebDialogDelegateMac::ConstrainedWebDialogDelegateMac(
@selector(sheetDidEnd:returnCode:contextInfo:));
}
-ConstrainedWebDialogDelegate* ui::CreateConstrainedWebDialog(
+ConstrainedWebDialogDelegate* CreateConstrainedWebDialog(
Profile* profile,
WebDialogDelegate* delegate,
WebDialogWebContentsDelegate* tab_delegate,
- TabContents* tab_contents) {
+ content::WebContents* web_contents) {
// Deleted when ConstrainedWebDialogDelegateMac::DeleteDelegate() runs.
ConstrainedWebDialogDelegateMac* constrained_delegate =
new ConstrainedWebDialogDelegateMac(profile, delegate, tab_delegate);
// Deleted when ConstrainedWebDialogDelegateMac::OnDialogCloseFromWebUI()
// runs.
ConstrainedWindow* constrained_window =
- new ConstrainedWindowMac(tab_contents->web_contents(),
- constrained_delegate);
+ new ConstrainedWindowMac(web_contents, constrained_delegate);
constrained_delegate->set_window(constrained_window);
return constrained_delegate;
}
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller.cc ('k') | chrome/browser/ui/gtk/constrained_web_dialog_delegate_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698