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/views/crypto_module_password_dialog_view.h" | 5 #include "chrome/browser/ui/views/crypto_module_password_dialog_view.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/grit/generated_resources.h" | 8 #include "chrome/grit/generated_resources.h" |
9 #include "grit/components_strings.h" | 9 #include "components/strings/grit/components_strings.h" |
10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
11 #include "ui/events/event.h" | 11 #include "ui/events/event.h" |
12 #include "ui/views/controls/label.h" | 12 #include "ui/views/controls/label.h" |
13 #include "ui/views/controls/textfield/textfield.h" | 13 #include "ui/views/controls/textfield/textfield.h" |
14 #include "ui/views/layout/grid_layout.h" | 14 #include "ui/views/layout/grid_layout.h" |
15 #include "ui/views/layout/layout_constants.h" | 15 #include "ui/views/layout/layout_constants.h" |
16 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
17 | 17 |
18 namespace chrome { | 18 namespace chrome { |
19 | 19 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 CryptoModulePasswordReason reason, | 157 CryptoModulePasswordReason reason, |
158 const std::string& hostname, | 158 const std::string& hostname, |
159 gfx::NativeWindow parent, | 159 gfx::NativeWindow parent, |
160 const CryptoModulePasswordCallback& callback) { | 160 const CryptoModulePasswordCallback& callback) { |
161 CryptoModulePasswordDialogView* dialog = | 161 CryptoModulePasswordDialogView* dialog = |
162 new CryptoModulePasswordDialogView(slot_name, reason, hostname, callback); | 162 new CryptoModulePasswordDialogView(slot_name, reason, hostname, callback); |
163 views::DialogDelegate::CreateDialogWidget(dialog, NULL, parent)->Show(); | 163 views::DialogDelegate::CreateDialogWidget(dialog, NULL, parent)->Show(); |
164 } | 164 } |
165 | 165 |
166 } // namespace chrome | 166 } // namespace chrome |
OLD | NEW |