| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/views/js_modal_dialog_views.h" | 5 #include "chrome/browser/ui/views/js_modal_dialog_views.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" | 8 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" |
| 9 #include "chrome/browser/ui/dialog_style.h" |
| 9 #include "chrome/browser/ui/views/window.h" | 10 #include "chrome/browser/ui/views/window.h" |
| 10 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
| 11 #include "ui/base/keycodes/keyboard_codes.h" | 12 #include "ui/base/keycodes/keyboard_codes.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/base/message_box_flags.h" | 14 #include "ui/base/message_box_flags.h" |
| 14 #include "views/controls/message_box_view.h" | 15 #include "views/controls/message_box_view.h" |
| 15 #include "views/controls/textfield/textfield.h" | 16 #include "views/controls/textfield/textfield.h" |
| 16 #include "views/widget/widget.h" | 17 #include "views/widget/widget.h" |
| 17 | 18 |
| 18 //////////////////////////////////////////////////////////////////////////////// | 19 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 160 |
| 160 //////////////////////////////////////////////////////////////////////////////// | 161 //////////////////////////////////////////////////////////////////////////////// |
| 161 // NativeAppModalDialog, public: | 162 // NativeAppModalDialog, public: |
| 162 | 163 |
| 163 // static | 164 // static |
| 164 NativeAppModalDialog* NativeAppModalDialog::CreateNativeJavaScriptPrompt( | 165 NativeAppModalDialog* NativeAppModalDialog::CreateNativeJavaScriptPrompt( |
| 165 JavaScriptAppModalDialog* dialog, | 166 JavaScriptAppModalDialog* dialog, |
| 166 gfx::NativeWindow parent_window) { | 167 gfx::NativeWindow parent_window) { |
| 167 JSModalDialogViews* d = new JSModalDialogViews(dialog); | 168 JSModalDialogViews* d = new JSModalDialogViews(dialog); |
| 168 | 169 |
| 169 browser::CreateViewsWindow(parent_window, d); | 170 browser::CreateViewsWindow(parent_window, d, STYLE_GENERIC); |
| 170 return d; | 171 return d; |
| 171 } | 172 } |
| OLD | NEW |