OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 3079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3090 | 3090 |
3091 card_generated_animation_.Start(); | 3091 card_generated_animation_.Start(); |
3092 return; | 3092 return; |
3093 } | 3093 } |
3094 #endif | 3094 #endif |
3095 | 3095 |
3096 DoFinishSubmit(); | 3096 DoFinishSubmit(); |
3097 } | 3097 } |
3098 | 3098 |
3099 void AutofillDialogControllerImpl::AnimationProgressed( | 3099 void AutofillDialogControllerImpl::AnimationProgressed( |
3100 const ui::Animation* animation) { | 3100 const gfx::Animation* animation) { |
3101 DCHECK_EQ(animation, &card_generated_animation_); | 3101 DCHECK_EQ(animation, &card_generated_animation_); |
3102 PushOverlayUpdate(); | 3102 PushOverlayUpdate(); |
3103 } | 3103 } |
3104 | 3104 |
3105 void AutofillDialogControllerImpl::AnimationEnded( | 3105 void AutofillDialogControllerImpl::AnimationEnded( |
3106 const ui::Animation* animation) { | 3106 const gfx::Animation* animation) { |
3107 DCHECK_EQ(animation, &card_generated_animation_); | 3107 DCHECK_EQ(animation, &card_generated_animation_); |
3108 DoFinishSubmit(); | 3108 DoFinishSubmit(); |
3109 } | 3109 } |
3110 | 3110 |
3111 void AutofillDialogControllerImpl::DoFinishSubmit() { | 3111 void AutofillDialogControllerImpl::DoFinishSubmit() { |
3112 if (IsPayingWithWallet()) { | 3112 if (IsPayingWithWallet()) { |
3113 profile_->GetPrefs()->SetBoolean(::prefs::kAutofillDialogHasPaidWithWallet, | 3113 profile_->GetPrefs()->SetBoolean(::prefs::kAutofillDialogHasPaidWithWallet, |
3114 true); | 3114 true); |
3115 } | 3115 } |
3116 | 3116 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3360 } | 3360 } |
3361 | 3361 |
3362 void AutofillDialogControllerImpl::OnSubmitButtonDelayEnd() { | 3362 void AutofillDialogControllerImpl::OnSubmitButtonDelayEnd() { |
3363 if (!view_) | 3363 if (!view_) |
3364 return; | 3364 return; |
3365 ScopedViewUpdates updates(view_.get()); | 3365 ScopedViewUpdates updates(view_.get()); |
3366 view_->UpdateButtonStrip(); | 3366 view_->UpdateButtonStrip(); |
3367 } | 3367 } |
3368 | 3368 |
3369 } // namespace autofill | 3369 } // namespace autofill |
OLD | NEW |