| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/tab_contents/tab_contents.h" | 8 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 9 #include "content/public/browser/notification_source.h" | 9 #include "content/public/browser/notification_source.h" |
| 10 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
| 11 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 WebDialogDelegate* delegate, | 97 WebDialogDelegate* delegate, |
| 98 WebDialogWebContentsDelegate* tab_delegate, | 98 WebDialogWebContentsDelegate* tab_delegate, |
| 99 content::WebContents* web_contents) { | 99 content::WebContents* web_contents) { |
| 100 ConstrainedWebDialogDelegateGtk* constrained_delegate = | 100 ConstrainedWebDialogDelegateGtk* constrained_delegate = |
| 101 new ConstrainedWebDialogDelegateGtk(profile, delegate, tab_delegate); | 101 new ConstrainedWebDialogDelegateGtk(profile, delegate, tab_delegate); |
| 102 ConstrainedWindow* constrained_window = | 102 ConstrainedWindow* constrained_window = |
| 103 new ConstrainedWindowGtk(web_contents, constrained_delegate); | 103 new ConstrainedWindowGtk(web_contents, constrained_delegate); |
| 104 constrained_delegate->set_window(constrained_window); | 104 constrained_delegate->set_window(constrained_window); |
| 105 return constrained_delegate; | 105 return constrained_delegate; |
| 106 } | 106 } |
| OLD | NEW |