| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/constrained_html_ui.h" | 5 #include "chrome/browser/ui/webui/constrained_html_ui.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" | 8 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
| 9 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" | 9 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" |
| 10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 void ConstrainedHtmlDelegateGtk::OnDialogCloseFromWebUI() { | 108 void ConstrainedHtmlDelegateGtk::OnDialogCloseFromWebUI() { |
| 109 closed_via_webui_ = true; | 109 closed_via_webui_ = true; |
| 110 window_->CloseConstrainedWindow(); | 110 window_->CloseConstrainedWindow(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 // static | 113 // static |
| 114 ConstrainedWindow* ConstrainedHtmlUI::CreateConstrainedHtmlDialog( | 114 ConstrainedWindow* ConstrainedHtmlUI::CreateConstrainedHtmlDialog( |
| 115 Profile* profile, | 115 Profile* profile, |
| 116 HtmlDialogUIDelegate* delegate, | 116 HtmlDialogUIDelegate* delegate, |
| 117 TabContents* overshadowed) { | 117 TabContentsWrapper* overshadowed) { |
| 118 ConstrainedHtmlDelegateGtk* constrained_delegate = | 118 ConstrainedHtmlDelegateGtk* constrained_delegate = |
| 119 new ConstrainedHtmlDelegateGtk(profile, delegate); | 119 new ConstrainedHtmlDelegateGtk(profile, delegate); |
| 120 ConstrainedWindow* constrained_window = | 120 ConstrainedWindow* constrained_window = |
| 121 new ConstrainedWindowGtk(overshadowed, constrained_delegate); | 121 new ConstrainedWindowGtk(overshadowed->tab_contents(), |
| 122 constrained_delegate); |
| 122 constrained_delegate->set_window(constrained_window); | 123 constrained_delegate->set_window(constrained_window); |
| 123 return constrained_window; | 124 return constrained_window; |
| 124 } | 125 } |
| OLD | NEW |