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

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

Issue 2688413012: Don't animate the download shelf when entering/exiting fullscreen. (Closed)
Patch Set: Turn on animation for all tests except the one that was flaky due to animation. Created 3 years, 10 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Removes a specified download view. The supplied view is deleted after 89 // Removes a specified download view. The supplied view is deleted after
90 // it's removed. 90 // it's removed.
91 void RemoveDownloadView(views::View* view); 91 void RemoveDownloadView(views::View* view);
92 92
93 // Updates |button| according to the active theme. 93 // Updates |button| according to the active theme.
94 void ConfigureButtonForTheme(views::MdTextButton* button); 94 void ConfigureButtonForTheme(views::MdTextButton* button);
95 95
96 protected: 96 protected:
97 // Implementation of DownloadShelf. 97 // Implementation of DownloadShelf.
98 void DoAddDownload(content::DownloadItem* download) override; 98 void DoAddDownload(content::DownloadItem* download) override;
99 void DoShow() override; 99 void DoOpen() override;
100 void DoClose(CloseReason reason) override; 100 void DoClose(CloseReason reason) override;
101 void DoHide() override;
102 void DoUnhide() override;
101 103
102 // From AccessiblePaneView 104 // From AccessiblePaneView
103 views::View* GetDefaultFocusableChild() override; 105 views::View* GetDefaultFocusableChild() override;
104 106
105 private: 107 private:
106 // Adds a View representing a download to this DownloadShelfView. 108 // Adds a View representing a download to this DownloadShelfView.
107 // DownloadShelfView takes ownership of the View, and will delete it as 109 // DownloadShelfView takes ownership of the View, and will delete it as
108 // necessary. 110 // necessary.
109 void AddDownloadView(DownloadItemView* view); 111 void AddDownloadView(DownloadItemView* view);
110 112
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 154
153 // The window this shelf belongs to. 155 // The window this shelf belongs to.
154 BrowserView* parent_; 156 BrowserView* parent_;
155 157
156 views::MouseWatcher mouse_watcher_; 158 views::MouseWatcher mouse_watcher_;
157 159
158 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); 160 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView);
159 }; 161 };
160 162
161 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 163 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/exclusive_access/fullscreen_controller.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