| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 // This is the leftmost widget on |parent_shelf_| that is not a download item. | 145 // This is the leftmost widget on |parent_shelf_| that is not a download item. |
| 146 // We do not want to overlap it. | 146 // We do not want to overlap it. |
| 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_full_width_; | 155 int dangerous_hbox_full_width_; |
| 155 | 156 |
| 156 // The ID of the handler for the parent shelf's "size-allocate" event. We save | 157 // The ID of the handler for the parent shelf's "size-allocate" event. We save |
| 157 // it so we can disconnect when we are destroyed. | 158 // it so we can disconnect when we are destroyed. |
| 158 gulong resize_handler_id_; | 159 gulong resize_handler_id_; |
| 159 | 160 |
| 160 // The animation when this item is first added to the shelf. | 161 // The animation when this item is first added to the shelf. |
| 161 scoped_ptr<SlideAnimation> new_item_animation_; | 162 scoped_ptr<SlideAnimation> new_item_animation_; |
| 162 | 163 |
| 163 // Progress animation. | 164 // Progress animation. |
| 164 base::RepeatingTimer<DownloadItemGtk> progress_timer_; | 165 base::RepeatingTimer<DownloadItemGtk> progress_timer_; |
| 165 | 166 |
| 166 // Animation for download complete. | 167 // Animation for download complete. |
| 167 scoped_ptr<SlideAnimation> complete_animation_; | 168 scoped_ptr<SlideAnimation> complete_animation_; |
| 168 | 169 |
| 169 // The file icon for the download. May be null. | 170 // The file icon for the download. May be null. |
| 170 SkBitmap* icon_; | 171 SkBitmap* icon_; |
| 171 | 172 |
| 172 // For canceling an in progress icon request. | 173 // For canceling an in progress icon request. |
| 173 CancelableRequestConsumerT<int, 0> icon_consumer_; | 174 CancelableRequestConsumerT<int, 0> icon_consumer_; |
| 174 }; | 175 }; |
| 175 | 176 |
| 176 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 177 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
| OLD | NEW |