diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 16:19:54 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 16:19:54 +0000 |
commit | 322f3ffc4edcc572adbc0a3657a16315a1846c51 (patch) | |
tree | 9e847beb06fbebc8ade32dc9908c78e655051cf7 /chrome/browser/browser.cc | |
parent | 97037a1032478f976048762aed86d963dc531c2f (diff) | |
download | chromium_src-322f3ffc4edcc572adbc0a3657a16315a1846c51.zip chromium_src-322f3ffc4edcc572adbc0a3657a16315a1846c51.tar.gz chromium_src-322f3ffc4edcc572adbc0a3657a16315a1846c51.tar.bz2 |
Move a bunch of dialog creation routines to browser_dialogs.h to break the
dependency on the implementations of those views.
This also moves that file into the browser:: namespace to avoid having all the
functions in the global namespace.
Rename the "parent" parameter to ShowHTMLDialog to a NativeWindow type to
avoid nasty casting. I assume this argument was written before we had
NativeWindow.
Review URL: http://codereview.chromium.org/113728
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16743 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index ba8b63b..7c3e679 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -577,7 +577,7 @@ void Browser::CloseTabContents(TabContents* contents) { } void Browser::BrowserShowHtmlDialog(HtmlDialogUIDelegate* delegate, - void* parent_window) { + gfx::NativeWindow parent_window) { ShowHtmlDialog(delegate, parent_window); } @@ -1983,7 +1983,7 @@ gfx::Rect Browser::GetRootWindowResizerRect() const { } void Browser::ShowHtmlDialog(HtmlDialogUIDelegate* delegate, - void* parent_window) { + gfx::NativeWindow parent_window) { window_->ShowHTMLDialog(delegate, parent_window); } |