OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/app_modal_dialogs/chrome_javascript_dialog_manager_c
lient.h" |
| 6 |
| 7 #include "components/app_modal_dialogs/views/javascript_app_modal_dialog_views.h
" |
| 8 #include "components/constrained_window/constrained_window_views.h" |
| 9 #include "ui/views/widget/widget.h" |
| 10 |
| 11 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 12 #include "chrome/browser/ui/views/javascript_app_modal_dialog_views_x11.h" |
| 13 #endif |
| 14 |
| 15 // static |
| 16 NativeAppModalDialog* |
| 17 ChromeJavaScriptDialogManagerClient::CreateChromeNativeJavaScriptPrompt( |
| 18 JavaScriptAppModalDialog* dialog, |
| 19 gfx::NativeWindow parent_window) { |
| 20 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 21 JavaScriptAppModalDialogViews* d = |
| 22 new JavaScriptAppModalDialogViewsX11(dialog); |
| 23 #else |
| 24 JavaScriptAppModalDialogViews* d = |
| 25 new JavaScriptAppModalDialogViews(dialog); |
| 26 #endif |
| 27 CreateWindowModalDialogViews(d, parent_window); |
| 28 return d; |
| 29 } |
OLD | NEW |