| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 257   // The tooltip.  Only displayed when not showing a warning dialog. | 257   // The tooltip.  Only displayed when not showing a warning dialog. | 
| 258   base::string16 tooltip_text_; | 258   base::string16 tooltip_text_; | 
| 259 | 259 | 
| 260   // The current state (normal, hot or pushed) of the body and drop-down. | 260   // The current state (normal, hot or pushed) of the body and drop-down. | 
| 261   State body_state_; | 261   State body_state_; | 
| 262   State drop_down_state_; | 262   State drop_down_state_; | 
| 263 | 263 | 
| 264   // Mode of the download item view. | 264   // Mode of the download item view. | 
| 265   Mode mode_; | 265   Mode mode_; | 
| 266 | 266 | 
| 267   // In degrees, for downloads with no known total size. | 267   // When download progress began animating. Used for downloads of unknown size. | 
| 268   int progress_angle_; | 268   base::TimeTicks progress_start_time_; | 
| 269 | 269 | 
| 270   // The left and right x coordinates of the drop-down button. | 270   // The left and right x coordinates of the drop-down button. | 
| 271   int drop_down_x_left_; | 271   int drop_down_x_left_; | 
| 272   int drop_down_x_right_; | 272   int drop_down_x_right_; | 
| 273 | 273 | 
| 274   // Used when we are showing the menu to show the drop-down as pressed. | 274   // Used when we are showing the menu to show the drop-down as pressed. | 
| 275   bool drop_down_pressed_; | 275   bool drop_down_pressed_; | 
| 276 | 276 | 
| 277   // The height of the box formed by the background images and its labels. | 277   // The height of the box formed by the background images and its labels. | 
| 278   int box_height_; | 278   int box_height_; | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 343   scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 343   scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 
| 344 | 344 | 
| 345   // Method factory used to delay reenabling of the item when opening the | 345   // Method factory used to delay reenabling of the item when opening the | 
| 346   // downloaded file. | 346   // downloaded file. | 
| 347   base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_; | 347   base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_; | 
| 348 | 348 | 
| 349   DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 349   DISALLOW_COPY_AND_ASSIGN(DownloadItemView); | 
| 350 }; | 350 }; | 
| 351 | 351 | 
| 352 #endif  // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ | 352 #endif  // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_ITEM_VIEW_H__ | 
| OLD | NEW | 
|---|