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 // 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 const SkBitmap* warning_icon_; | 190 const SkBitmap* warning_icon_; |
191 | 191 |
192 // The model we query for display information | 192 // The model we query for display information |
193 DownloadItem* download_; | 193 DownloadItem* download_; |
194 | 194 |
195 // Our parent view that owns us. | 195 // Our parent view that owns us. |
196 DownloadShelfView* parent_; | 196 DownloadShelfView* parent_; |
197 | 197 |
198 // Elements of our particular download | 198 // Elements of our particular download |
199 std::wstring status_text_; | 199 std::wstring status_text_; |
200 bool show_status_text_; | |
201 | 200 |
202 // The font used to print the file name and status. | 201 // The font used to print the file name and status. |
203 gfx::Font font_; | 202 gfx::Font font_; |
204 | 203 |
205 // The tooltip. | 204 // The tooltip. |
206 std::wstring tooltip_text_; | 205 std::wstring tooltip_text_; |
207 | 206 |
208 // The current state (normal, hot or pushed) of the body and drop-down. | 207 // The current state (normal, hot or pushed) of the body and drop-down. |
209 State body_state_; | 208 State body_state_; |
210 State drop_down_state_; | 209 State drop_down_state_; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // might delete us). | 282 // might delete us). |
284 bool* deleted_; | 283 bool* deleted_; |
285 | 284 |
286 // The name of this view as reported to assistive technology. | 285 // The name of this view as reported to assistive technology. |
287 string16 accessible_name_; | 286 string16 accessible_name_; |
288 | 287 |
289 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 288 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); |
290 }; | 289 }; |
291 | 290 |
292 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ | 291 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ |
OLD | NEW |