OLD | NEW |
1 // Copyright (c) 2010 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/views/js_modal_dialog_views.h" | 5 #include "chrome/browser/ui/views/js_modal_dialog_views.h" |
6 | 6 |
7 #include "app/keyboard_codes.h" | 7 #include "app/keyboard_codes.h" |
8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
9 #include "app/message_box_flags.h" | 9 #include "app/message_box_flags.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" | 11 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" |
12 #include "chrome/browser/views/window.h" | 12 #include "chrome/browser/ui/views/window.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "views/controls/message_box_view.h" | 14 #include "views/controls/message_box_view.h" |
15 #include "views/window/window.h" | 15 #include "views/window/window.h" |
16 | 16 |
17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
18 // JSModalDialogViews, public: | 18 // JSModalDialogViews, public: |
19 | 19 |
20 JSModalDialogViews::JSModalDialogViews( | 20 JSModalDialogViews::JSModalDialogViews( |
21 JavaScriptAppModalDialog* parent) | 21 JavaScriptAppModalDialog* parent) |
22 : parent_(parent), | 22 : parent_(parent), |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 // static | 149 // static |
150 NativeAppModalDialog* NativeAppModalDialog::CreateNativeJavaScriptPrompt( | 150 NativeAppModalDialog* NativeAppModalDialog::CreateNativeJavaScriptPrompt( |
151 JavaScriptAppModalDialog* dialog, | 151 JavaScriptAppModalDialog* dialog, |
152 gfx::NativeWindow parent_window) { | 152 gfx::NativeWindow parent_window) { |
153 JSModalDialogViews* d = new JSModalDialogViews(dialog); | 153 JSModalDialogViews* d = new JSModalDialogViews(dialog); |
154 | 154 |
155 browser::CreateViewsWindow(parent_window, gfx::Rect(), d); | 155 browser::CreateViewsWindow(parent_window, gfx::Rect(), d); |
156 return d; | 156 return d; |
157 } | 157 } |
OLD | NEW |