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/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/ui/browser_finder.h" | 8 #include "chrome/browser/ui/browser_finder.h" |
9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
10 #include "chrome/browser/ui/views/constrained_window_views.h" | |
11 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" | 10 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" |
| 11 #include "components/constrained_window/constrained_window_views.h" |
12 #include "content/public/browser/native_web_keyboard_event.h" | 12 #include "content/public/browser/native_web_keyboard_event.h" |
13 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
14 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" | 14 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" |
15 #include "ui/views/controls/webview/webview.h" | 15 #include "ui/views/controls/webview/webview.h" |
16 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
17 #include "ui/views/window/dialog_delegate.h" | 17 #include "ui/views/window/dialog_delegate.h" |
18 #include "ui/web_dialogs/web_dialog_delegate.h" | 18 #include "ui/web_dialogs/web_dialog_delegate.h" |
19 #include "ui/web_dialogs/web_dialog_ui.h" | 19 #include "ui/web_dialogs/web_dialog_ui.h" |
20 | 20 |
21 namespace { | 21 namespace { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( | 197 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( |
198 content::BrowserContext* browser_context, | 198 content::BrowserContext* browser_context, |
199 ui::WebDialogDelegate* delegate, | 199 ui::WebDialogDelegate* delegate, |
200 content::WebContents* web_contents) { | 200 content::WebContents* web_contents) { |
201 ConstrainedWebDialogDelegateViewViews* dialog = | 201 ConstrainedWebDialogDelegateViewViews* dialog = |
202 new ConstrainedWebDialogDelegateViewViews( | 202 new ConstrainedWebDialogDelegateViewViews( |
203 browser_context, delegate, web_contents); | 203 browser_context, delegate, web_contents); |
204 ShowWebModalDialogViews(dialog, web_contents); | 204 ShowWebModalDialogViews(dialog, web_contents); |
205 return dialog; | 205 return dialog; |
206 } | 206 } |
OLD | NEW |