| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class BrowserView; | 23 class BrowserView; |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 class DownloadItem; | 26 class DownloadItem; |
| 27 class PageNavigator; | 27 class PageNavigator; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace views { | 30 namespace views { |
| 31 class ImageButton; | 31 class ImageButton; |
| 32 class ImageView; | 32 class ImageView; |
| 33 class MdTextButton; |
| 33 } | 34 } |
| 34 | 35 |
| 35 // DownloadShelfView is a view that contains individual views for each download, | 36 // DownloadShelfView is a view that contains individual views for each download, |
| 36 // as well as a close button and a link to show all downloads. | 37 // as well as a close button and a link to show all downloads. |
| 37 // | 38 // |
| 38 // DownloadShelfView does not hold an infinite number of download views, rather | 39 // DownloadShelfView does not hold an infinite number of download views, rather |
| 39 // it'll automatically remove views once a certain point is reached. | 40 // it'll automatically remove views once a certain point is reached. |
| 40 class DownloadShelfView : public views::AccessiblePaneView, | 41 class DownloadShelfView : public views::AccessiblePaneView, |
| 41 public gfx::AnimationDelegate, | 42 public gfx::AnimationDelegate, |
| 42 public DownloadShelf, | 43 public DownloadShelf, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // the DownloadShelfView is deleted. | 143 // the DownloadShelfView is deleted. |
| 143 std::vector<views::View*> download_views_; | 144 std::vector<views::View*> download_views_; |
| 144 | 145 |
| 145 // An image displayed on the right of the "Show all downloads..." link. | 146 // An image displayed on the right of the "Show all downloads..." link. |
| 146 // TODO(estade): not shown in MD; remove. | 147 // TODO(estade): not shown in MD; remove. |
| 147 views::ImageView* arrow_image_; | 148 views::ImageView* arrow_image_; |
| 148 | 149 |
| 149 // Link for showing all downloads. For MD this is a system style button. | 150 // Link for showing all downloads. For MD this is a system style button. |
| 150 views::View* show_all_view_; | 151 views::View* show_all_view_; |
| 151 | 152 |
| 153 // This is the same as |show_all_view_|, but only valid in MD mode. |
| 154 views::MdTextButton* show_all_view_md_; |
| 155 |
| 152 // Button for closing the downloads. This is contained as a child, and | 156 // Button for closing the downloads. This is contained as a child, and |
| 153 // deleted by View. | 157 // deleted by View. |
| 154 views::ImageButton* close_button_; | 158 views::ImageButton* close_button_; |
| 155 | 159 |
| 156 // The window this shelf belongs to. | 160 // The window this shelf belongs to. |
| 157 BrowserView* parent_; | 161 BrowserView* parent_; |
| 158 | 162 |
| 159 views::MouseWatcher mouse_watcher_; | 163 views::MouseWatcher mouse_watcher_; |
| 160 | 164 |
| 161 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); | 165 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); |
| 162 }; | 166 }; |
| 163 | 167 |
| 164 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ | 168 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ |
| OLD | NEW |