Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: chrome/browser/ui/views/pdf_password_dialog.cc

Issue 658383003: Componentize Constrained Window Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698