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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 !(full_wallet_ && !full_wallet_->required_actions().empty()); | 788 !(full_wallet_ && !full_wallet_->required_actions().empty()); |
789 if (!show_wallet_interstitial) { | 789 if (!show_wallet_interstitial) { |
790 card_scrambling_delay_.Stop(); | 790 card_scrambling_delay_.Stop(); |
791 card_scrambling_refresher_.Stop(); | 791 card_scrambling_refresher_.Stop(); |
792 return DialogOverlayState(); | 792 return DialogOverlayState(); |
793 } | 793 } |
794 | 794 |
795 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 795 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
796 DialogOverlayState state; | 796 DialogOverlayState state; |
797 state.string.font = rb.GetFont(ui::ResourceBundle::BaseFont).DeriveFont(3); | 797 state.string.font = rb.GetFont(ui::ResourceBundle::BaseFont).DeriveFont(3); |
798 state.string.text_color = SK_ColorDKGRAY; | |
799 | 798 |
800 const SkColor start_top_color = SkColorSetRGB(0xD6, 0xD6, 0xD6); | 799 const SkColor start_top_color = SkColorSetRGB(0xD6, 0xD6, 0xD6); |
801 const SkColor start_bottom_color = SkColorSetRGB(0x98, 0x98, 0x98); | 800 const SkColor start_bottom_color = SkColorSetRGB(0x98, 0x98, 0x98); |
802 const SkColor final_top_color = SkColorSetRGB(0x52, 0x9F, 0xF8); | 801 const SkColor final_top_color = SkColorSetRGB(0x52, 0x9F, 0xF8); |
803 const SkColor final_bottom_color = SkColorSetRGB(0x22, 0x75, 0xE5); | 802 const SkColor final_bottom_color = SkColorSetRGB(0x22, 0x75, 0xE5); |
804 | 803 |
805 if (full_wallet_ && full_wallet_->required_actions().empty()) { | 804 if (full_wallet_ && full_wallet_->required_actions().empty()) { |
806 card_scrambling_delay_.Stop(); | 805 card_scrambling_delay_.Stop(); |
807 card_scrambling_refresher_.Stop(); | 806 card_scrambling_refresher_.Stop(); |
808 | 807 |
(...skipping 2729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3538 view_->UpdateButtonStrip(); | 3537 view_->UpdateButtonStrip(); |
3539 } | 3538 } |
3540 | 3539 |
3541 void AutofillDialogControllerImpl::FetchWalletCookie() { | 3540 void AutofillDialogControllerImpl::FetchWalletCookie() { |
3542 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); | 3541 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); |
3543 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); | 3542 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); |
3544 signin_helper_->StartWalletCookieValueFetch(); | 3543 signin_helper_->StartWalletCookieValueFetch(); |
3545 } | 3544 } |
3546 | 3545 |
3547 } // namespace autofill | 3546 } // namespace autofill |
OLD | NEW |