Chromium Code Reviews| Index: chrome/browser/ui/views/html_dialog_view.cc |
| diff --git a/chrome/browser/ui/views/html_dialog_view.cc b/chrome/browser/ui/views/html_dialog_view.cc |
| index 0b8f93759bfd2c502586eedea76b5de86dfed606..b4895d620851e9d0361559efb0703d49617026f6 100644 |
| --- a/chrome/browser/ui/views/html_dialog_view.cc |
| +++ b/chrome/browser/ui/views/html_dialog_view.cc |
| @@ -50,6 +50,10 @@ gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent, |
| return html_view->GetWidget()->GetNativeWindow(); |
| } |
| +void CloseHtmlDialog(gfx::NativeWindow window) { |
| + views::Widget::GetWidgetForNativeWindow(window)->Close(); |
| +} |
| + |
| } // namespace browser |
| //////////////////////////////////////////////////////////////////////////////// |
| @@ -252,6 +256,30 @@ void HtmlDialogView::CloseContents(WebContents* source) { |
| OnDialogClosed(std::string()); |
| } |
| +content::WebContents* HtmlDialogView::OpenURLFromTab( |
| + content::WebContents* source, |
| + const content::OpenURLParams& params) { |
| + content::WebContents* new_contents = NULL; |
| + if (delegate_ && |
| + delegate_->HandleOpenURLFromTab(source, params, &new_contents)) { |
| + return new_contents; |
| + } |
| + return HtmlDialogTabContentsDelegate::OpenURLFromTab(source, params); |
| +} |
| + |
| +void HtmlDialogView::AddNewContents(content::WebContents* source, |
| + content::WebContents* new_contents, |
| + WindowOpenDisposition disposition, |
| + const gfx::Rect& initial_pos, |
| + bool user_gesture) { |
| + if (delegate_ && delegate_->HandleAddNewContents( |
| + source, new_contents, disposition, initial_pos, user_gesture)) { |
|
Dan Beam
2012/01/31 00:31:40
missed this one with indent
sail
2012/01/31 01:03:46
Done.
|
| + return; |
| + } |
| + HtmlDialogTabContentsDelegate::AddNewContents( |
| + source, new_contents, disposition, initial_pos, user_gesture); |
| +} |
| + |
| //////////////////////////////////////////////////////////////////////////////// |
| // HtmlDialogView: |