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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 // Checks all manual inputs in the form for validity. Decorates the invalid | 530 // Checks all manual inputs in the form for validity. Decorates the invalid |
531 // ones and returns true if all were valid. | 531 // ones and returns true if all were valid. |
532 bool ValidateForm(); | 532 bool ValidateForm(); |
533 | 533 |
534 // When an input textfield is edited (its contents change) or activated | 534 // When an input textfield is edited (its contents change) or activated |
535 // (clicked while focused), this function will inform the controller that it's | 535 // (clicked while focused), this function will inform the controller that it's |
536 // time to show a suggestion popup and possibly reset the validity state of | 536 // time to show a suggestion popup and possibly reset the validity state of |
537 // the input. | 537 // the input. |
538 void TextfieldEditedOrActivated(views::Textfield* textfield, bool was_edit); | 538 void TextfieldEditedOrActivated(views::Textfield* textfield, bool was_edit); |
539 | 539 |
540 // Updates the [X] Save in Chrome checkbox in the button strip. | 540 // Updates the views in the button strip. |
541 void UpdateSaveInChromeCheckbox(); | 541 void UpdateButtonStripExtraView(); |
542 | 542 |
543 // Call this when the size of anything in |contents_| might've changed. | 543 // Call this when the size of anything in |contents_| might've changed. |
544 void ContentsPreferredSizeChanged(); | 544 void ContentsPreferredSizeChanged(); |
545 | 545 |
546 // Gets the textfield view that is shown for the given DetailInput model, or | 546 // Gets the textfield view that is shown for the given DetailInput model, or |
547 // NULL. | 547 // NULL. |
548 views::Textfield* TextfieldForInput(const DetailInput& input); | 548 views::Textfield* TextfieldForInput(const DetailInput& input); |
549 | 549 |
550 // Gets the combobox view that is shown for the given DetailInput model, or | 550 // Gets the combobox view that is shown for the given DetailInput model, or |
551 // NULL. | 551 // NULL. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 // The view that completely overlays the dialog (used for the splash page). | 589 // The view that completely overlays the dialog (used for the splash page). |
590 OverlayView* overlay_view_; | 590 OverlayView* overlay_view_; |
591 | 591 |
592 // The "Extra view" is on the same row as the dialog buttons. | 592 // The "Extra view" is on the same row as the dialog buttons. |
593 views::View* button_strip_extra_view_; | 593 views::View* button_strip_extra_view_; |
594 | 594 |
595 // This checkbox controls whether new details are saved to the Autofill | 595 // This checkbox controls whether new details are saved to the Autofill |
596 // database. It lives in |extra_view_|. | 596 // database. It lives in |extra_view_|. |
597 views::Checkbox* save_in_chrome_checkbox_; | 597 views::Checkbox* save_in_chrome_checkbox_; |
598 | 598 |
| 599 // Used to display an image in the button strip extra view. |
| 600 views::ImageView* button_strip_image_; |
| 601 |
599 // View that aren't in the hierarchy but are owned by |this|. Currently | 602 // View that aren't in the hierarchy but are owned by |this|. Currently |
600 // just holds the (hidden) country comboboxes. | 603 // just holds the (hidden) country comboboxes. |
601 ScopedVector<views::View> other_owned_views_; | 604 ScopedVector<views::View> other_owned_views_; |
602 | 605 |
603 // View to host Autocheckout steps. | 606 // View to host Autocheckout steps. |
604 AutocheckoutStepsArea* autocheckout_steps_area_; | 607 AutocheckoutStepsArea* autocheckout_steps_area_; |
605 | 608 |
606 // View to host |autocheckout_progress_bar_| and its label. | 609 // View to host |autocheckout_progress_bar_| and its label. |
607 views::View* autocheckout_progress_bar_view_; | 610 views::View* autocheckout_progress_bar_view_; |
608 | 611 |
(...skipping 20 matching lines...) Expand all Loading... |
629 | 632 |
630 // Delegate for the sign-in dialog's webview. | 633 // Delegate for the sign-in dialog's webview. |
631 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; | 634 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; |
632 | 635 |
633 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 636 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
634 }; | 637 }; |
635 | 638 |
636 } // namespace autofill | 639 } // namespace autofill |
637 | 640 |
638 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 641 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
OLD | NEW |