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" |
11 #include "chrome/browser/ui/autofill/create_card_unmask_prompt_view.h" | 11 #include "chrome/browser/ui/autofill/create_card_unmask_prompt_view.h" |
12 #include "chrome/browser/ui/browser_dialogs.h" | 12 #include "chrome/browser/ui/browser_dialogs.h" |
13 #include "chrome/browser/ui/views/autofill/view_util.h" | 13 #include "chrome/browser/ui/views/autofill/view_util.h" |
14 #include "chrome/grit/generated_resources.h" | |
15 #include "chrome/grit/theme_resources.h" | |
16 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller.h" | 14 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller.h" |
17 #include "components/constrained_window/constrained_window_views.h" | 15 #include "components/constrained_window/constrained_window_views.h" |
18 #include "components/strings/grit/components_strings.h" | 16 #include "components/strings/grit/components_strings.h" |
19 #include "components/web_modal/web_contents_modal_dialog_host.h" | 17 #include "components/web_modal/web_contents_modal_dialog_host.h" |
20 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 18 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
21 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" | 19 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" |
22 #include "third_party/skia/include/core/SkColor.h" | 20 #include "third_party/skia/include/core/SkColor.h" |
23 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
24 #include "ui/base/resource/resource_bundle.h" | 22 #include "ui/base/resource/resource_bundle.h" |
25 #include "ui/compositor/compositing_recorder.h" | 23 #include "ui/compositor/compositing_recorder.h" |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 views::View::OnPaint(canvas); | 524 views::View::OnPaint(canvas); |
527 canvas->Restore(); | 525 canvas->Restore(); |
528 } | 526 } |
529 | 527 |
530 void CardUnmaskPromptViews::FadeOutView::SetAlpha(uint8_t alpha) { | 528 void CardUnmaskPromptViews::FadeOutView::SetAlpha(uint8_t alpha) { |
531 alpha_ = alpha; | 529 alpha_ = alpha; |
532 SchedulePaint(); | 530 SchedulePaint(); |
533 } | 531 } |
534 | 532 |
535 } // namespace autofill | 533 } // namespace autofill |
OLD | NEW |