| 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_shelf_view.h" | 5 #include "chrome/browser/ui/views/download/download_shelf_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.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_util.h" | 13 #include "chrome/browser/download/download_util.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/chrome_pages.h" | 16 #include "chrome/browser/ui/chrome_pages.h" |
| 17 #include "chrome/browser/ui/view_ids.h" | 17 #include "chrome/browser/ui/view_ids.h" |
| 18 #include "chrome/browser/ui/views/download/download_item_view.h" | 18 #include "chrome/browser/ui/views/download/download_item_view.h" |
| 19 #include "chrome/browser/ui/views/frame/browser_view.h" | 19 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 20 #include "content/public/browser/download_item.h" | 20 #include "content/public/browser/download_item.h" |
| 21 #include "content/public/browser/download_manager.h" | 21 #include "content/public/browser/download_manager.h" |
| 22 #include "content/public/browser/page_navigator.h" | 22 #include "content/public/browser/page_navigator.h" |
| 23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
| 24 #include "grit/theme_resources.h" | 24 #include "grit/theme_resources.h" |
| 25 #include "grit/theme_resources_standard.h" | 25 #include "grit/ui_resources.h" |
| 26 #include "grit/ui_resources_standard.h" | |
| 27 #include "ui/base/animation/slide_animation.h" | 26 #include "ui/base/animation/slide_animation.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 29 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
| 30 #include "ui/gfx/canvas.h" | 29 #include "ui/gfx/canvas.h" |
| 31 #include "ui/views/background.h" | 30 #include "ui/views/background.h" |
| 32 #include "ui/views/controls/button/image_button.h" | 31 #include "ui/views/controls/button/image_button.h" |
| 33 #include "ui/views/controls/image_view.h" | 32 #include "ui/views/controls/image_view.h" |
| 34 #include "ui/views/controls/link.h" | 33 #include "ui/views/controls/link.h" |
| 35 #include "ui/views/mouse_watcher_view_host.h" | 34 #include "ui/views/mouse_watcher_view_host.h" |
| 36 | 35 |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 const DownloadItemView* download_item_view) { | 474 const DownloadItemView* download_item_view) { |
| 476 gfx::Rect bounds = download_item_view->bounds(); | 475 gfx::Rect bounds = download_item_view->bounds(); |
| 477 | 476 |
| 478 #if defined(TOOLKIT_VIEWS) | 477 #if defined(TOOLKIT_VIEWS) |
| 479 bounds.set_height(bounds.height() - 1); | 478 bounds.set_height(bounds.height() - 1); |
| 480 bounds.Offset(0, 3); | 479 bounds.Offset(0, 3); |
| 481 #endif | 480 #endif |
| 482 | 481 |
| 483 return bounds; | 482 return bounds; |
| 484 } | 483 } |
| OLD | NEW |