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

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

Issue 7618048: Move the core download files to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/download_shelf_context_menu.h" 5 #include "chrome/browser/download/download_shelf_context_menu.h"
6 6
7 #include "chrome/browser/download/download_item.h"
8 #include "chrome/browser/download/download_item_model.h" 7 #include "chrome/browser/download/download_item_model.h"
8 #include "content/browser/download/download_item.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
11 11
12 DownloadShelfContextMenu::~DownloadShelfContextMenu() {} 12 DownloadShelfContextMenu::~DownloadShelfContextMenu() {}
13 13
14 DownloadShelfContextMenu::DownloadShelfContextMenu( 14 DownloadShelfContextMenu::DownloadShelfContextMenu(
15 BaseDownloadItemModel* download_model) 15 BaseDownloadItemModel* download_model)
16 : download_model_(download_model), 16 : download_model_(download_model),
17 download_item_(download_model->download()) { 17 download_item_(download_model->download()) {
18 } 18 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 ALWAYS_OPEN_TYPE, IDS_DOWNLOAD_MENU_ALWAYS_OPEN_TYPE); 145 ALWAYS_OPEN_TYPE, IDS_DOWNLOAD_MENU_ALWAYS_OPEN_TYPE);
146 finished_download_menu_model_->AddSeparator(); 146 finished_download_menu_model_->AddSeparator();
147 finished_download_menu_model_->AddItemWithStringId( 147 finished_download_menu_model_->AddItemWithStringId(
148 SHOW_IN_FOLDER, IDS_DOWNLOAD_MENU_SHOW); 148 SHOW_IN_FOLDER, IDS_DOWNLOAD_MENU_SHOW);
149 finished_download_menu_model_->AddSeparator(); 149 finished_download_menu_model_->AddSeparator();
150 finished_download_menu_model_->AddItemWithStringId( 150 finished_download_menu_model_->AddItemWithStringId(
151 CANCEL, IDS_DOWNLOAD_MENU_CANCEL); 151 CANCEL, IDS_DOWNLOAD_MENU_CANCEL);
152 152
153 return finished_download_menu_model_.get(); 153 return finished_download_menu_model_.get();
154 } 154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698