OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_web_dialog_delegate_base.h" | 5 #include "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h" |
6 | 6 |
7 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" | 7 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
8 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" | 8 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" |
9 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 9 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
10 #include "content/public/browser/notification_source.h" | 10 #include "content/public/browser/notification_source.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 gtk_widget_show_all(GetWidgetRoot()); | 98 gtk_widget_show_all(GetWidgetRoot()); |
99 } | 99 } |
100 | 100 |
101 ConstrainedWebDialogDelegate* ui::CreateConstrainedWebDialog( | 101 ConstrainedWebDialogDelegate* ui::CreateConstrainedWebDialog( |
102 Profile* profile, | 102 Profile* profile, |
103 WebDialogDelegate* delegate, | 103 WebDialogDelegate* delegate, |
104 WebDialogWebContentsDelegate* tab_delegate, | 104 WebDialogWebContentsDelegate* tab_delegate, |
105 TabContents* overshadowed) { | 105 TabContents* overshadowed) { |
106 ConstrainedWebDialogDelegateGtk* constrained_delegate = | 106 ConstrainedWebDialogDelegateGtk* constrained_delegate = |
107 new ConstrainedWebDialogDelegateGtk(profile, delegate, tab_delegate); | 107 new ConstrainedWebDialogDelegateGtk(profile, delegate, tab_delegate); |
108 ConstrainedWindow* constrained_window = | 108 ConstrainedWindow* constrained_window = new ConstrainedWindowGtk( |
109 new ConstrainedWindowGtk(overshadowed, constrained_delegate); | 109 overshadowed->web_contents(), constrained_delegate); |
110 constrained_delegate->set_window(constrained_window); | 110 constrained_delegate->set_window(constrained_window); |
111 return constrained_delegate; | 111 return constrained_delegate; |
112 } | 112 } |
OLD | NEW |