OLD | NEW |
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 #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 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 gfx::Image* image); | 66 gfx::Image* image); |
67 void OnLoadLargeIconComplete(IconManager::Handle handle, | 67 void OnLoadLargeIconComplete(IconManager::Handle handle, |
68 gfx::Image* image); | 68 gfx::Image* image); |
69 | 69 |
70 // Returns the DownloadItem model object belonging to this item. | 70 // Returns the DownloadItem model object belonging to this item. |
71 content::DownloadItem* get_download(); | 71 content::DownloadItem* get_download(); |
72 | 72 |
73 private: | 73 private: |
74 friend class DownloadShelfContextMenuGtk; | 74 friend class DownloadShelfContextMenuGtk; |
75 | 75 |
76 // Returns true IFF the download is dangerous and unconfirmed. | |
77 bool IsDangerous(); | |
78 | |
79 // Functions for controlling the progress animation. | 76 // Functions for controlling the progress animation. |
80 // Repaint the download progress. | 77 // Repaint the download progress. |
81 void UpdateDownloadProgress(); | 78 void UpdateDownloadProgress(); |
82 | 79 |
83 // Starts a repeating timer for UpdateDownloadProgress. | 80 // Starts a repeating timer for UpdateDownloadProgress. |
84 void StartDownloadProgress(); | 81 void StartDownloadProgress(); |
85 | 82 |
86 // Stops the repeating timer. | 83 // Stops the repeating timer. |
87 void StopDownloadProgress(); | 84 void StopDownloadProgress(); |
88 | 85 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 233 |
237 // For canceling an in progress icon request. | 234 // For canceling an in progress icon request. |
238 CancelableRequestConsumerT<int, 0> icon_consumer_; | 235 CancelableRequestConsumerT<int, 0> icon_consumer_; |
239 | 236 |
240 // Indicates when the download has completed, so we don't redo | 237 // Indicates when the download has completed, so we don't redo |
241 // on-completion actions. | 238 // on-completion actions. |
242 bool download_complete_; | 239 bool download_complete_; |
243 }; | 240 }; |
244 | 241 |
245 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ | 242 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ |
OLD | NEW |