| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/constrained_window_views.h" | |
| 6 #include "chrome/grit/generated_resources.h" | 5 #include "chrome/grit/generated_resources.h" |
| 6 #include "components/constrained_window/constrained_window_views.h" |
| 7 #include "components/pdf/browser/pdf_web_contents_helper_client.h" | 7 #include "components/pdf/browser/pdf_web_contents_helper_client.h" |
| 8 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
| 9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
| 10 #include "ui/views/controls/message_box_view.h" | 10 #include "ui/views/controls/message_box_view.h" |
| 11 #include "ui/views/controls/textfield/textfield.h" | 11 #include "ui/views/controls/textfield/textfield.h" |
| 12 #include "ui/views/layout/layout_constants.h" | 12 #include "ui/views/layout/layout_constants.h" |
| 13 #include "ui/views/widget/widget.h" | 13 #include "ui/views/widget/widget.h" |
| 14 #include "ui/views/window/dialog_delegate.h" | 14 #include "ui/views/window/dialog_delegate.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 return ui::MODAL_TYPE_CHILD; | 124 return ui::MODAL_TYPE_CHILD; |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace | 127 } // namespace |
| 128 | 128 |
| 129 void ShowPDFPasswordDialog(content::WebContents* web_contents, | 129 void ShowPDFPasswordDialog(content::WebContents* web_contents, |
| 130 const base::string16& prompt, | 130 const base::string16& prompt, |
| 131 const pdf::PasswordDialogClosedCallback& callback) { | 131 const pdf::PasswordDialogClosedCallback& callback) { |
| 132 new PDFPasswordDialogViews(web_contents, prompt, callback); | 132 new PDFPasswordDialogViews(web_contents, prompt, callback); |
| 133 } | 133 } |
| OLD | NEW |