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

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

Issue 11673004: No need to pass DownloadItemModel ownership. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DownloadShelfContextMenu class cleanup and require GetMenuModel() to return non-NULL Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/download/test_download_shelf.h ('k') | chrome/browser/ui/browser.cc » ('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 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
OLDNEW
« no previous file with comments | « chrome/browser/download/test_download_shelf.h ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698