| 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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 // the input is valid. | 491 // the input is valid. |
| 492 template<class T> | 492 template<class T> |
| 493 void SetValidityForInput(T* input, const string16& message); | 493 void SetValidityForInput(T* input, const string16& message); |
| 494 | 494 |
| 495 // Shows an error bubble pointing at |view| if |view| has a message in | 495 // Shows an error bubble pointing at |view| if |view| has a message in |
| 496 // |validity_map_|. | 496 // |validity_map_|. |
| 497 void ShowErrorBubbleForViewIfNecessary(views::View* view); | 497 void ShowErrorBubbleForViewIfNecessary(views::View* view); |
| 498 | 498 |
| 499 // Checks all manual inputs in |group| for validity. Decorates the invalid | 499 // Checks all manual inputs in |group| for validity. Decorates the invalid |
| 500 // ones and returns true if all were valid. | 500 // ones and returns true if all were valid. |
| 501 bool ValidateGroup(const DetailsGroup& group, | 501 bool ValidateGroup(const DetailsGroup& group, ValidationType type); |
| 502 AutofillDialogController::ValidationType type); | |
| 503 | 502 |
| 504 // Checks all manual inputs in the form for validity. Decorates the invalid | 503 // Checks all manual inputs in the form for validity. Decorates the invalid |
| 505 // ones and returns true if all were valid. | 504 // ones and returns true if all were valid. |
| 506 bool ValidateForm(); | 505 bool ValidateForm(); |
| 507 | 506 |
| 508 // When an input textfield is edited (its contents change) or activated | 507 // When an input textfield is edited (its contents change) or activated |
| 509 // (clicked while focused), this function will inform the controller that it's | 508 // (clicked while focused), this function will inform the controller that it's |
| 510 // time to show a suggestion popup and possibly reset the validity state of | 509 // time to show a suggestion popup and possibly reset the validity state of |
| 511 // the input. | 510 // the input. |
| 512 void TextfieldEditedOrActivated(views::Textfield* textfield, bool was_edit); | 511 void TextfieldEditedOrActivated(views::Textfield* textfield, bool was_edit); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 | 595 |
| 597 // Delegate for the sign-in dialog's webview. | 596 // Delegate for the sign-in dialog's webview. |
| 598 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; | 597 scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_; |
| 599 | 598 |
| 600 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 599 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
| 601 }; | 600 }; |
| 602 | 601 |
| 603 } // namespace autofill | 602 } // namespace autofill |
| 604 | 603 |
| 605 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 604 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| OLD | NEW |