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/tab_contents/tab_contents_wrapper.h" | 9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
10 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" | 10 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 120 } |
121 | 121 |
122 // static | 122 // static |
123 ConstrainedWindow* ConstrainedHtmlUI::CreateConstrainedHtmlDialog( | 123 ConstrainedWindow* ConstrainedHtmlUI::CreateConstrainedHtmlDialog( |
124 Profile* profile, | 124 Profile* profile, |
125 HtmlDialogUIDelegate* delegate, | 125 HtmlDialogUIDelegate* delegate, |
126 TabContentsWrapper* wrapper) { | 126 TabContentsWrapper* wrapper) { |
127 ConstrainedHtmlDelegateGtk* constrained_delegate = | 127 ConstrainedHtmlDelegateGtk* constrained_delegate = |
128 new ConstrainedHtmlDelegateGtk(profile, delegate); | 128 new ConstrainedHtmlDelegateGtk(profile, delegate); |
129 ConstrainedWindow* constrained_window = | 129 ConstrainedWindow* constrained_window = |
130 new ConstrainedWindowGtk(wrapper->tab_contents(), constrained_delegate); | 130 new ConstrainedWindowGtk(wrapper, constrained_delegate); |
131 constrained_delegate->set_window(constrained_window); | 131 constrained_delegate->set_window(constrained_window); |
132 return constrained_window; | 132 return constrained_window; |
133 } | 133 } |
OLD | NEW |