OLD | NEW |
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 TestDownloadShelf::TestDownloadShelf() | 7 TestDownloadShelf::TestDownloadShelf() |
8 : is_showing_(false) { | 8 : is_showing_(false) { |
9 } | 9 } |
10 | 10 |
11 TestDownloadShelf::~TestDownloadShelf() { | 11 TestDownloadShelf::~TestDownloadShelf() { |
12 } | 12 } |
13 | 13 |
14 bool TestDownloadShelf::IsShowing() const { | 14 bool TestDownloadShelf::IsShowing() const { |
15 return is_showing_; | 15 return is_showing_; |
16 } | 16 } |
17 | 17 |
18 bool TestDownloadShelf::IsClosing() const { | 18 bool TestDownloadShelf::IsClosing() const { |
19 return false; | 19 return false; |
20 } | 20 } |
21 | 21 |
22 Browser* TestDownloadShelf::browser() const { | 22 Browser* TestDownloadShelf::browser() const { |
23 return NULL; | 23 return NULL; |
24 } | 24 } |
25 | 25 |
26 void TestDownloadShelf::DoAddDownload(DownloadItemModel* download_model) { | 26 void TestDownloadShelf::DoAddDownload(content::DownloadItem* download) { |
27 } | 27 } |
28 | 28 |
29 void TestDownloadShelf::DoShow() { | 29 void TestDownloadShelf::DoShow() { |
30 is_showing_ = true; | 30 is_showing_ = true; |
31 } | 31 } |
32 | 32 |
33 void TestDownloadShelf::DoClose() { | 33 void TestDownloadShelf::DoClose() { |
34 is_showing_ = false; | 34 is_showing_ = false; |
35 } | 35 } |
36 | 36 |
OLD | NEW |