Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 15961007: Highlight fields we know to be invalid but have no way of locally checking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
index bcb35ab85edc4fe8f13d764e98bfbd4145c36b36..69e272d2230b34257e6cf68d8b1263335e7710ad 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -28,6 +28,7 @@
#include "components/autofill/browser/personal_data_manager_observer.h"
#include "components/autofill/browser/wallet/wallet_client.h"
#include "components/autofill/browser/wallet/wallet_client_delegate.h"
+#include "components/autofill/browser/wallet/wallet_items.h"
#include "components/autofill/browser/wallet/wallet_signin_helper_delegate.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -321,6 +322,12 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
// data or Wallet data, depending on whether Wallet is currently enabled.
scoped_ptr<DataModelWrapper> CreateWrapper(DialogSection section);
+ // Helper to return the current Wallet instrument or address. If the dialog
+ // isn't using Wallet or the user is adding a new instrument or address, NULL
+ // will be returned.
+ const wallet::WalletItems::MaskedInstrument* ActiveInstrument() const;
+ const wallet::Address* ActiveShippingAddress() const;
+
// Fills in |section|-related fields in |output_| according to the state of
// |view_|.
void FillOutputForSection(DialogSection section);
@@ -418,9 +425,13 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
// the dialog have valid contents.
bool SectionIsValid(DialogSection section) const;
+ // Whether the currently active credit card expiration date is valid.
+ bool IsCreditCardExpirationValid(const base::string16& year,
+ const base::string16& month) const;
+
// Returns true if |key| refers to a suggestion, as opposed to some control
// menu item.
- bool IsASuggestionItemKey(const std::string& key);
+ bool IsASuggestionItemKey(const std::string& key) const;
// Whether the billing section should be used to fill in the shipping details.
bool ShouldUseBillingForShipping();
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller.h ('k') | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698