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/autofill/autofill_dialog_views.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
9 #include "chrome/browser/ui/views/constrained_window_views.h" | 9 #include "chrome/browser/ui/views/constrained_window_views.h" |
10 #include "ui/views/border.h" | 10 #include "ui/views/border.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 DCHECK(!window_); | 84 DCHECK(!window_); |
85 } | 85 } |
86 | 86 |
87 void AutofillDialogViews::Show() { | 87 void AutofillDialogViews::Show() { |
88 InitChildViews(); | 88 InitChildViews(); |
89 | 89 |
90 // Ownership of |contents_| is handed off by this call. The ConstrainedWindow | 90 // Ownership of |contents_| is handed off by this call. The ConstrainedWindow |
91 // will take care of deleting itself after calling DeleteDelegate(). | 91 // will take care of deleting itself after calling DeleteDelegate(). |
92 window_ = new ConstrainedWindowViews( | 92 window_ = new ConstrainedWindowViews( |
93 controller_->web_contents(), this, | 93 controller_->web_contents(), this, |
94 true, ConstrainedWindowViews::DEFAULT_INSETS); | 94 true, ConstrainedWindowViews::FRAME_LAYOUT_FULL); |
95 } | 95 } |
96 | 96 |
97 int AutofillDialogViews::GetSuggestionSelection(DialogSection section) { | 97 int AutofillDialogViews::GetSuggestionSelection(DialogSection section) { |
98 return GroupForSection(section)->suggested_input->selected_index(); | 98 return GroupForSection(section)->suggested_input->selected_index(); |
99 } | 99 } |
100 | 100 |
101 void AutofillDialogViews::GetUserInput(DialogSection section, | 101 void AutofillDialogViews::GetUserInput(DialogSection section, |
102 DetailOutputMap* output) { | 102 DetailOutputMap* output) { |
103 DetailsGroup* group = GroupForSection(section); | 103 DetailsGroup* group = GroupForSection(section); |
104 for (TextfieldMap::iterator it = group->textfields.begin(); | 104 for (TextfieldMap::iterator it = group->textfields.begin(); |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 } | 365 } |
366 | 366 |
367 AutofillDialogViews::DetailsGroup::DetailsGroup() | 367 AutofillDialogViews::DetailsGroup::DetailsGroup() |
368 : container(NULL), | 368 : container(NULL), |
369 suggested_input(NULL), | 369 suggested_input(NULL), |
370 manual_input(NULL) {} | 370 manual_input(NULL) {} |
371 | 371 |
372 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 372 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
373 | 373 |
374 } // namespace autofill | 374 } // namespace autofill |
OLD | NEW |