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/l10n_util.h" |
9 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
10 #include "base/file_path.h" | 11 #include "base/file_path.h" |
11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/download/download_item_model.h" | 14 #include "chrome/browser/download/download_item_model.h" |
14 #include "chrome/browser/download/download_util.h" | 15 #include "chrome/browser/download/download_util.h" |
15 #include "chrome/browser/views/download_shelf_view.h" | 16 #include "chrome/browser/views/download_shelf_view.h" |
16 #include "chrome/common/gfx/chrome_canvas.h" | 17 #include "chrome/common/gfx/chrome_canvas.h" |
17 #include "chrome/common/gfx/text_elider.h" | 18 #include "chrome/common/gfx/text_elider.h" |
18 #include "chrome/common/l10n_util.h" | |
19 #include "chrome/common/win_util.h" | 19 #include "chrome/common/win_util.h" |
20 #include "chrome/views/controls/button/native_button.h" | 20 #include "chrome/views/controls/button/native_button.h" |
21 #include "chrome/views/controls/menu/menu.h" | 21 #include "chrome/views/controls/menu/menu.h" |
22 #include "chrome/views/widget/root_view.h" | 22 #include "chrome/views/widget/root_view.h" |
23 #include "chrome/views/widget/widget.h" | 23 #include "chrome/views/widget/widget.h" |
24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
25 #include "grit/theme_resources.h" | 25 #include "grit/theme_resources.h" |
26 | 26 |
27 using base::TimeDelta; | 27 using base::TimeDelta; |
28 | 28 |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 size = dangerous_download_label_->GetPreferredSize(); | 926 size = dangerous_download_label_->GetPreferredSize(); |
927 | 927 |
928 dangerous_download_label_->SetBounds(0, 0, size.width(), size.height()); | 928 dangerous_download_label_->SetBounds(0, 0, size.width(), size.height()); |
929 dangerous_download_label_sized_ = true; | 929 dangerous_download_label_sized_ = true; |
930 } | 930 } |
931 | 931 |
932 void DownloadItemView::Reenable() { | 932 void DownloadItemView::Reenable() { |
933 disabled_while_opening_ = false; | 933 disabled_while_opening_ = false; |
934 SetEnabled(true); // Triggers a repaint. | 934 SetEnabled(true); // Triggers a repaint. |
935 } | 935 } |
OLD | NEW |