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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 | 487 |
488 void AutofillDialogViews::ModelChanged() { | 488 void AutofillDialogViews::ModelChanged() { |
489 menu_runner_.reset(); | 489 menu_runner_.reset(); |
490 | 490 |
491 for (DetailGroupMap::iterator iter = detail_groups_.begin(); | 491 for (DetailGroupMap::iterator iter = detail_groups_.begin(); |
492 iter != detail_groups_.end(); ++iter) { | 492 iter != detail_groups_.end(); ++iter) { |
493 UpdateDetailsGroupState(iter->second); | 493 UpdateDetailsGroupState(iter->second); |
494 } | 494 } |
495 } | 495 } |
496 | 496 |
| 497 void AutofillDialogViews::SubmitForTesting() { |
| 498 if (Accept()) |
| 499 Hide(); |
| 500 } |
| 501 |
| 502 void AutofillDialogViews::CancelForTesting() { |
| 503 if (Cancel()) |
| 504 Hide(); |
| 505 } |
| 506 |
497 string16 AutofillDialogViews::GetWindowTitle() const { | 507 string16 AutofillDialogViews::GetWindowTitle() const { |
498 return controller_->DialogTitle(); | 508 return controller_->DialogTitle(); |
499 } | 509 } |
500 | 510 |
501 void AutofillDialogViews::WindowClosing() { | 511 void AutofillDialogViews::WindowClosing() { |
502 focus_manager_->RemoveFocusChangeListener(this); | 512 focus_manager_->RemoveFocusChangeListener(this); |
503 } | 513 } |
504 | 514 |
505 void AutofillDialogViews::DeleteDelegate() { | 515 void AutofillDialogViews::DeleteDelegate() { |
506 window_ = NULL; | 516 window_ = NULL; |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 1009 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
1000 : section(section), | 1010 : section(section), |
1001 container(NULL), | 1011 container(NULL), |
1002 manual_input(NULL), | 1012 manual_input(NULL), |
1003 suggested_info(NULL), | 1013 suggested_info(NULL), |
1004 suggested_button(NULL) {} | 1014 suggested_button(NULL) {} |
1005 | 1015 |
1006 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 1016 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
1007 | 1017 |
1008 } // namespace autofill | 1018 } // namespace autofill |
OLD | NEW |