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 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // The shelf on which we are displayed. | 153 // The shelf on which we are displayed. |
154 DownloadShelfGtk* parent_shelf_; | 154 DownloadShelfGtk* parent_shelf_; |
155 | 155 |
156 // The widget that contains the body and menu dropdown. | 156 // The widget that contains the body and menu dropdown. |
157 OwnedWidgetGtk hbox_; | 157 OwnedWidgetGtk hbox_; |
158 | 158 |
159 // The widget that contains the name of the download and the progress | 159 // The widget that contains the name of the download and the progress |
160 // animation. | 160 // animation. |
161 OwnedWidgetGtk body_; | 161 OwnedWidgetGtk body_; |
162 | 162 |
| 163 // The widget that contains the texts of |name_label_| and |status_label_|. |
| 164 GtkWidget* text_stack_; |
| 165 |
163 // The GtkLabel that holds the download title text. | 166 // The GtkLabel that holds the download title text. |
164 GtkWidget* name_label_; | 167 GtkWidget* name_label_; |
165 | 168 |
166 // The GtkLabel that holds the status text. | 169 // The GtkLabel that holds the status text. |
167 GtkWidget* status_label_; | 170 GtkWidget* status_label_; |
168 | 171 |
169 // The current text of status label | 172 // The current text of status label |
170 std::string status_text_; | 173 std::string status_text_; |
171 | 174 |
172 // The widget that creates a dropdown menu when pressed. | 175 // The widget that creates a dropdown menu when pressed. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 235 |
233 // For canceling an in progress icon request. | 236 // For canceling an in progress icon request. |
234 CancelableRequestConsumerT<int, 0> icon_consumer_; | 237 CancelableRequestConsumerT<int, 0> icon_consumer_; |
235 | 238 |
236 // Indicates when the download has completed, so we don't redo | 239 // Indicates when the download has completed, so we don't redo |
237 // on-completion actions. | 240 // on-completion actions. |
238 bool download_complete_; | 241 bool download_complete_; |
239 }; | 242 }; |
240 | 243 |
241 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ | 244 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ |
OLD | NEW |