| 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/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 // Gets a pointer to the DetailsGroup that's associated with the given section | 445 // Gets a pointer to the DetailsGroup that's associated with the given section |
| 446 // of the dialog. | 446 // of the dialog. |
| 447 DetailsGroup* GroupForSection(DialogSection section); | 447 DetailsGroup* GroupForSection(DialogSection section); |
| 448 | 448 |
| 449 // Gets a pointer to the DetailsGroup that's associated with a given |view|. | 449 // Gets a pointer to the DetailsGroup that's associated with a given |view|. |
| 450 // Returns NULL if no DetailsGroup was found. | 450 // Returns NULL if no DetailsGroup was found. |
| 451 DetailsGroup* GroupForView(views::View* view); | 451 DetailsGroup* GroupForView(views::View* view); |
| 452 | 452 |
| 453 // Checks all manual inputs in |group| for validity. Decorates the invalid | 453 // Checks all manual inputs in |group| for validity. Decorates the invalid |
| 454 // ones and returns true if all were valid. | 454 // ones and returns true if all were valid. |
| 455 bool ValidateGroup(DetailsGroup* group, | 455 bool ValidateGroup(const DetailsGroup& group, |
| 456 AutofillDialogController::ValidationType type); | 456 AutofillDialogController::ValidationType type); |
| 457 | 457 |
| 458 // Checks all manual inputs in the form for validity. Decorates the invalid | 458 // Checks all manual inputs in the form for validity. Decorates the invalid |
| 459 // ones and returns true if all were valid. | 459 // ones and returns true if all were valid. |
| 460 bool ValidateForm(); | 460 bool ValidateForm(); |
| 461 | 461 |
| 462 // When an input textfield is edited (its contents change) or activated | 462 // When an input textfield is edited (its contents change) or activated |
| 463 // (clicked while focused), this function will inform the controller that it's | 463 // (clicked while focused), this function will inform the controller that it's |
| 464 // time to show a suggestion popup and possibly reset the validity state of | 464 // time to show a suggestion popup and possibly reset the validity state of |
| 465 // the input. | 465 // the input. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 views::FocusManager* focus_manager_; | 542 views::FocusManager* focus_manager_; |
| 543 | 543 |
| 544 ScopedObserver<views::Widget, AutofillDialogViews> observer_; | 544 ScopedObserver<views::Widget, AutofillDialogViews> observer_; |
| 545 | 545 |
| 546 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 546 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
| 547 }; | 547 }; |
| 548 | 548 |
| 549 } // namespace autofill | 549 } // namespace autofill |
| 550 | 550 |
| 551 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 551 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| OLD | NEW |