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

Side by Side Diff: chrome/browser/download/test_download_shelf.cc

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
« no previous file with comments | « chrome/browser/download/test_download_shelf.h ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/download/test_download_shelf.h" 5 #include "chrome/browser/download/test_download_shelf.h"
6 6
7 #include "content/public/browser/download_manager.h" 7 #include "content/public/browser/download_manager.h"
8 8
9 TestDownloadShelf::TestDownloadShelf() 9 TestDownloadShelf::TestDownloadShelf()
10 : is_showing_(false), 10 : is_showing_(false),
(...skipping 29 matching lines...) Expand all
40 40
41 void TestDownloadShelf::ManagerGoingDown(content::DownloadManager* manager) { 41 void TestDownloadShelf::ManagerGoingDown(content::DownloadManager* manager) {
42 DCHECK_EQ(manager, download_manager_); 42 DCHECK_EQ(manager, download_manager_);
43 download_manager_ = NULL; 43 download_manager_ = NULL;
44 } 44 }
45 45
46 void TestDownloadShelf::DoAddDownload(content::DownloadItem* download) { 46 void TestDownloadShelf::DoAddDownload(content::DownloadItem* download) {
47 did_add_download_ = true; 47 did_add_download_ = true;
48 } 48 }
49 49
50 void TestDownloadShelf::DoShow() { 50 void TestDownloadShelf::DoOpen() {
51 is_showing_ = true; 51 is_showing_ = true;
52 } 52 }
53 53
54 void TestDownloadShelf::DoClose(CloseReason reason) { 54 void TestDownloadShelf::DoClose(CloseReason reason) {
55 is_showing_ = false; 55 is_showing_ = false;
56 } 56 }
57 57
58 void TestDownloadShelf::DoHide() {
59 is_showing_ = false;
60 }
61
62 void TestDownloadShelf::DoUnhide() {
63 is_showing_ = true;
64 }
65
58 base::TimeDelta TestDownloadShelf::GetTransientDownloadShowDelay() { 66 base::TimeDelta TestDownloadShelf::GetTransientDownloadShowDelay() {
59 return base::TimeDelta(); 67 return base::TimeDelta();
60 } 68 }
61 69
62 content::DownloadManager* TestDownloadShelf::GetDownloadManager() { 70 content::DownloadManager* TestDownloadShelf::GetDownloadManager() {
63 return download_manager_; 71 return download_manager_;
64 } 72 }
OLDNEW
« no previous file with comments | « chrome/browser/download/test_download_shelf.h ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698