| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 virtual bool ShouldDisableSignInLink() const OVERRIDE; | 112 virtual bool ShouldDisableSignInLink() const OVERRIDE; |
| 113 virtual bool ShouldShowSpinner() const OVERRIDE; | 113 virtual bool ShouldShowSpinner() const OVERRIDE; |
| 114 virtual bool ShouldOfferToSaveInChrome() const OVERRIDE; | 114 virtual bool ShouldOfferToSaveInChrome() const OVERRIDE; |
| 115 virtual bool ShouldSaveInChrome() const OVERRIDE; | 115 virtual bool ShouldSaveInChrome() const OVERRIDE; |
| 116 virtual ui::MenuModel* MenuModelForAccountChooser() OVERRIDE; | 116 virtual ui::MenuModel* MenuModelForAccountChooser() OVERRIDE; |
| 117 virtual gfx::Image AccountChooserImage() OVERRIDE; | 117 virtual gfx::Image AccountChooserImage() OVERRIDE; |
| 118 virtual gfx::Image ButtonStripImage() const OVERRIDE; | 118 virtual gfx::Image ButtonStripImage() const OVERRIDE; |
| 119 virtual int GetDialogButtons() const OVERRIDE; | 119 virtual int GetDialogButtons() const OVERRIDE; |
| 120 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; | 120 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; |
| 121 virtual DialogOverlayState GetDialogOverlay() const OVERRIDE; | 121 virtual DialogOverlayState GetDialogOverlay() const OVERRIDE; |
| 122 virtual const std::vector<ui::Range>& LegalDocumentLinks() OVERRIDE; | 122 virtual const std::vector<gfx::Range>& LegalDocumentLinks() OVERRIDE; |
| 123 virtual bool SectionIsActive(DialogSection section) const OVERRIDE; | 123 virtual bool SectionIsActive(DialogSection section) const OVERRIDE; |
| 124 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) | 124 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) |
| 125 const OVERRIDE; | 125 const OVERRIDE; |
| 126 virtual ui::ComboboxModel* ComboboxModelForAutofillType( | 126 virtual ui::ComboboxModel* ComboboxModelForAutofillType( |
| 127 ServerFieldType type) OVERRIDE; | 127 ServerFieldType type) OVERRIDE; |
| 128 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; | 128 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; |
| 129 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; | 129 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; |
| 130 virtual SuggestionState SuggestionStateForSection( | 130 virtual SuggestionState SuggestionStateForSection( |
| 131 DialogSection section) OVERRIDE; | 131 DialogSection section) OVERRIDE; |
| 132 virtual void EditClickedForSection(DialogSection section) OVERRIDE; | 132 virtual void EditClickedForSection(DialogSection section) OVERRIDE; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 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 FocusMoved() OVERRIDE; | 150 virtual void FocusMoved() OVERRIDE; |
| 151 virtual gfx::Image SplashPageImage() const OVERRIDE; | 151 virtual gfx::Image SplashPageImage() const OVERRIDE; |
| 152 virtual void ViewClosed() OVERRIDE; | 152 virtual void ViewClosed() OVERRIDE; |
| 153 virtual std::vector<DialogNotification> CurrentNotifications() OVERRIDE; | 153 virtual std::vector<DialogNotification> CurrentNotifications() OVERRIDE; |
| 154 virtual void SignInLinkClicked() OVERRIDE; | 154 virtual void SignInLinkClicked() OVERRIDE; |
| 155 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, | 155 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, |
| 156 bool checked) OVERRIDE; | 156 bool checked) OVERRIDE; |
| 157 virtual void LegalDocumentLinkClicked(const ui::Range& range) OVERRIDE; | 157 virtual void LegalDocumentLinkClicked(const gfx::Range& range) OVERRIDE; |
| 158 virtual bool OnCancel() OVERRIDE; | 158 virtual bool OnCancel() OVERRIDE; |
| 159 virtual bool OnAccept() OVERRIDE; | 159 virtual bool OnAccept() OVERRIDE; |
| 160 virtual Profile* profile() OVERRIDE; | 160 virtual Profile* profile() OVERRIDE; |
| 161 virtual content::WebContents* GetWebContents() OVERRIDE; | 161 virtual content::WebContents* GetWebContents() OVERRIDE; |
| 162 | 162 |
| 163 // AutofillPopupDelegate implementation. | 163 // AutofillPopupDelegate implementation. |
| 164 virtual void OnPopupShown( | 164 virtual void OnPopupShown( |
| 165 content::RenderWidgetHost::KeyPressEventCallback* callback) OVERRIDE; | 165 content::RenderWidgetHost::KeyPressEventCallback* callback) OVERRIDE; |
| 166 virtual void OnPopupHidden( | 166 virtual void OnPopupHidden( |
| 167 content::RenderWidgetHost::KeyPressEventCallback* callback) OVERRIDE; | 167 content::RenderWidgetHost::KeyPressEventCallback* callback) OVERRIDE; |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 // When the Wallet items were last fetched. | 603 // When the Wallet items were last fetched. |
| 604 base::TimeTicks last_wallet_items_fetch_timestamp_; | 604 base::TimeTicks last_wallet_items_fetch_timestamp_; |
| 605 | 605 |
| 606 // Local machine signals to pass along on each request to trigger (or | 606 // Local machine signals to pass along on each request to trigger (or |
| 607 // discourage) risk challenges; sent if the user is up to date on legal docs. | 607 // discourage) risk challenges; sent if the user is up to date on legal docs. |
| 608 std::string risk_data_; | 608 std::string risk_data_; |
| 609 | 609 |
| 610 // The text to display when the user is accepting new terms of service, etc. | 610 // The text to display when the user is accepting new terms of service, etc. |
| 611 string16 legal_documents_text_; | 611 string16 legal_documents_text_; |
| 612 // The ranges within |legal_documents_text_| to linkify. | 612 // The ranges within |legal_documents_text_| to linkify. |
| 613 std::vector<ui::Range> legal_document_link_ranges_; | 613 std::vector<gfx::Range> legal_document_link_ranges_; |
| 614 | 614 |
| 615 // The instrument and address IDs from the Online Wallet server to be used | 615 // The instrument and address IDs from the Online Wallet server to be used |
| 616 // when getting a full wallet. | 616 // when getting a full wallet. |
| 617 std::string active_instrument_id_; | 617 std::string active_instrument_id_; |
| 618 std::string active_address_id_; | 618 std::string active_address_id_; |
| 619 | 619 |
| 620 // The fields for billing and shipping which the page has actually requested. | 620 // The fields for billing and shipping which the page has actually requested. |
| 621 DetailInputs requested_email_fields_; | 621 DetailInputs requested_email_fields_; |
| 622 DetailInputs requested_cc_fields_; | 622 DetailInputs requested_cc_fields_; |
| 623 DetailInputs requested_billing_fields_; | 623 DetailInputs requested_billing_fields_; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 // The timer that delays enabling submit button for a short period of time on | 712 // The timer that delays enabling submit button for a short period of time on |
| 713 // startup. | 713 // startup. |
| 714 base::OneShotTimer<AutofillDialogControllerImpl> submit_button_delay_timer_; | 714 base::OneShotTimer<AutofillDialogControllerImpl> submit_button_delay_timer_; |
| 715 | 715 |
| 716 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 716 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 717 }; | 717 }; |
| 718 | 718 |
| 719 } // namespace autofill | 719 } // namespace autofill |
| 720 | 720 |
| 721 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 721 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |