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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 ShowDialogInMode(DETAIL_INPUT); | 1427 ShowDialogInMode(DETAIL_INPUT); |
1428 InvalidateLayout(); | 1428 InvalidateLayout(); |
1429 } | 1429 } |
1430 DCHECK(!sign_in_web_view_->visible()); | 1430 DCHECK(!sign_in_web_view_->visible()); |
1431 | 1431 |
1432 ContentsPreferredSizeChanged(); | 1432 ContentsPreferredSizeChanged(); |
1433 } | 1433 } |
1434 | 1434 |
1435 void AutofillDialogViews::ModelChanged() { | 1435 void AutofillDialogViews::ModelChanged() { |
1436 menu_runner_.reset(); | 1436 menu_runner_.reset(); |
| 1437 |
| 1438 for (DetailGroupMap::const_iterator iter = detail_groups_.begin(); |
| 1439 iter != detail_groups_.end(); ++iter) { |
| 1440 UpdateDetailsGroupState(iter->second); |
| 1441 } |
1437 } | 1442 } |
1438 | 1443 |
1439 void AutofillDialogViews::OnSignInResize(const gfx::Size& pref_size) { | 1444 void AutofillDialogViews::OnSignInResize(const gfx::Size& pref_size) { |
1440 sign_in_web_view_->SetPreferredSize(pref_size); | 1445 sign_in_web_view_->SetPreferredSize(pref_size); |
1441 ContentsPreferredSizeChanged(); | 1446 ContentsPreferredSizeChanged(); |
1442 } | 1447 } |
1443 | 1448 |
1444 void AutofillDialogViews::ValidateSection(DialogSection section) { | 1449 void AutofillDialogViews::ValidateSection(DialogSection section) { |
1445 ValidateGroup(*GroupForSection(section), VALIDATE_EDIT); | 1450 ValidateGroup(*GroupForSection(section), VALIDATE_EDIT); |
1446 } | 1451 } |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2447 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 2452 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
2448 : section(section), | 2453 : section(section), |
2449 container(NULL), | 2454 container(NULL), |
2450 manual_input(NULL), | 2455 manual_input(NULL), |
2451 suggested_info(NULL), | 2456 suggested_info(NULL), |
2452 suggested_button(NULL) {} | 2457 suggested_button(NULL) {} |
2453 | 2458 |
2454 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 2459 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
2455 | 2460 |
2456 } // namespace autofill | 2461 } // namespace autofill |
OLD | NEW |