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

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

Issue 2439873002: Make all text buttons on download shelf work well with themes, not just (Closed)
Patch Set: dont set bg Created 4 years, 2 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 bool IsClosing() const override; 84 bool IsClosing() const override;
85 Browser* browser() const override; 85 Browser* browser() const override;
86 86
87 // Implementation of MouseWatcherListener override. 87 // Implementation of MouseWatcherListener override.
88 void MouseMovedOutOfHost() override; 88 void MouseMovedOutOfHost() override;
89 89
90 // Removes a specified download view. The supplied view is deleted after 90 // Removes a specified download view. The supplied view is deleted after
91 // it's removed. 91 // it's removed.
92 void RemoveDownloadView(views::View* view); 92 void RemoveDownloadView(views::View* view);
93 93
94 // Updates |button| according to the active theme.
95 void ConfigureButtonForTheme(views::MdTextButton* button);
96
94 protected: 97 protected:
95 // Implementation of DownloadShelf. 98 // Implementation of DownloadShelf.
96 void DoAddDownload(content::DownloadItem* download) override; 99 void DoAddDownload(content::DownloadItem* download) override;
97 void DoShow() override; 100 void DoShow() override;
98 void DoClose(CloseReason reason) override; 101 void DoClose(CloseReason reason) override;
99 102
100 // From AccessiblePaneView 103 // From AccessiblePaneView
101 views::View* GetDefaultFocusableChild() override; 104 views::View* GetDefaultFocusableChild() override;
102 105
103 private: 106 private:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.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