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/string_util.h" | 14 #include "base/string_util.h" |
15 #include "chrome/app/locales/locale_settings.h" | 15 #include "chrome/app/locales/locale_settings.h" |
16 #include "chrome/app/theme/theme_resources.h" | 16 #include "grit/theme_resources.h" |
17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/download/download_manager.h" | 18 #include "chrome/browser/download/download_manager.h" |
19 #include "chrome/common/clipboard_service.h" | 19 #include "chrome/common/clipboard_service.h" |
20 #include "chrome/browser/drag_utils.h" | 20 #include "chrome/browser/drag_utils.h" |
21 #include "chrome/common/gfx/chrome_canvas.h" | 21 #include "chrome/common/gfx/chrome_canvas.h" |
22 #include "chrome/common/l10n_util.h" | 22 #include "chrome/common/l10n_util.h" |
23 #include "chrome/common/os_exchange_data.h" | 23 #include "chrome/common/os_exchange_data.h" |
24 #include "chrome/common/resource_bundle.h" | 24 #include "chrome/common/resource_bundle.h" |
25 #include "chrome/views/view.h" | 25 #include "chrome/views/view.h" |
26 #include "generated_resources.h" | 26 #include "generated_resources.h" |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 data->SetFilename(download->full_path().ToWStringHack()); | 421 data->SetFilename(download->full_path().ToWStringHack()); |
422 scoped_refptr<BaseDragSource> drag_source(new BaseDragSource); | 422 scoped_refptr<BaseDragSource> drag_source(new BaseDragSource); |
423 | 423 |
424 // Run the drag and drop loop | 424 // Run the drag and drop loop |
425 DWORD effects; | 425 DWORD effects; |
426 DoDragDrop(data.get(), drag_source.get(), DROPEFFECT_COPY | DROPEFFECT_LINK, | 426 DoDragDrop(data.get(), drag_source.get(), DROPEFFECT_COPY | DROPEFFECT_LINK, |
427 &effects); | 427 &effects); |
428 } | 428 } |
429 | 429 |
430 } // namespace download_util | 430 } // namespace download_util |
OLD | NEW |