| 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 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void Closed(); | 117 void Closed(); |
| 118 | 118 |
| 119 // Returns true if we can auto close. We can auto-close if all the items on | 119 // Returns true if we can auto close. We can auto-close if all the items on |
| 120 // the shelf have been opened. | 120 // the shelf have been opened. |
| 121 bool CanAutoClose(); | 121 bool CanAutoClose(); |
| 122 | 122 |
| 123 // Gets the |DownloadItem| for the i^th download view. TODO(estade): this | 123 // Gets the |DownloadItem| for the i^th download view. TODO(estade): this |
| 124 // shouldn't be necessary after we only have one type of DownloadItemView. | 124 // shouldn't be necessary after we only have one type of DownloadItemView. |
| 125 content::DownloadItem* GetDownloadItemForView(size_t i); | 125 content::DownloadItem* GetDownloadItemForView(size_t i); |
| 126 | 126 |
| 127 // Returns the color of text for the shelf (used for deriving icon color). |
| 128 SkColor GetTextColorForIconMd(); |
| 129 |
| 127 // The browser for this shelf. | 130 // The browser for this shelf. |
| 128 Browser* browser_; | 131 Browser* browser_; |
| 129 | 132 |
| 130 // The animation for adding new items to the shelf. | 133 // The animation for adding new items to the shelf. |
| 131 gfx::SlideAnimation new_item_animation_; | 134 gfx::SlideAnimation new_item_animation_; |
| 132 | 135 |
| 133 // The show/hide animation for the shelf itself. | 136 // The show/hide animation for the shelf itself. |
| 134 gfx::SlideAnimation shelf_animation_; | 137 gfx::SlideAnimation shelf_animation_; |
| 135 | 138 |
| 136 // The download views. These are also child Views, and deleted when | 139 // The download views. These are also child Views, and deleted when |
| (...skipping 13 matching lines...) Expand all Loading... |
| 150 | 153 |
| 151 // The window this shelf belongs to. | 154 // The window this shelf belongs to. |
| 152 BrowserView* parent_; | 155 BrowserView* parent_; |
| 153 | 156 |
| 154 views::MouseWatcher mouse_watcher_; | 157 views::MouseWatcher mouse_watcher_; |
| 155 | 158 |
| 156 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); | 159 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); |
| 157 }; | 160 }; |
| 158 | 161 |
| 159 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ | 162 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ |
| OLD | NEW |