| 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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 !(full_wallet_ && !full_wallet_->required_actions().empty()); | 795 !(full_wallet_ && !full_wallet_->required_actions().empty()); |
| 796 if (!show_wallet_interstitial) { | 796 if (!show_wallet_interstitial) { |
| 797 card_scrambling_delay_.Stop(); | 797 card_scrambling_delay_.Stop(); |
| 798 card_scrambling_refresher_.Stop(); | 798 card_scrambling_refresher_.Stop(); |
| 799 return DialogOverlayState(); | 799 return DialogOverlayState(); |
| 800 } | 800 } |
| 801 | 801 |
| 802 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 802 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
| 803 DialogOverlayState state; | 803 DialogOverlayState state; |
| 804 state.string.font = rb.GetFont(ui::ResourceBundle::BaseFont).DeriveFont(3); | 804 state.string.font = rb.GetFont(ui::ResourceBundle::BaseFont).DeriveFont(3); |
| 805 state.string.text_color = SK_ColorDKGRAY; | |
| 806 | 805 |
| 807 const SkColor start_top_color = SkColorSetRGB(0xD6, 0xD6, 0xD6); | 806 const SkColor start_top_color = SkColorSetRGB(0xD6, 0xD6, 0xD6); |
| 808 const SkColor start_bottom_color = SkColorSetRGB(0x98, 0x98, 0x98); | 807 const SkColor start_bottom_color = SkColorSetRGB(0x98, 0x98, 0x98); |
| 809 const SkColor final_top_color = SkColorSetRGB(0x52, 0x9F, 0xF8); | 808 const SkColor final_top_color = SkColorSetRGB(0x52, 0x9F, 0xF8); |
| 810 const SkColor final_bottom_color = SkColorSetRGB(0x22, 0x75, 0xE5); | 809 const SkColor final_bottom_color = SkColorSetRGB(0x22, 0x75, 0xE5); |
| 811 | 810 |
| 812 if (full_wallet_ && full_wallet_->required_actions().empty()) { | 811 if (full_wallet_ && full_wallet_->required_actions().empty()) { |
| 813 card_scrambling_delay_.Stop(); | 812 card_scrambling_delay_.Stop(); |
| 814 card_scrambling_refresher_.Stop(); | 813 card_scrambling_refresher_.Stop(); |
| 815 | 814 |
| (...skipping 2728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3544 view_->UpdateButtonStrip(); | 3543 view_->UpdateButtonStrip(); |
| 3545 } | 3544 } |
| 3546 | 3545 |
| 3547 void AutofillDialogControllerImpl::FetchWalletCookie() { | 3546 void AutofillDialogControllerImpl::FetchWalletCookie() { |
| 3548 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); | 3547 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); |
| 3549 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); | 3548 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); |
| 3550 signin_helper_->StartWalletCookieValueFetch(); | 3549 signin_helper_->StartWalletCookieValueFetch(); |
| 3551 } | 3550 } |
| 3552 | 3551 |
| 3553 } // namespace autofill | 3552 } // namespace autofill |
| OLD | NEW |