OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/download_item_view.h" | 5 #include "chrome/browser/views/download_item_view.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
11 #include "app/text_elider.h" | 11 #include "app/text_elider.h" |
12 #include "app/theme_provider.h" | 12 #include "app/theme_provider.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/histogram.h" | |
16 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
18 #include "base/sys_string_conversions.h" | 17 #include "base/sys_string_conversions.h" |
19 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/browser_theme_provider.h" | 19 #include "chrome/browser/browser_theme_provider.h" |
21 #include "chrome/browser/download/download_item_model.h" | 20 #include "chrome/browser/download/download_item_model.h" |
22 #include "chrome/browser/download/download_util.h" | 21 #include "chrome/browser/download/download_util.h" |
23 #include "chrome/browser/views/download_shelf_view.h" | 22 #include "chrome/browser/views/download_shelf_view.h" |
24 #include "gfx/canvas_skia.h" | 23 #include "gfx/canvas_skia.h" |
25 #include "gfx/color_utils.h" | 24 #include "gfx/color_utils.h" |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 void DownloadItemView::Reenable() { | 1006 void DownloadItemView::Reenable() { |
1008 disabled_while_opening_ = false; | 1007 disabled_while_opening_ = false; |
1009 SetEnabled(true); // Triggers a repaint. | 1008 SetEnabled(true); // Triggers a repaint. |
1010 } | 1009 } |
1011 | 1010 |
1012 bool DownloadItemView::InDropDownButtonXCoordinateRange(int x) { | 1011 bool DownloadItemView::InDropDownButtonXCoordinateRange(int x) { |
1013 if (x > drop_down_x_left_ && x < drop_down_x_right_) | 1012 if (x > drop_down_x_left_ && x < drop_down_x_right_) |
1014 return true; | 1013 return true; |
1015 return false; | 1014 return false; |
1016 } | 1015 } |
OLD | NEW |