OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GTK_DOWNLOAD_ITEM_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
6 #define CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 6 #define CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "app/animation.h" | 10 #include "app/animation.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 GtkWidget* bounding_widget_; | 147 GtkWidget* bounding_widget_; |
148 | 148 |
149 // The dangerous download dialog. This will be null for safe downloads. | 149 // The dangerous download dialog. This will be null for safe downloads. |
150 GtkWidget* dangerous_prompt_; | 150 GtkWidget* dangerous_prompt_; |
151 | 151 |
152 // An hbox for holding components of the dangerous download dialog. | 152 // An hbox for holding components of the dangerous download dialog. |
153 GtkWidget* dangerous_hbox_; | 153 GtkWidget* dangerous_hbox_; |
154 int dangerous_hbox_start_width_; | 154 int dangerous_hbox_start_width_; |
155 int dangerous_hbox_full_width_; | 155 int dangerous_hbox_full_width_; |
156 | 156 |
157 // The ID of the handler for the parent shelf's "size-allocate" event. We save | |
158 // it so we can disconnect when we are destroyed. | |
159 gulong resize_handler_id_; | |
160 | |
161 // The animation when this item is first added to the shelf. | 157 // The animation when this item is first added to the shelf. |
162 scoped_ptr<SlideAnimation> new_item_animation_; | 158 scoped_ptr<SlideAnimation> new_item_animation_; |
163 | 159 |
164 // Progress animation. | 160 // Progress animation. |
165 base::RepeatingTimer<DownloadItemGtk> progress_timer_; | 161 base::RepeatingTimer<DownloadItemGtk> progress_timer_; |
166 | 162 |
167 // Animation for download complete. | 163 // Animation for download complete. |
168 scoped_ptr<SlideAnimation> complete_animation_; | 164 scoped_ptr<SlideAnimation> complete_animation_; |
169 | 165 |
170 // The file icon for the download. May be null. | 166 // The file icon for the download. May be null. |
171 SkBitmap* icon_; | 167 SkBitmap* icon_; |
172 | 168 |
173 // For canceling an in progress icon request. | 169 // For canceling an in progress icon request. |
174 CancelableRequestConsumerT<int, 0> icon_consumer_; | 170 CancelableRequestConsumerT<int, 0> icon_consumer_; |
175 }; | 171 }; |
176 | 172 |
177 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 173 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
OLD | NEW |