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/strings/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 "components/web_modal/web_contents_modal_dialog_manager.h" | 9 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
10 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" | 10 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" |
11 #include "content/public/browser/native_web_keyboard_event.h" | 11 #include "content/public/browser/native_web_keyboard_event.h" |
12 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
13 #include "content/public/browser/web_contents_view.h" | 13 #include "content/public/browser/web_contents_view.h" |
14 #include "ui/gfx/size.h" | 14 #include "ui/gfx/size.h" |
15 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" | 15 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" |
16 #include "ui/views/controls/webview/webview.h" | 16 #include "ui/views/controls/webview/webview.h" |
17 #include "ui/views/view.h" | 17 #include "ui/views/view.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 WebContentsModalDialogManager::FromWebContents(web_contents); | 226 WebContentsModalDialogManager::FromWebContents(web_contents); |
227 views::Widget* window = CreateWebContentsModalDialogViews( | 227 views::Widget* window = CreateWebContentsModalDialogViews( |
228 constrained_delegate, | 228 constrained_delegate, |
229 web_contents->GetView()->GetNativeView(), | 229 web_contents->GetView()->GetNativeView(), |
230 web_contents_modal_dialog_manager->delegate()-> | 230 web_contents_modal_dialog_manager->delegate()-> |
231 GetWebContentsModalDialogHost()); | 231 GetWebContentsModalDialogHost()); |
232 web_contents_modal_dialog_manager->ShowDialog(window->GetNativeView()); | 232 web_contents_modal_dialog_manager->ShowDialog(window->GetNativeView()); |
233 constrained_delegate->SetWindow(window); | 233 constrained_delegate->SetWindow(window); |
234 return constrained_delegate; | 234 return constrained_delegate; |
235 } | 235 } |
OLD | NEW |