Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: chrome/browser/download/download_util.cc

Issue 65012: Move skia to DEPS, and put it in third_party. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "app/gfx/chrome_canvas.h" 11 #include "app/gfx/chrome_canvas.h"
12 #include "app/l10n_util.h" 12 #include "app/l10n_util.h"
13 #include "app/os_exchange_data.h" 13 #include "app/os_exchange_data.h"
14 #include "app/resource_bundle.h" 14 #include "app/resource_bundle.h"
15 #include "base/base_drag_source.h" 15 #include "base/base_drag_source.h"
16 #include "base/file_util.h" 16 #include "base/file_util.h"
17 #include "base/scoped_clipboard_writer.h" 17 #include "base/scoped_clipboard_writer.h"
18 #include "base/string_util.h" 18 #include "base/string_util.h"
19 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/download/download_item_model.h" 20 #include "chrome/browser/download/download_item_model.h"
21 #include "chrome/browser/download/download_manager.h" 21 #include "chrome/browser/download/download_manager.h"
22 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
23 #include "grit/locale_settings.h" 23 #include "grit/locale_settings.h"
24 #include "grit/theme_resources.h" 24 #include "grit/theme_resources.h"
25 #include "skia/ext/image_operations.h" 25 #include "skia/ext/image_operations.h"
26 #include "skia/include/SkPath.h" 26 #include "third_party/skia/include/core/SkPath.h"
27 #include "skia/include/SkShader.h" 27 #include "third_party/skia/include/core/SkShader.h"
28 #include "views/drag_utils.h" 28 #include "views/drag_utils.h"
29 #include "views/view.h" 29 #include "views/view.h"
30 30
31 namespace download_util { 31 namespace download_util {
32 32
33 // How many times to cycle the complete animation. This should be an odd number 33 // How many times to cycle the complete animation. This should be an odd number
34 // so that the animation ends faded out. 34 // so that the animation ends faded out.
35 static const int kCompleteAnimationCycles = 5; 35 static const int kCompleteAnimationCycles = 5;
36 36
37 // Download opening ------------------------------------------------------------ 37 // Download opening ------------------------------------------------------------
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 data->SetFilename(download->full_path().ToWStringHack()); 239 data->SetFilename(download->full_path().ToWStringHack());
240 scoped_refptr<BaseDragSource> drag_source(new BaseDragSource); 240 scoped_refptr<BaseDragSource> drag_source(new BaseDragSource);
241 241
242 // Run the drag and drop loop 242 // Run the drag and drop loop
243 DWORD effects; 243 DWORD effects;
244 DoDragDrop(data.get(), drag_source.get(), DROPEFFECT_COPY | DROPEFFECT_LINK, 244 DoDragDrop(data.get(), drag_source.get(), DROPEFFECT_COPY | DROPEFFECT_LINK,
245 &effects); 245 &effects);
246 } 246 }
247 247
248 } // namespace download_util 248 } // namespace download_util
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/location_bar_view_mac.mm ('k') | chrome/browser/extensions/extension_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698