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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
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/autofill/autofill_dialog_views.h" 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" 12 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
13 #include "chrome/browser/ui/views/constrained_window_views.h" 13 #include "chrome/browser/ui/views/constrained_window_views.h"
14 #include "chrome/browser/ui/web_contents_modal_dialog_manager.h"
15 #include "chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h"
16 #include "components/autofill/browser/autofill_type.h" 14 #include "components/autofill/browser/autofill_type.h"
17 #include "components/autofill/browser/wallet/wallet_service_url.h" 15 #include "components/autofill/browser/wallet/wallet_service_url.h"
16 #include "components/web_modal/web_contents_modal_dialog_manager.h"
17 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
18 #include "content/public/browser/native_web_keyboard_event.h" 18 #include "content/public/browser/native_web_keyboard_event.h"
19 #include "content/public/browser/navigation_controller.h" 19 #include "content/public/browser/navigation_controller.h"
20 #include "content/public/browser/web_contents.h" 20 #include "content/public/browser/web_contents.h"
21 #include "content/public/browser/web_contents_view.h" 21 #include "content/public/browser/web_contents_view.h"
22 #include "grit/theme_resources.h" 22 #include "grit/theme_resources.h"
23 #include "grit/ui_resources.h" 23 #include "grit/ui_resources.h"
24 #include "third_party/skia/include/core/SkColor.h" 24 #include "third_party/skia/include/core/SkColor.h"
25 #include "ui/base/l10n/l10n_util.h" 25 #include "ui/base/l10n/l10n_util.h"
26 #include "ui/base/models/combobox_model.h" 26 #include "ui/base/models/combobox_model.h"
27 #include "ui/base/models/menu_model.h" 27 #include "ui/base/models/menu_model.h"
(...skipping 13 matching lines...) Expand all
41 #include "ui/views/controls/styled_label.h" 41 #include "ui/views/controls/styled_label.h"
42 #include "ui/views/controls/textfield/textfield.h" 42 #include "ui/views/controls/textfield/textfield.h"
43 #include "ui/views/controls/webview/webview.h" 43 #include "ui/views/controls/webview/webview.h"
44 #include "ui/views/layout/box_layout.h" 44 #include "ui/views/layout/box_layout.h"
45 #include "ui/views/layout/fill_layout.h" 45 #include "ui/views/layout/fill_layout.h"
46 #include "ui/views/layout/grid_layout.h" 46 #include "ui/views/layout/grid_layout.h"
47 #include "ui/views/layout/layout_constants.h" 47 #include "ui/views/layout/layout_constants.h"
48 #include "ui/views/widget/widget.h" 48 #include "ui/views/widget/widget.h"
49 #include "ui/views/window/dialog_client_view.h" 49 #include "ui/views/window/dialog_client_view.h"
50 50
51 using web_modal::WebContentsModalDialogManager;
52
51 namespace autofill { 53 namespace autofill {
52 54
53 namespace { 55 namespace {
54 56
55 // The minimum useful height of the contents area of the dialog. 57 // The minimum useful height of the contents area of the dialog.
56 const int kMinimumContentsHeight = 100; 58 const int kMinimumContentsHeight = 100;
57 59
58 // Horizontal padding between text and other elements (in pixels). 60 // Horizontal padding between text and other elements (in pixels).
59 const int kAroundTextPadding = 4; 61 const int kAroundTextPadding = 4;
60 62
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1785 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 1787 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
1786 : section(section), 1788 : section(section),
1787 container(NULL), 1789 container(NULL),
1788 manual_input(NULL), 1790 manual_input(NULL),
1789 suggested_info(NULL), 1791 suggested_info(NULL),
1790 suggested_button(NULL) {} 1792 suggested_button(NULL) {}
1791 1793
1792 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 1794 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
1793 1795
1794 } // namespace autofill 1796 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/native_web_contents_modal_dialog_manager.h ('k') | chrome/browser/ui/views/collected_cookies_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698