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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 } | 501 } |
502 | 502 |
503 AutofillDialogViews::AccountChooser::~AccountChooser() {} | 503 AutofillDialogViews::AccountChooser::~AccountChooser() {} |
504 | 504 |
505 void AutofillDialogViews::AccountChooser::Update() { | 505 void AutofillDialogViews::AccountChooser::Update() { |
506 SetVisible(delegate_->ShouldShowAccountChooser()); | 506 SetVisible(delegate_->ShouldShowAccountChooser()); |
507 | 507 |
508 gfx::Image icon = delegate_->AccountChooserImage(); | 508 gfx::Image icon = delegate_->AccountChooserImage(); |
509 image_->SetImage(icon.AsImageSkia()); | 509 image_->SetImage(icon.AsImageSkia()); |
510 menu_button_->SetText(delegate_->AccountChooserText()); | 510 menu_button_->SetText(delegate_->AccountChooserText()); |
511 menu_button_->set_min_size(gfx::Size()); | 511 menu_button_->SetMinSize(gfx::Size()); |
512 | 512 |
513 bool show_link = !delegate_->MenuModelForAccountChooser(); | 513 bool show_link = !delegate_->MenuModelForAccountChooser(); |
514 menu_button_->SetVisible(!show_link); | 514 menu_button_->SetVisible(!show_link); |
515 link_->SetText(delegate_->SignInLinkText()); | 515 link_->SetText(delegate_->SignInLinkText()); |
516 link_->SetVisible(show_link); | 516 link_->SetVisible(show_link); |
517 | 517 |
518 menu_runner_.reset(); | 518 menu_runner_.reset(); |
519 | 519 |
520 PreferredSizeChanged(); | 520 PreferredSizeChanged(); |
521 } | 521 } |
(...skipping 1983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2505 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 2505 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
2506 : section(section), | 2506 : section(section), |
2507 container(NULL), | 2507 container(NULL), |
2508 manual_input(NULL), | 2508 manual_input(NULL), |
2509 suggested_info(NULL), | 2509 suggested_info(NULL), |
2510 suggested_button(NULL) {} | 2510 suggested_button(NULL) {} |
2511 | 2511 |
2512 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 2512 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
2513 | 2513 |
2514 } // namespace autofill | 2514 } // namespace autofill |
OLD | NEW |