| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/views/autofill/card_unmask_prompt_views.h" | 5 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_views.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const int kEdgePadding = 19; | 48 const int kEdgePadding = 19; |
| 49 | 49 |
| 50 SkColor kGreyTextColor = SkColorSetRGB(0x64, 0x64, 0x64); | 50 SkColor kGreyTextColor = SkColorSetRGB(0x64, 0x64, 0x64); |
| 51 | 51 |
| 52 SkColor const kWarningColor = gfx::kGoogleRed700; | 52 SkColor const kWarningColor = gfx::kGoogleRed700; |
| 53 SkColor const kLightShadingColor = SkColorSetARGB(7, 0, 0, 0); | 53 SkColor const kLightShadingColor = SkColorSetARGB(7, 0, 0, 0); |
| 54 SkColor const kSubtleBorderColor = SkColorSetARGB(10, 0, 0, 0); | 54 SkColor const kSubtleBorderColor = SkColorSetARGB(10, 0, 0, 0); |
| 55 | 55 |
| 56 } // namespace | 56 } // namespace |
| 57 | 57 |
| 58 CardUnmaskPromptView* CreateCardUnmaskPromptView( | |
| 59 CardUnmaskPromptController* controller, | |
| 60 content::WebContents* web_contents) { | |
| 61 return new CardUnmaskPromptViews(controller, web_contents); | |
| 62 } | |
| 63 | |
| 64 CardUnmaskPromptViews::CardUnmaskPromptViews( | 58 CardUnmaskPromptViews::CardUnmaskPromptViews( |
| 65 CardUnmaskPromptController* controller, | 59 CardUnmaskPromptController* controller, |
| 66 content::WebContents* web_contents) | 60 content::WebContents* web_contents) |
| 67 : controller_(controller), | 61 : controller_(controller), |
| 68 web_contents_(web_contents), | 62 web_contents_(web_contents), |
| 69 main_contents_(nullptr), | 63 main_contents_(nullptr), |
| 70 instructions_(nullptr), | 64 instructions_(nullptr), |
| 71 permanent_error_label_(nullptr), | 65 permanent_error_label_(nullptr), |
| 72 input_row_(nullptr), | 66 input_row_(nullptr), |
| 73 cvc_input_(nullptr), | 67 cvc_input_(nullptr), |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 views::View::OnPaint(canvas); | 520 views::View::OnPaint(canvas); |
| 527 canvas->Restore(); | 521 canvas->Restore(); |
| 528 } | 522 } |
| 529 | 523 |
| 530 void CardUnmaskPromptViews::FadeOutView::SetAlpha(uint8_t alpha) { | 524 void CardUnmaskPromptViews::FadeOutView::SetAlpha(uint8_t alpha) { |
| 531 alpha_ = alpha; | 525 alpha_ = alpha; |
| 532 SchedulePaint(); | 526 SchedulePaint(); |
| 533 } | 527 } |
| 534 | 528 |
| 535 } // namespace autofill | 529 } // namespace autofill |
| OLD | NEW |