| Index: chrome/browser/ui/gtk/html_dialog_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/html_dialog_gtk.cc b/chrome/browser/ui/gtk/html_dialog_gtk.cc
|
| index 7c47641f630f7571e1c19391b852a4efbba76780..177803c7a802489bc14f9b2bfb79f6624376d451 100644
|
| --- a/chrome/browser/ui/gtk/html_dialog_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/html_dialog_gtk.cc
|
| @@ -38,6 +38,10 @@ gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent,
|
| return html_dialog->InitDialog();
|
| }
|
|
|
| +void CloseHtmlDialog(gfx::NativeWindow window) {
|
| + gtk_widget_destroy(GTK_WIDGET(window));
|
| +}
|
| +
|
| } // namespace browser
|
|
|
| namespace {
|
| @@ -151,6 +155,30 @@ void HtmlDialogGtk::CloseContents(WebContents* source) {
|
| OnDialogClosed(std::string());
|
| }
|
|
|
| +content::WebContents* HtmlDialogGtk::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 HtmlDialogGtk::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)) {
|
| + return;
|
| + }
|
| + HtmlDialogTabContentsDelegate::AddNewContents(
|
| + source, new_contents, disposition, initial_pos, user_gesture);
|
| +}
|
| +
|
| bool HtmlDialogGtk::ShouldShowDialogTitle() const {
|
| return true;
|
| }
|
|
|