| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 void UpdateAccessibleName(); | 225 void UpdateAccessibleName(); |
| 226 | 226 |
| 227 // Update the location of the drop down button. | 227 // Update the location of the drop down button. |
| 228 void UpdateDropDownButtonPosition(); | 228 void UpdateDropDownButtonPosition(); |
| 229 | 229 |
| 230 // Show/Hide/Reset |animation| based on the state transition specified by | 230 // Show/Hide/Reset |animation| based on the state transition specified by |
| 231 // |from| and |to|. | 231 // |from| and |to|. |
| 232 void AnimateStateTransition(State from, State to, | 232 void AnimateStateTransition(State from, State to, |
| 233 gfx::SlideAnimation* animation); | 233 gfx::SlideAnimation* animation); |
| 234 | 234 |
| 235 // Callback for |progress_timer_|. |
| 236 void ProgressTimerFired(); |
| 237 |
| 235 // The different images used for the background. | 238 // The different images used for the background. |
| 236 BodyImageSet normal_body_image_set_; | 239 BodyImageSet normal_body_image_set_; |
| 237 BodyImageSet hot_body_image_set_; | 240 BodyImageSet hot_body_image_set_; |
| 238 BodyImageSet pushed_body_image_set_; | 241 BodyImageSet pushed_body_image_set_; |
| 239 BodyImageSet dangerous_mode_body_image_set_; | 242 BodyImageSet dangerous_mode_body_image_set_; |
| 240 BodyImageSet malicious_mode_body_image_set_; | 243 BodyImageSet malicious_mode_body_image_set_; |
| 241 DropDownImageSet normal_drop_down_image_set_; | 244 DropDownImageSet normal_drop_down_image_set_; |
| 242 DropDownImageSet hot_drop_down_image_set_; | 245 DropDownImageSet hot_drop_down_image_set_; |
| 243 DropDownImageSet pushed_drop_down_image_set_; | 246 DropDownImageSet pushed_drop_down_image_set_; |
| 244 | 247 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 351 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
| 349 | 352 |
| 350 // Method factory used to delay reenabling of the item when opening the | 353 // Method factory used to delay reenabling of the item when opening the |
| 351 // downloaded file. | 354 // downloaded file. |
| 352 base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_; | 355 base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_; |
| 353 | 356 |
| 354 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 357 DISALLOW_COPY_AND_ASSIGN(DownloadItemView); |
| 355 }; | 358 }; |
| 356 | 359 |
| 357 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ | 360 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ |
| OLD | NEW |