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 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 views::Combobox* ComboboxForInput(const DetailInput& input); | 565 views::Combobox* ComboboxForInput(const DetailInput& input); |
566 | 566 |
567 // Called when the details container changes in size or position. | 567 // Called when the details container changes in size or position. |
568 void DetailsContainerBoundsChanged(); | 568 void DetailsContainerBoundsChanged(); |
569 | 569 |
570 // Returns true when the dialog is showing the sign in webview. Also returns | 570 // Returns true when the dialog is showing the sign in webview. Also returns |
571 // true if showing the loading indicator (spinner) after having gone through | 571 // true if showing the loading indicator (spinner) after having gone through |
572 // sign in. | 572 // sign in. |
573 bool SignInWebviewDictatesHeight() const; | 573 bool SignInWebviewDictatesHeight() const; |
574 | 574 |
| 575 // Sets the icons in |section| according to the field values. For example, |
| 576 // sets the credit card and CVC icons according to the credit card number. |
| 577 void SetIconsForSection(DialogSection section); |
| 578 |
575 // The delegate that drives this view. Weak pointer, always non-NULL. | 579 // The delegate that drives this view. Weak pointer, always non-NULL. |
576 AutofillDialogViewDelegate* const delegate_; | 580 AutofillDialogViewDelegate* const delegate_; |
577 | 581 |
578 // The preferred size of the view, cached to avoid needless recomputation. | 582 // The preferred size of the view, cached to avoid needless recomputation. |
579 gfx::Size preferred_size_; | 583 gfx::Size preferred_size_; |
580 | 584 |
581 // The current number of unmatched calls to UpdatesStarted. | 585 // The current number of unmatched calls to UpdatesStarted. |
582 int updates_scope_; | 586 int updates_scope_; |
583 | 587 |
584 // True when there's been a call to ContentsPreferredSizeChanged() suppressed | 588 // True when there's been a call to ContentsPreferredSizeChanged() suppressed |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 | 661 |
658 // Delegate for the sign-in dialog's webview. | 662 // Delegate for the sign-in dialog's webview. |
659 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; | 663 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; |
660 | 664 |
661 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 665 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
662 }; | 666 }; |
663 | 667 |
664 } // namespace autofill | 668 } // namespace autofill |
665 | 669 |
666 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 670 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
OLD | NEW |