| 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 "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 9 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 10 #include "chrome/browser/ui/views/constrained_window_views.h" | 10 #include "chrome/browser/ui/views/constrained_window_views.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 ConstrainedWebDialogDelegate* ui::CreateConstrainedWebDialog( | 177 ConstrainedWebDialogDelegate* ui::CreateConstrainedWebDialog( |
| 178 Profile* profile, | 178 Profile* profile, |
| 179 WebDialogDelegate* delegate, | 179 WebDialogDelegate* delegate, |
| 180 WebDialogWebContentsDelegate* tab_delegate, | 180 WebDialogWebContentsDelegate* tab_delegate, |
| 181 TabContents* container) { | 181 TabContents* container) { |
| 182 ConstrainedWebDialogDelegateViewViews* constrained_delegate = | 182 ConstrainedWebDialogDelegateViewViews* constrained_delegate = |
| 183 new ConstrainedWebDialogDelegateViewViews(profile, delegate, tab_delegate)
; | 183 new ConstrainedWebDialogDelegateViewViews(profile, delegate, tab_delegate)
; |
| 184 ConstrainedWindow* constrained_window = | 184 ConstrainedWindow* constrained_window = |
| 185 new ConstrainedWindowViews(container->web_contents(), | 185 new ConstrainedWindowViews(container->web_contents(), |
| 186 constrained_delegate, | 186 constrained_delegate, |
| 187 false); | 187 false, |
| 188 ConstrainedWindowViews::DEFAULT_INSETS); |
| 188 constrained_delegate->set_window(constrained_window); | 189 constrained_delegate->set_window(constrained_window); |
| 189 return constrained_delegate; | 190 return constrained_delegate; |
| 190 } | 191 } |
| OLD | NEW |