| 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_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 bool InputIsEditable(const DetailInput& input, DialogSection section) const; | 405 bool InputIsEditable(const DetailInput& input, DialogSection section) const; |
| 406 | 406 |
| 407 // Whether all of the input fields currently showing in the dialog have valid | 407 // Whether all of the input fields currently showing in the dialog have valid |
| 408 // contents. | 408 // contents. |
| 409 bool AllSectionsAreValid() const; | 409 bool AllSectionsAreValid() const; |
| 410 | 410 |
| 411 // Whether all of the input fields currently showing in the given |section| of | 411 // Whether all of the input fields currently showing in the given |section| of |
| 412 // the dialog have valid contents. | 412 // the dialog have valid contents. |
| 413 bool SectionIsValid(DialogSection section) const; | 413 bool SectionIsValid(DialogSection section) const; |
| 414 | 414 |
| 415 // Whether the currently active CC expiration date is valid. |
| 416 bool IsCCExpirationValid(const base::string16& year, |
| 417 const base::string16& month) const; |
| 418 |
| 415 // Returns true if |key| refers to a suggestion, as opposed to some control | 419 // Returns true if |key| refers to a suggestion, as opposed to some control |
| 416 // menu item. | 420 // menu item. |
| 417 bool IsASuggestionItemKey(const std::string& key); | 421 bool IsASuggestionItemKey(const std::string& key); |
| 418 | 422 |
| 419 // Whether the billing section should be used to fill in the shipping details. | 423 // Whether the billing section should be used to fill in the shipping details. |
| 420 bool ShouldUseBillingForShipping(); | 424 bool ShouldUseBillingForShipping(); |
| 421 | 425 |
| 422 // Whether the user wishes to save information locally to Autofill. | 426 // Whether the user wishes to save information locally to Autofill. |
| 423 bool ShouldSaveDetailsLocally(); | 427 bool ShouldSaveDetailsLocally(); |
| 424 | 428 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 | 633 |
| 630 // Whether the latency to display to the UI was logged to UMA yet. | 634 // Whether the latency to display to the UI was logged to UMA yet. |
| 631 bool was_ui_latency_logged_; | 635 bool was_ui_latency_logged_; |
| 632 | 636 |
| 633 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 637 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 634 }; | 638 }; |
| 635 | 639 |
| 636 } // namespace autofill | 640 } // namespace autofill |
| 637 | 641 |
| 638 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 642 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |