| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 virtual ValidityMessages InputsAreValid( | 140 virtual ValidityMessages InputsAreValid( |
| 141 DialogSection section, const DetailOutputMap& inputs) OVERRIDE; | 141 DialogSection section, const DetailOutputMap& inputs) OVERRIDE; |
| 142 virtual void UserEditedOrActivatedInput(DialogSection section, | 142 virtual void UserEditedOrActivatedInput(DialogSection section, |
| 143 const DetailInput* input, | 143 const DetailInput* input, |
| 144 gfx::NativeView parent_view, | 144 gfx::NativeView parent_view, |
| 145 const gfx::Rect& content_bounds, | 145 const gfx::Rect& content_bounds, |
| 146 const string16& field_contents, | 146 const string16& field_contents, |
| 147 bool was_edit) OVERRIDE; | 147 bool was_edit) OVERRIDE; |
| 148 virtual bool HandleKeyPressEventInInput( | 148 virtual bool HandleKeyPressEventInInput( |
| 149 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 149 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 150 virtual void ComboboxItemSelected(ui::ComboboxModel* model, |
| 151 DialogSection section, |
| 152 int index) OVERRIDE; |
| 150 virtual void FocusMoved() OVERRIDE; | 153 virtual void FocusMoved() OVERRIDE; |
| 151 virtual bool ShouldShowErrorBubble() const OVERRIDE; | 154 virtual bool ShouldShowErrorBubble() const OVERRIDE; |
| 152 virtual void ViewClosed() OVERRIDE; | 155 virtual void ViewClosed() OVERRIDE; |
| 153 virtual std::vector<DialogNotification> CurrentNotifications() OVERRIDE; | 156 virtual std::vector<DialogNotification> CurrentNotifications() OVERRIDE; |
| 154 virtual void LinkClicked(const GURL& url) OVERRIDE; | 157 virtual void LinkClicked(const GURL& url) OVERRIDE; |
| 155 virtual void SignInLinkClicked() OVERRIDE; | 158 virtual void SignInLinkClicked() OVERRIDE; |
| 156 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, | 159 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, |
| 157 bool checked) OVERRIDE; | 160 bool checked) OVERRIDE; |
| 158 virtual void LegalDocumentLinkClicked(const gfx::Range& range) OVERRIDE; | 161 virtual void LegalDocumentLinkClicked(const gfx::Range& range) OVERRIDE; |
| 159 virtual bool OnCancel() OVERRIDE; | 162 virtual bool OnCancel() OVERRIDE; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 // Allows tests to inspect the state of the account chooser. | 313 // Allows tests to inspect the state of the account chooser. |
| 311 const AccountChooserModel& AccountChooserModelForTesting() const; | 314 const AccountChooserModel& AccountChooserModelForTesting() const; |
| 312 | 315 |
| 313 // Returns whether |url| matches the sign in continue URL. | 316 // Returns whether |url| matches the sign in continue URL. |
| 314 virtual bool IsSignInContinueUrl(const GURL& url) const; | 317 virtual bool IsSignInContinueUrl(const GURL& url) const; |
| 315 | 318 |
| 316 // Whether the user is known to be signed in. | 319 // Whether the user is known to be signed in. |
| 317 DialogSignedInState SignedInState() const; | 320 DialogSignedInState SignedInState() const; |
| 318 | 321 |
| 319 private: | 322 private: |
| 323 // Builds the set of inputs required for |country_code| in |section| and |
| 324 // updates the view if necessary. |
| 325 void BuildInputsForSection(DialogSection section, |
| 326 const std::string& country_code); |
| 327 |
| 320 // Whether or not the current request wants credit info back. | 328 // Whether or not the current request wants credit info back. |
| 321 bool RequestingCreditCardInfo() const; | 329 bool RequestingCreditCardInfo() const; |
| 322 | 330 |
| 323 // Initializes or updates |suggested_cc_| et al. | 331 // Initializes or updates |suggested_cc_| et al. |
| 324 void SuggestionsUpdated(); | 332 void SuggestionsUpdated(); |
| 325 | 333 |
| 326 // Starts fetching the wallet items from Online Wallet. | 334 // Starts fetching the wallet items from Online Wallet. |
| 327 void GetWalletItems(); | 335 void GetWalletItems(); |
| 328 | 336 |
| 329 // Stop showing sign in flow. | 337 // Stop showing sign in flow. |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 | 765 |
| 758 // A username string we display in the card scrambling/generated overlay. | 766 // A username string we display in the card scrambling/generated overlay. |
| 759 base::string16 submitted_cardholder_name_; | 767 base::string16 submitted_cardholder_name_; |
| 760 | 768 |
| 761 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 769 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 762 }; | 770 }; |
| 763 | 771 |
| 764 } // namespace autofill | 772 } // namespace autofill |
| 765 | 773 |
| 766 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 774 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |