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/ui/views/constrained_window_views.h" | 8 #include "chrome/browser/ui/views/constrained_window_views.h" |
9 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" | 9 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" |
10 #include "content/public/browser/native_web_keyboard_event.h" | 10 #include "content/public/browser/native_web_keyboard_event.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( | 192 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( |
193 content::BrowserContext* browser_context, | 193 content::BrowserContext* browser_context, |
194 WebDialogDelegate* delegate, | 194 WebDialogDelegate* delegate, |
195 WebDialogWebContentsDelegate* tab_delegate, | 195 WebDialogWebContentsDelegate* tab_delegate, |
196 content::WebContents* web_contents) { | 196 content::WebContents* web_contents) { |
197 ConstrainedWebDialogDelegateViewViews* constrained_delegate = | 197 ConstrainedWebDialogDelegateViewViews* constrained_delegate = |
198 new ConstrainedWebDialogDelegateViewViews( | 198 new ConstrainedWebDialogDelegateViewViews( |
199 browser_context, delegate, tab_delegate); | 199 browser_context, delegate, tab_delegate); |
200 WebContentsModalDialog* web_contents_modal_dialog = | 200 WebContentsModalDialog* web_contents_modal_dialog = |
201 new ConstrainedWindowViews(web_contents, constrained_delegate); | 201 ConstrainedWindowViews::Create(web_contents, constrained_delegate); |
202 constrained_delegate->set_window(web_contents_modal_dialog); | 202 constrained_delegate->set_window(web_contents_modal_dialog); |
203 return constrained_delegate; | 203 return constrained_delegate; |
204 } | 204 } |
OLD | NEW |