summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_util.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-11 22:18:19 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-11 22:18:19 +0000
commit79114c013c0bb312c4efdda33935b2340187e6cf (patch)
treecd02466045448001b7cff19021e7fd002f841907 /chrome/browser/download/download_util.h
parent26ebce450f0e708eb8c173ce7b5a303a00b502a9 (diff)
downloadchromium_src-79114c013c0bb312c4efdda33935b2340187e6cf.zip
chromium_src-79114c013c0bb312c4efdda33935b2340187e6cf.tar.gz
chromium_src-79114c013c0bb312c4efdda33935b2340187e6cf.tar.bz2
Download progress and complete animation on linux.
Review URL: http://codereview.chromium.org/113179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_util.h')
-rw-r--r--chrome/browser/download/download_util.h16
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