| 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/macros.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "build/build_config.h" |
| 8 #include "chrome/browser/ui/browser_finder.h" | 10 #include "chrome/browser/ui/browser_finder.h" |
| 9 #include "chrome/browser/ui/browser_window.h" | 11 #include "chrome/browser/ui/browser_window.h" |
| 10 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" | 12 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" |
| 11 #include "components/constrained_window/constrained_window_views.h" | 13 #include "components/constrained_window/constrained_window_views.h" |
| 12 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 14 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 13 #include "content/public/browser/native_web_keyboard_event.h" | 15 #include "content/public/browser/native_web_keyboard_event.h" |
| 14 #include "content/public/browser/render_view_host.h" | 16 #include "content/public/browser/render_view_host.h" |
| 15 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
| 16 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" | 18 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" |
| 17 #include "ui/views/controls/webview/webview.h" | 19 #include "ui/views/controls/webview/webview.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 const gfx::Size& max_size) { | 287 const gfx::Size& max_size) { |
| 286 DCHECK(!min_size.IsEmpty()); | 288 DCHECK(!min_size.IsEmpty()); |
| 287 DCHECK(!max_size.IsEmpty()); | 289 DCHECK(!max_size.IsEmpty()); |
| 288 ConstrainedWebDialogDelegateViewViews* dialog = | 290 ConstrainedWebDialogDelegateViewViews* dialog = |
| 289 new ConstrainedWebDialogDelegateViewViews( | 291 new ConstrainedWebDialogDelegateViewViews( |
| 290 browser_context, delegate, web_contents, | 292 browser_context, delegate, web_contents, |
| 291 min_size, max_size); | 293 min_size, max_size); |
| 292 constrained_window::CreateWebModalDialogViews(dialog, web_contents); | 294 constrained_window::CreateWebModalDialogViews(dialog, web_contents); |
| 293 return dialog; | 295 return dialog; |
| 294 } | 296 } |
| OLD | NEW |