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_md.h" | 5 #include "chrome/browser/ui/views/download/download_item_view_md.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/callback.h" | 13 #include "base/callback.h" |
12 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
13 #include "base/i18n/break_iterator.h" | 15 #include "base/i18n/break_iterator.h" |
14 #include "base/i18n/rtl.h" | 16 #include "base/i18n/rtl.h" |
15 #include "base/location.h" | 17 #include "base/location.h" |
| 18 #include "base/macros.h" |
16 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
17 #include "base/prefs/pref_service.h" | 20 #include "base/prefs/pref_service.h" |
18 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
19 #include "base/strings/stringprintf.h" | 22 #include "base/strings/stringprintf.h" |
20 #include "base/strings/sys_string_conversions.h" | 23 #include "base/strings/sys_string_conversions.h" |
21 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
22 #include "chrome/browser/browser_process.h" | 25 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 26 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
24 #include "chrome/browser/download/download_item_model.h" | 27 #include "chrome/browser/download/download_item_model.h" |
25 #include "chrome/browser/download/download_stats.h" | 28 #include "chrome/browser/download/download_stats.h" |
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 } | 1075 } |
1073 } | 1076 } |
1074 | 1077 |
1075 SkColor DownloadItemViewMd::GetTextColor() { | 1078 SkColor DownloadItemViewMd::GetTextColor() { |
1076 return GetTextColorForThemeProvider(GetThemeProvider()); | 1079 return GetTextColorForThemeProvider(GetThemeProvider()); |
1077 } | 1080 } |
1078 | 1081 |
1079 SkColor DownloadItemViewMd::GetDimmedTextColor() { | 1082 SkColor DownloadItemViewMd::GetDimmedTextColor() { |
1080 return SkColorSetA(GetTextColor(), 0xC7); | 1083 return SkColorSetA(GetTextColor(), 0xC7); |
1081 } | 1084 } |
OLD | NEW |