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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 WebDialogDelegate* delegate, | 187 WebDialogDelegate* delegate, |
188 WebDialogWebContentsDelegate* tab_delegate, | 188 WebDialogWebContentsDelegate* tab_delegate, |
189 content::WebContents* web_contents) { | 189 content::WebContents* web_contents) { |
190 ConstrainedWebDialogDelegateViewViews* constrained_delegate = | 190 ConstrainedWebDialogDelegateViewViews* constrained_delegate = |
191 new ConstrainedWebDialogDelegateViewViews( | 191 new ConstrainedWebDialogDelegateViewViews( |
192 profile, delegate, tab_delegate); | 192 profile, delegate, tab_delegate); |
193 ConstrainedWindow* constrained_window = | 193 ConstrainedWindow* constrained_window = |
194 new ConstrainedWindowViews(web_contents, | 194 new ConstrainedWindowViews(web_contents, |
195 constrained_delegate, | 195 constrained_delegate, |
196 false, | 196 false, |
197 ConstrainedWindowViews::DEFAULT_INSETS); | 197 ConstrainedWindowViews::FRAME_LAYOUT_FULL); |
198 constrained_delegate->set_window(constrained_window); | 198 constrained_delegate->set_window(constrained_window); |
199 return constrained_delegate; | 199 return constrained_delegate; |
200 } | 200 } |
OLD | NEW |