| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_shelf_view.h" | 5 #include "chrome/browser/ui/views/download/download_shelf_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/download/download_item.h" | 11 #include "chrome/browser/download/download_item.h" |
| 12 #include "chrome/browser/download/download_item_model.h" | 12 #include "chrome/browser/download/download_item_model.h" |
| 13 #include "chrome/browser/download/download_manager.h" | 13 #include "chrome/browser/download/download_manager.h" |
| 14 #include "chrome/browser/themes/theme_service.h" | 14 #include "chrome/browser/themes/theme_service.h" |
| 15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/view_ids.h" | 16 #include "chrome/browser/ui/view_ids.h" |
| 17 #include "chrome/browser/ui/views/download/download_item_view.h" | 17 #include "chrome/browser/ui/views/download/download_item_view.h" |
| 18 #include "chrome/browser/ui/views/frame/browser_view.h" | 18 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 19 #include "content/browser/tab_contents/navigation_entry.h" | 19 #include "content/browser/tab_contents/navigation_entry.h" |
| 20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
| 22 #include "grit/theme_resources_standard.h" |
| 22 #include "ui/base/animation/slide_animation.h" | 23 #include "ui/base/animation/slide_animation.h" |
| 23 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
| 24 #include "ui/base/resource/resource_bundle.h" | 25 #include "ui/base/resource/resource_bundle.h" |
| 25 #include "ui/gfx/canvas.h" | 26 #include "ui/gfx/canvas.h" |
| 26 #include "views/background.h" | 27 #include "views/background.h" |
| 27 #include "views/controls/button/image_button.h" | 28 #include "views/controls/button/image_button.h" |
| 28 #include "views/controls/image_view.h" | 29 #include "views/controls/image_view.h" |
| 29 #include "views/controls/link.h" | 30 #include "views/controls/link.h" |
| 30 | 31 |
| 31 // Max number of download views we'll contain. Any time a view is added and | 32 // Max number of download views we'll contain. Any time a view is added and |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 const DownloadItemView* download_item_view) { | 443 const DownloadItemView* download_item_view) { |
| 443 gfx::Rect bounds = download_item_view->bounds(); | 444 gfx::Rect bounds = download_item_view->bounds(); |
| 444 | 445 |
| 445 #if defined(TOOLKIT_VIEWS) | 446 #if defined(TOOLKIT_VIEWS) |
| 446 bounds.set_height(bounds.height() - 1); | 447 bounds.set_height(bounds.height() - 1); |
| 447 bounds.Offset(0, 3); | 448 bounds.Offset(0, 3); |
| 448 #endif | 449 #endif |
| 449 | 450 |
| 450 return bounds; | 451 return bounds; |
| 451 } | 452 } |
| OLD | NEW |