Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: chrome/browser/ui/views/download/download_shelf_view.h

Issue 2094553002: MD - Fix coloring of buttons on DL shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compiling is always a plus Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view_md.cc ('k') | chrome/browser/ui/views/download/download_shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698