OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/gfx/canvas.h" | |
10 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
11 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
12 #include "app/text_elider.h" | 11 #include "app/text_elider.h" |
13 #include "app/theme_provider.h" | 12 #include "app/theme_provider.h" |
14 #include "base/callback.h" | 13 #include "base/callback.h" |
15 #include "base/file_path.h" | 14 #include "base/file_path.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" |
| 23 #include "gfx/canvas.h" |
24 #include "gfx/color_utils.h" | 24 #include "gfx/color_utils.h" |
25 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
26 #include "grit/theme_resources.h" | 26 #include "grit/theme_resources.h" |
27 #include "views/controls/button/native_button.h" | 27 #include "views/controls/button/native_button.h" |
28 #include "views/controls/menu/menu_2.h" | 28 #include "views/controls/menu/menu_2.h" |
29 #include "views/widget/root_view.h" | 29 #include "views/widget/root_view.h" |
30 #include "views/widget/widget.h" | 30 #include "views/widget/widget.h" |
31 | 31 |
32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
33 #include "app/win_util.h" | 33 #include "app/win_util.h" |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 void DownloadItemView::Reenable() { | 996 void DownloadItemView::Reenable() { |
997 disabled_while_opening_ = false; | 997 disabled_while_opening_ = false; |
998 SetEnabled(true); // Triggers a repaint. | 998 SetEnabled(true); // Triggers a repaint. |
999 } | 999 } |
1000 | 1000 |
1001 bool DownloadItemView::InDropDownButtonXCoordinateRange(int x) { | 1001 bool DownloadItemView::InDropDownButtonXCoordinateRange(int x) { |
1002 if (x > drop_down_x_left_ && x < drop_down_x_right_) | 1002 if (x > drop_down_x_left_ && x < drop_down_x_right_) |
1003 return true; | 1003 return true; |
1004 return false; | 1004 return false; |
1005 } | 1005 } |
OLD | NEW |