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 17 matching lines...) Expand all Loading... |
28 #include "components/autofill/core/browser/autofill_metrics.h" | 28 #include "components/autofill/core/browser/autofill_metrics.h" |
29 #include "components/autofill/core/browser/autofill_popup_delegate.h" | 29 #include "components/autofill/core/browser/autofill_popup_delegate.h" |
30 #include "components/autofill/core/browser/field_types.h" | 30 #include "components/autofill/core/browser/field_types.h" |
31 #include "components/autofill/core/browser/form_structure.h" | 31 #include "components/autofill/core/browser/form_structure.h" |
32 #include "components/autofill/core/browser/personal_data_manager.h" | 32 #include "components/autofill/core/browser/personal_data_manager.h" |
33 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 33 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
34 #include "content/public/browser/notification_observer.h" | 34 #include "content/public/browser/notification_observer.h" |
35 #include "content/public/browser/notification_registrar.h" | 35 #include "content/public/browser/notification_registrar.h" |
36 #include "content/public/browser/web_contents_observer.h" | 36 #include "content/public/browser/web_contents_observer.h" |
37 #include "content/public/common/ssl_status.h" | 37 #include "content/public/common/ssl_status.h" |
38 #include "ui/base/animation/animation_delegate.h" | |
39 #include "ui/base/animation/linear_animation.h" | |
40 #include "ui/base/models/simple_menu_model.h" | 38 #include "ui/base/models/simple_menu_model.h" |
41 #include "ui/base/ui_base_types.h" | 39 #include "ui/base/ui_base_types.h" |
| 40 #include "ui/gfx/animation/animation_delegate.h" |
| 41 #include "ui/gfx/animation/linear_animation.h" |
42 #include "url/gurl.h" | 42 #include "url/gurl.h" |
43 | 43 |
44 class Profile; | 44 class Profile; |
45 | 45 |
46 namespace content { | 46 namespace content { |
47 class WebContents; | 47 class WebContents; |
48 } | 48 } |
49 | 49 |
50 namespace user_prefs { | 50 namespace user_prefs { |
51 class PrefRegistrySyncable; | 51 class PrefRegistrySyncable; |
(...skipping 20 matching lines...) Expand all Loading... |
72 class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, | 72 class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, |
73 public AutofillDialogController, | 73 public AutofillDialogController, |
74 public AutofillPopupDelegate, | 74 public AutofillPopupDelegate, |
75 public content::NotificationObserver, | 75 public content::NotificationObserver, |
76 public content::WebContentsObserver, | 76 public content::WebContentsObserver, |
77 public SuggestionsMenuModelDelegate, | 77 public SuggestionsMenuModelDelegate, |
78 public wallet::WalletClientDelegate, | 78 public wallet::WalletClientDelegate, |
79 public wallet::WalletSigninHelperDelegate, | 79 public wallet::WalletSigninHelperDelegate, |
80 public PersonalDataManagerObserver, | 80 public PersonalDataManagerObserver, |
81 public AccountChooserModelDelegate, | 81 public AccountChooserModelDelegate, |
82 public ui::AnimationDelegate { | 82 public gfx::AnimationDelegate { |
83 public: | 83 public: |
84 virtual ~AutofillDialogControllerImpl(); | 84 virtual ~AutofillDialogControllerImpl(); |
85 | 85 |
86 static base::WeakPtr<AutofillDialogControllerImpl> Create( | 86 static base::WeakPtr<AutofillDialogControllerImpl> Create( |
87 content::WebContents* contents, | 87 content::WebContents* contents, |
88 const FormData& form_structure, | 88 const FormData& form_structure, |
89 const GURL& source_url, | 89 const GURL& source_url, |
90 const base::Callback<void(const FormStructure*, | 90 const base::Callback<void(const FormStructure*, |
91 const std::string&)>& callback); | 91 const std::string&)>& callback); |
92 | 92 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // wallet::WalletSigninHelperDelegate implementation. | 213 // wallet::WalletSigninHelperDelegate implementation. |
214 virtual void OnPassiveSigninSuccess(const std::string& username) OVERRIDE; | 214 virtual void OnPassiveSigninSuccess(const std::string& username) OVERRIDE; |
215 virtual void OnPassiveSigninFailure( | 215 virtual void OnPassiveSigninFailure( |
216 const GoogleServiceAuthError& error) OVERRIDE; | 216 const GoogleServiceAuthError& error) OVERRIDE; |
217 virtual void OnUserNameFetchSuccess(const std::string& username) OVERRIDE; | 217 virtual void OnUserNameFetchSuccess(const std::string& username) OVERRIDE; |
218 virtual void OnUserNameFetchFailure( | 218 virtual void OnUserNameFetchFailure( |
219 const GoogleServiceAuthError& error) OVERRIDE; | 219 const GoogleServiceAuthError& error) OVERRIDE; |
220 virtual void OnDidFetchWalletCookieValue( | 220 virtual void OnDidFetchWalletCookieValue( |
221 const std::string& cookie_value) OVERRIDE; | 221 const std::string& cookie_value) OVERRIDE; |
222 | 222 |
223 // ui::AnimationDelegate implementation. | 223 // gfx::AnimationDelegate implementation. |
224 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 224 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; |
225 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 225 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; |
226 | 226 |
227 protected: | 227 protected: |
228 // Exposed for testing. | 228 // Exposed for testing. |
229 AutofillDialogControllerImpl( | 229 AutofillDialogControllerImpl( |
230 content::WebContents* contents, | 230 content::WebContents* contents, |
231 const FormData& form_structure, | 231 const FormData& form_structure, |
232 const GURL& source_url, | 232 const GURL& source_url, |
233 const base::Callback<void(const FormStructure*, | 233 const base::Callback<void(const FormStructure*, |
234 const std::string&)>& callback); | 234 const std::string&)>& callback); |
235 | 235 |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 base::string16 scrambled_card_number_; | 726 base::string16 scrambled_card_number_; |
727 | 727 |
728 // Two timers to deal with the card scrambling animation. The first provides | 728 // Two timers to deal with the card scrambling animation. The first provides |
729 // a one second delay before the numbers start scrambling. The second controls | 729 // a one second delay before the numbers start scrambling. The second controls |
730 // the rate of refresh for the number scrambling. | 730 // the rate of refresh for the number scrambling. |
731 base::OneShotTimer<AutofillDialogControllerImpl> card_scrambling_delay_; | 731 base::OneShotTimer<AutofillDialogControllerImpl> card_scrambling_delay_; |
732 base::RepeatingTimer<AutofillDialogControllerImpl> card_scrambling_refresher_; | 732 base::RepeatingTimer<AutofillDialogControllerImpl> card_scrambling_refresher_; |
733 | 733 |
734 // An animation which controls the background fade when the card is done | 734 // An animation which controls the background fade when the card is done |
735 // scrambling. | 735 // scrambling. |
736 ui::LinearAnimation card_generated_animation_; | 736 gfx::LinearAnimation card_generated_animation_; |
737 | 737 |
738 // A username string we display in the card scrambling/generated overlay. | 738 // A username string we display in the card scrambling/generated overlay. |
739 base::string16 submitted_cardholder_name_; | 739 base::string16 submitted_cardholder_name_; |
740 | 740 |
741 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 741 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
742 }; | 742 }; |
743 | 743 |
744 } // namespace autofill | 744 } // namespace autofill |
745 | 745 |
746 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 746 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |