OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/download/download_item_view.h" | 5 #include "chrome/browser/ui/views/download/download_item_view.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <vector> | 10 #include <vector> |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "chrome/browser/safe_browsing/download_protection_service.h" | 34 #include "chrome/browser/safe_browsing/download_protection_service.h" |
35 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 35 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
36 #include "chrome/browser/themes/theme_properties.h" | 36 #include "chrome/browser/themes/theme_properties.h" |
37 #include "chrome/browser/ui/views/download/download_feedback_dialog_view.h" | 37 #include "chrome/browser/ui/views/download/download_feedback_dialog_view.h" |
38 #include "chrome/browser/ui/views/download/download_shelf_context_menu_view.h" | 38 #include "chrome/browser/ui/views/download/download_shelf_context_menu_view.h" |
39 #include "chrome/browser/ui/views/download/download_shelf_view.h" | 39 #include "chrome/browser/ui/views/download/download_shelf_view.h" |
40 #include "chrome/browser/ui/views/frame/browser_view.h" | 40 #include "chrome/browser/ui/views/frame/browser_view.h" |
41 #include "chrome/common/pref_names.h" | 41 #include "chrome/common/pref_names.h" |
42 #include "chrome/grit/generated_resources.h" | 42 #include "chrome/grit/generated_resources.h" |
43 #include "components/prefs/pref_service.h" | 43 #include "components/prefs/pref_service.h" |
44 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 44 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
45 #include "content/public/browser/download_danger_type.h" | 45 #include "content/public/browser/download_danger_type.h" |
46 #include "third_party/icu/source/common/unicode/uchar.h" | 46 #include "third_party/icu/source/common/unicode/uchar.h" |
47 #include "ui/accessibility/ax_node_data.h" | 47 #include "ui/accessibility/ax_node_data.h" |
48 #include "ui/base/l10n/l10n_util.h" | 48 #include "ui/base/l10n/l10n_util.h" |
49 #include "ui/base/resource/resource_bundle.h" | 49 #include "ui/base/resource/resource_bundle.h" |
50 #include "ui/base/theme_provider.h" | 50 #include "ui/base/theme_provider.h" |
51 #include "ui/events/event.h" | 51 #include "ui/events/event.h" |
52 #include "ui/gfx/animation/slide_animation.h" | 52 #include "ui/gfx/animation/slide_animation.h" |
53 #include "ui/gfx/canvas.h" | 53 #include "ui/gfx/canvas.h" |
54 #include "ui/gfx/color_palette.h" | 54 #include "ui/gfx/color_palette.h" |
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 SchedulePaint(); | 1121 SchedulePaint(); |
1122 } | 1122 } |
1123 | 1123 |
1124 SkColor DownloadItemView::GetTextColor() const { | 1124 SkColor DownloadItemView::GetTextColor() const { |
1125 return GetTextColorForThemeProvider(GetThemeProvider()); | 1125 return GetTextColorForThemeProvider(GetThemeProvider()); |
1126 } | 1126 } |
1127 | 1127 |
1128 SkColor DownloadItemView::GetDimmedTextColor() const { | 1128 SkColor DownloadItemView::GetDimmedTextColor() const { |
1129 return SkColorSetA(GetTextColor(), 0xC7); | 1129 return SkColorSetA(GetTextColor(), 0xC7); |
1130 } | 1130 } |
OLD | NEW |