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_shelf_view.h" | 5 #include "chrome/browser/views/download_shelf_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
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 "base/logging.h" | 11 #include "base/logging.h" |
12 #include "chrome/browser/browser.h" | |
13 #include "chrome/browser/download/download_item.h" | 12 #include "chrome/browser/download/download_item.h" |
14 #include "chrome/browser/download/download_item_model.h" | 13 #include "chrome/browser/download/download_item_model.h" |
15 #include "chrome/browser/download/download_manager.h" | 14 #include "chrome/browser/download/download_manager.h" |
16 #include "chrome/browser/tab_contents/navigation_entry.h" | 15 #include "chrome/browser/tab_contents/navigation_entry.h" |
17 #include "chrome/browser/themes/browser_theme_provider.h" | 16 #include "chrome/browser/themes/browser_theme_provider.h" |
| 17 #include "chrome/browser/ui/browser.h" |
18 #include "chrome/browser/view_ids.h" | 18 #include "chrome/browser/view_ids.h" |
19 #include "chrome/browser/views/download_item_view.h" | 19 #include "chrome/browser/views/download_item_view.h" |
20 #include "chrome/browser/views/frame/browser_view.h" | 20 #include "chrome/browser/views/frame/browser_view.h" |
21 #include "gfx/canvas.h" | 21 #include "gfx/canvas.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "grit/theme_resources.h" | 23 #include "grit/theme_resources.h" |
24 #include "views/background.h" | 24 #include "views/background.h" |
25 #include "views/controls/button/image_button.h" | 25 #include "views/controls/button/image_button.h" |
26 #include "views/controls/image_view.h" | 26 #include "views/controls/image_view.h" |
27 | 27 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 const DownloadItemView* download_item_view) { | 430 const DownloadItemView* download_item_view) { |
431 gfx::Rect bounds = download_item_view->bounds(); | 431 gfx::Rect bounds = download_item_view->bounds(); |
432 | 432 |
433 #if defined(TOOLKIT_VIEWS) | 433 #if defined(TOOLKIT_VIEWS) |
434 bounds.set_height(bounds.height() - 1); | 434 bounds.set_height(bounds.height() - 1); |
435 bounds.Offset(0, 3); | 435 bounds.Offset(0, 3); |
436 #endif | 436 #endif |
437 | 437 |
438 return bounds; | 438 return bounds; |
439 } | 439 } |
OLD | NEW |