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

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

Issue 9582041: Move most of ui/views/drag_utils to ui/base/dragdrop so it can be used outside of views. I tried to… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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) 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 // Download utility implementation 5 // Download utility implementation
6 6
7 #include "chrome/browser/download/download_util.h" 7 #include "chrome/browser/download/download_util.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <shobjidl.h> 10 #include <shobjidl.h>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "third_party/skia/include/core/SkPath.h" 48 #include "third_party/skia/include/core/SkPath.h"
49 #include "third_party/skia/include/core/SkShader.h" 49 #include "third_party/skia/include/core/SkShader.h"
50 #include "ui/base/l10n/l10n_util.h" 50 #include "ui/base/l10n/l10n_util.h"
51 #include "ui/base/resource/resource_bundle.h" 51 #include "ui/base/resource/resource_bundle.h"
52 #include "ui/base/text/bytes_formatting.h" 52 #include "ui/base/text/bytes_formatting.h"
53 #include "ui/gfx/canvas_skia.h" 53 #include "ui/gfx/canvas_skia.h"
54 #include "ui/gfx/image/image.h" 54 #include "ui/gfx/image/image.h"
55 #include "ui/gfx/rect.h" 55 #include "ui/gfx/rect.h"
56 56
57 #if defined(TOOLKIT_VIEWS) 57 #if defined(TOOLKIT_VIEWS)
58 #include "ui/base/dragdrop/drag_utils.h"
58 #include "ui/base/dragdrop/os_exchange_data.h" 59 #include "ui/base/dragdrop/os_exchange_data.h"
59 #include "ui/views/drag_utils.h"
60 #endif 60 #endif
61 61
62 #if defined(TOOLKIT_USES_GTK) 62 #if defined(TOOLKIT_USES_GTK)
63 #if defined(TOOLKIT_VIEWS) 63 #if defined(TOOLKIT_VIEWS)
64 #include "ui/base/dragdrop/drag_drop_types.h" 64 #include "ui/base/dragdrop/drag_drop_types.h"
65 #include "ui/views/widget/native_widget_gtk.h" 65 #include "ui/views/widget/native_widget_gtk.h"
66 #elif defined(TOOLKIT_GTK) 66 #elif defined(TOOLKIT_GTK)
67 #include "chrome/browser/ui/gtk/custom_drag.h" 67 #include "chrome/browser/ui/gtk/custom_drag.h"
68 #include "chrome/browser/ui/gtk/unity_service.h" 68 #include "chrome/browser/ui/gtk/unity_service.h"
69 #endif // defined(TOOLKIT_GTK) 69 #endif // defined(TOOLKIT_GTK)
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 UMA_HISTOGRAM_ENUMERATION( 632 UMA_HISTOGRAM_ENUMERATION(
633 "Download.CountsChrome", type, CHROME_DOWNLOAD_COUNT_TYPES_LAST_ENTRY); 633 "Download.CountsChrome", type, CHROME_DOWNLOAD_COUNT_TYPES_LAST_ENTRY);
634 } 634 }
635 635
636 void RecordDownloadSource(ChromeDownloadSource source) { 636 void RecordDownloadSource(ChromeDownloadSource source) {
637 UMA_HISTOGRAM_ENUMERATION( 637 UMA_HISTOGRAM_ENUMERATION(
638 "Download.SourcesChrome", source, CHROME_DOWNLOAD_SOURCE_LAST_ENTRY); 638 "Download.SourcesChrome", source, CHROME_DOWNLOAD_SOURCE_LAST_ENTRY);
639 } 639 }
640 640
641 } // namespace download_util 641 } // namespace download_util
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698