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 <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/themes/theme_service.h" | 23 #include "chrome/browser/themes/theme_service.h" |
24 #include "chrome/browser/ui/views/download/download_shelf_context_menu_view.h" | 24 #include "chrome/browser/ui/views/download/download_shelf_context_menu_view.h" |
25 #include "chrome/browser/ui/views/download/download_shelf_view.h" | 25 #include "chrome/browser/ui/views/download/download_shelf_view.h" |
26 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
27 #include "grit/theme_resources.h" | 27 #include "grit/theme_resources.h" |
28 #include "ui/base/accessibility/accessible_view_state.h" | 28 #include "ui/base/accessibility/accessible_view_state.h" |
29 #include "ui/base/animation/slide_animation.h" | 29 #include "ui/base/animation/slide_animation.h" |
30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
31 #include "ui/base/resource/resource_bundle.h" | 31 #include "ui/base/resource/resource_bundle.h" |
32 #include "ui/base/text/text_elider.h" | 32 #include "ui/base/text/text_elider.h" |
33 #include "ui/gfx/canvas_skia.h" | 33 #include "ui/gfx/canvas.h" |
34 #include "ui/gfx/color_utils.h" | 34 #include "ui/gfx/color_utils.h" |
35 #include "ui/gfx/image/image.h" | 35 #include "ui/gfx/image/image.h" |
36 #include "ui/views/controls/button/text_button.h" | 36 #include "ui/views/controls/button/text_button.h" |
37 #include "ui/views/controls/label.h" | 37 #include "ui/views/controls/label.h" |
38 #include "ui/views/widget/root_view.h" | 38 #include "ui/views/widget/root_view.h" |
39 #include "ui/views/widget/widget.h" | 39 #include "ui/views/widget/widget.h" |
40 #include "unicode/uchar.h" | 40 #include "unicode/uchar.h" |
41 | 41 |
42 // TODO(paulg): These may need to be adjusted when download progress | 42 // TODO(paulg): These may need to be adjusted when download progress |
43 // animation is added, and also possibly to take into account | 43 // animation is added, and also possibly to take into account |
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 // Drop down button is glued to the left of the download shelf. | 1164 // Drop down button is glued to the left of the download shelf. |
1165 drop_down_x_left_ = 0; | 1165 drop_down_x_left_ = 0; |
1166 drop_down_x_right_ = normal_drop_down_image_set_.top->width(); | 1166 drop_down_x_right_ = normal_drop_down_image_set_.top->width(); |
1167 } else { | 1167 } else { |
1168 // Drop down button is glued to the right of the download shelf. | 1168 // Drop down button is glued to the right of the download shelf. |
1169 drop_down_x_left_ = | 1169 drop_down_x_left_ = |
1170 size.width() - normal_drop_down_image_set_.top->width(); | 1170 size.width() - normal_drop_down_image_set_.top->width(); |
1171 drop_down_x_right_ = size.width(); | 1171 drop_down_x_right_ = size.width(); |
1172 } | 1172 } |
1173 } | 1173 } |
OLD | NEW |