diff options
Diffstat (limited to 'chrome/browser/download/download_util.h')
-rw-r--r-- | chrome/browser/download/download_util.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h index a8122ce..f3c658f 100644 --- a/chrome/browser/download/download_util.h +++ b/chrome/browser/download/download_util.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // @@ -7,16 +7,16 @@ #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ -#include <objidl.h> - #include <set> #include <string> +#include "app/gfx/chrome_canvas.h" #include "base/basictypes.h" #include "base/task.h" -#include "views/controls/menu/menu.h" -#include "views/event.h" + +#if defined(OS_WIN) #include "views/view.h" +#endif class BaseDownloadItemModel; class DownloadItem; @@ -98,7 +98,9 @@ enum PaintDownloadProgressSize { // drawing in a right-to-left locale, we need to mirror the position of the // progress animation within the containing View. void PaintDownloadProgress(ChromeCanvas* canvas, +#if defined(OS_WIN) views::View* containing_view, +#endif int origin_x, int origin_y, int start_angle, @@ -106,12 +108,15 @@ void PaintDownloadProgress(ChromeCanvas* canvas, PaintDownloadProgressSize size); void PaintDownloadComplete(ChromeCanvas* canvas, +#if defined(OS_WIN) views::View* containing_view, +#endif int origin_x, int origin_y, double animation_progress, PaintDownloadProgressSize size); +#if defined(OS_WIN) // Drag support ---------------------------------------------------------------- // Helper function for download views to use when acting as a drag source for a @@ -122,6 +127,7 @@ void DragDownload(const DownloadItem* download, SkBitmap* icon); // Copy all executable file extensions. void InitializeExeTypes(std::set<std::string>* exe_extensions); +#endif } // namespace download_util |