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

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

Issue 966983002: downloads: clicking "remove" on chrome://downloads should also hide shelf item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 #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),
11 did_add_download_(false), 11 did_add_download_(false),
12 download_manager_(NULL) { 12 download_manager_(NULL) {
13 } 13 }
14 14
15 TestDownloadShelf::~TestDownloadShelf() { 15 TestDownloadShelf::~TestDownloadShelf() {
16 if (download_manager_) 16 if (download_manager_)
17 download_manager_->RemoveObserver(this); 17 download_manager_->RemoveObserver(this);
18 } 18 }
19 19
20 void TestDownloadShelf::RemoveDownload(content::DownloadItem* download) {
21 }
22
20 bool TestDownloadShelf::IsShowing() const { 23 bool TestDownloadShelf::IsShowing() const {
21 return is_showing_; 24 return is_showing_;
22 } 25 }
23 26
24 bool TestDownloadShelf::IsClosing() const { 27 bool TestDownloadShelf::IsClosing() const {
25 return false; 28 return false;
26 } 29 }
27 30
28 Browser* TestDownloadShelf::browser() const { 31 Browser* TestDownloadShelf::browser() const {
29 return NULL; 32 return NULL;
(...skipping 25 matching lines...) Expand all
55 is_showing_ = false; 58 is_showing_ = false;
56 } 59 }
57 60
58 base::TimeDelta TestDownloadShelf::GetTransientDownloadShowDelay() { 61 base::TimeDelta TestDownloadShelf::GetTransientDownloadShowDelay() {
59 return base::TimeDelta(); 62 return base::TimeDelta();
60 } 63 }
61 64
62 content::DownloadManager* TestDownloadShelf::GetDownloadManager() { 65 content::DownloadManager* TestDownloadShelf::GetDownloadManager() {
63 return download_manager_; 66 return download_manager_;
64 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698