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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/autofill/wallet/wallet_service_url.h" | 10 #include "chrome/browser/autofill/wallet/wallet_service_url.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 DCHECK(!window_); | 273 DCHECK(!window_); |
274 } | 274 } |
275 | 275 |
276 void AutofillDialogViews::Show() { | 276 void AutofillDialogViews::Show() { |
277 InitChildViews(); | 277 InitChildViews(); |
278 UpdateNotificationArea(); | 278 UpdateNotificationArea(); |
279 | 279 |
280 // Ownership of |contents_| is handed off by this call. The | 280 // Ownership of |contents_| is handed off by this call. The |
281 // WebContentsModalDialog will take care of deleting itself after calling | 281 // WebContentsModalDialog will take care of deleting itself after calling |
282 // DeleteDelegate(). | 282 // DeleteDelegate(). |
283 window_ = new ConstrainedWindowViews(controller_->web_contents(), this); | 283 window_ = ConstrainedWindowViews::Create(controller_->web_contents(), this); |
284 focus_manager_ = window_->GetFocusManager(); | 284 focus_manager_ = window_->GetFocusManager(); |
285 focus_manager_->AddFocusChangeListener(this); | 285 focus_manager_->AddFocusChangeListener(this); |
286 } | 286 } |
287 | 287 |
288 void AutofillDialogViews::UpdateSection(DialogSection section) { | 288 void AutofillDialogViews::UpdateSection(DialogSection section) { |
289 const DetailInputs& updated_inputs = | 289 const DetailInputs& updated_inputs = |
290 controller_->RequestedFieldsForSection(section); | 290 controller_->RequestedFieldsForSection(section); |
291 DetailsGroup* group = GroupForSection(section); | 291 DetailsGroup* group = GroupForSection(section); |
292 | 292 |
293 for (DetailInputs::const_iterator iter = updated_inputs.begin(); | 293 for (DetailInputs::const_iterator iter = updated_inputs.begin(); |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 786 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
787 : section(section), | 787 : section(section), |
788 container(NULL), | 788 container(NULL), |
789 manual_input(NULL), | 789 manual_input(NULL), |
790 suggested_info(NULL), | 790 suggested_info(NULL), |
791 suggested_button(NULL) {} | 791 suggested_button(NULL) {} |
792 | 792 |
793 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 793 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
794 | 794 |
795 } // namespace autofill | 795 } // namespace autofill |
OLD | NEW |