OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "base/timer.h" | 15 #include "base/timer.h" |
16 #include "chrome/browser/icon_manager.h" | 16 #include "chrome/browser/icon_manager.h" |
17 #include "content/browser/download/download_item.h" | 17 #include "content/browser/download/download_item.h" |
18 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
19 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
20 #include "ui/base/animation/animation_delegate.h" | 20 #include "ui/base/animation/animation_delegate.h" |
21 #include "ui/base/animation/slide_animation.h" | 21 #include "ui/base/animation/slide_animation.h" |
22 #include "ui/base/gtk/gtk_signal.h" | 22 #include "ui/base/gtk/gtk_signal.h" |
23 #include "ui/base/gtk/owned_widget_gtk.h" | 23 #include "ui/base/gtk/owned_widget_gtk.h" |
24 | 24 |
25 class BaseDownloadItemModel; | 25 class BaseDownloadItemModel; |
26 class DownloadShelfContextMenuGtk; | 26 class DownloadShelfContextMenuGtk; |
27 class DownloadShelfGtk; | 27 class DownloadShelfGtk; |
28 class GtkThemeService; | 28 class GtkThemeService; |
29 class NineBox; | 29 class NineBox; |
30 class SkBitmap; | |
31 | 30 |
32 namespace gfx { | 31 namespace gfx { |
33 class Image; | 32 class Image; |
34 } | 33 } |
35 | 34 |
36 namespace ui { | 35 namespace ui { |
37 class SlideAnimation; | 36 class SlideAnimation; |
38 } | 37 } |
39 | 38 |
40 class DownloadItemGtk : public DownloadItem::Observer, | 39 class DownloadItemGtk : public DownloadItem::Observer, |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 235 |
237 // For canceling an in progress icon request. | 236 // For canceling an in progress icon request. |
238 CancelableRequestConsumerT<int, 0> icon_consumer_; | 237 CancelableRequestConsumerT<int, 0> icon_consumer_; |
239 | 238 |
240 // Indicates when the download has completed, so we don't redo | 239 // Indicates when the download has completed, so we don't redo |
241 // on-completion actions. | 240 // on-completion actions. |
242 bool download_complete_; | 241 bool download_complete_; |
243 }; | 242 }; |
244 | 243 |
245 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ | 244 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ |
OLD | NEW |