| 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 // Download utility implementation | 5 // Download utility implementation |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "chrome/browser/download/download_util.h" | 9 #include "chrome/browser/download/download_util.h" |
| 10 | 10 |
| 11 #include "base/base_drag_source.h" | 11 #include "base/base_drag_source.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/scoped_clipboard_writer.h" | 13 #include "base/scoped_clipboard_writer.h" |
| 14 #include "base/gfx/image_operations.h" | |
| 15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 16 #include "chrome/app/locales/locale_settings.h" | 15 #include "chrome/app/locales/locale_settings.h" |
| 17 #include "chrome/app/theme/theme_resources.h" | 16 #include "chrome/app/theme/theme_resources.h" |
| 18 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
| 19 #include "chrome/browser/download/download_manager.h" | 18 #include "chrome/browser/download/download_manager.h" |
| 20 #include "chrome/common/clipboard_service.h" | 19 #include "chrome/common/clipboard_service.h" |
| 21 #include "chrome/browser/drag_utils.h" | 20 #include "chrome/browser/drag_utils.h" |
| 22 #include "chrome/common/gfx/chrome_canvas.h" | 21 #include "chrome/common/gfx/chrome_canvas.h" |
| 23 #include "chrome/common/l10n_util.h" | 22 #include "chrome/common/l10n_util.h" |
| 24 #include "chrome/common/os_exchange_data.h" | 23 #include "chrome/common/os_exchange_data.h" |
| 25 #include "chrome/common/resource_bundle.h" | 24 #include "chrome/common/resource_bundle.h" |
| 26 #include "chrome/views/view.h" | 25 #include "chrome/views/view.h" |
| 27 #include "generated_resources.h" | 26 #include "generated_resources.h" |
| 27 #include "skia/ext/image_operations.h" |
| 28 #include "SkPath.h" | 28 #include "SkPath.h" |
| 29 #include "SkShader.h" | 29 #include "SkShader.h" |
| 30 | 30 |
| 31 namespace download_util { | 31 namespace download_util { |
| 32 | 32 |
| 33 // BaseContextMenu ------------------------------------------------------------- | 33 // BaseContextMenu ------------------------------------------------------------- |
| 34 | 34 |
| 35 BaseContextMenu::BaseContextMenu(DownloadItem* download) : download_(download) { | 35 BaseContextMenu::BaseContextMenu(DownloadItem* download) : download_(download) { |
| 36 } | 36 } |
| 37 | 37 |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 | 422 |
| 423 // Run the drag and drop loop | 423 // Run the drag and drop loop |
| 424 DWORD effects; | 424 DWORD effects; |
| 425 DoDragDrop(data.get(), drag_source.get(), DROPEFFECT_COPY | DROPEFFECT_LINK, | 425 DoDragDrop(data.get(), drag_source.get(), DROPEFFECT_COPY | DROPEFFECT_LINK, |
| 426 &effects); | 426 &effects); |
| 427 } | 427 } |
| 428 | 428 |
| 429 | 429 |
| 430 } // namespace download_util | 430 } // namespace download_util |
| 431 | 431 |
| OLD | NEW |