OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // A ChromeView that implements one download on the Download shelf. | 5 // A ChromeView that implements one download on the Download shelf. |
6 // Each DownloadItemView contains an application icon, a text label | 6 // Each DownloadItemView contains an application icon, a text label |
7 // indicating the download's file name, a text label indicating the | 7 // indicating the download's file name, a text label indicating the |
8 // download's status (such as the number of bytes downloaded so far) | 8 // download's status (such as the number of bytes downloaded so far) |
9 // and a button for canceling an in progress download, or opening | 9 // and a button for canceling an in progress download, or opening |
10 // the completed download. | 10 // the completed download. |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 DownloadItem* download_; | 158 DownloadItem* download_; |
159 | 159 |
160 // Our parent view that owns us. | 160 // Our parent view that owns us. |
161 DownloadShelfView* parent_; | 161 DownloadShelfView* parent_; |
162 | 162 |
163 // Elements of our particular download | 163 // Elements of our particular download |
164 std::wstring status_text_; | 164 std::wstring status_text_; |
165 bool show_status_text_; | 165 bool show_status_text_; |
166 | 166 |
167 // The font used to print the file name and status. | 167 // The font used to print the file name and status. |
168 ChromeFont font_; | 168 gfx::Font font_; |
169 | 169 |
170 // The current state (normal, hot or pushed) of the body and drop-down. | 170 // The current state (normal, hot or pushed) of the body and drop-down. |
171 State body_state_; | 171 State body_state_; |
172 State drop_down_state_; | 172 State drop_down_state_; |
173 | 173 |
174 // In degrees, for downloads with no known total size. | 174 // In degrees, for downloads with no known total size. |
175 int progress_angle_; | 175 int progress_angle_; |
176 | 176 |
177 // The x coordinate at which the drop-down button starts. | 177 // The x coordinate at which the drop-down button starts. |
178 int drop_down_x_; | 178 int drop_down_x_; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 base::Time creation_time_; | 233 base::Time creation_time_; |
234 | 234 |
235 // Method factory used to delay reenabling of the item when opening the | 235 // Method factory used to delay reenabling of the item when opening the |
236 // downloaded file. | 236 // downloaded file. |
237 ScopedRunnableMethodFactory<DownloadItemView> reenable_method_factory_; | 237 ScopedRunnableMethodFactory<DownloadItemView> reenable_method_factory_; |
238 | 238 |
239 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 239 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); |
240 }; | 240 }; |
241 | 241 |
242 #endif // CHROME_BROWSER_VIEWS_DOWNLOAD_ITEM_VIEW_H__ | 242 #endif // CHROME_BROWSER_VIEWS_DOWNLOAD_ITEM_VIEW_H__ |
OLD | NEW |