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

Side by Side Diff: chrome/browser/views/download_shelf_view.cc

Issue 2826: Move the download code to new directories: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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/views/download_item_view.cc ('k') | chrome/browser/views/download_tab_view.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/views/download_shelf_view.h" 5 #include "chrome/browser/views/download_shelf_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "chrome/app/theme/theme_resources.h" 9 #include "chrome/app/theme/theme_resources.h"
10 #include "chrome/browser/browser.h" 10 #include "chrome/browser/browser.h"
11 #include "chrome/browser/download_item_model.h" 11 #include "chrome/browser/download/download_item_model.h"
12 #include "chrome/browser/download_manager.h" 12 #include "chrome/browser/download/download_manager.h"
13 #include "chrome/browser/download_tab_view.h"
14 #include "chrome/browser/navigation_entry.h" 13 #include "chrome/browser/navigation_entry.h"
15 #include "chrome/browser/tab_contents.h" 14 #include "chrome/browser/tab_contents.h"
16 #include "chrome/browser/views/download_item_view.h" 15 #include "chrome/browser/views/download_item_view.h"
16 #include "chrome/browser/views/download_tab_view.h"
17 #include "chrome/common/gfx/chrome_canvas.h" 17 #include "chrome/common/gfx/chrome_canvas.h"
18 #include "chrome/common/l10n_util.h" 18 #include "chrome/common/l10n_util.h"
19 #include "base/logging.h" 19 #include "base/logging.h"
20 #include "chrome/common/resource_bundle.h" 20 #include "chrome/common/resource_bundle.h"
21 #include "chrome/views/background.h" 21 #include "chrome/views/background.h"
22 #include "chrome/views/button.h" 22 #include "chrome/views/button.h"
23 #include "chrome/views/image_view.h" 23 #include "chrome/views/image_view.h"
24 24
25 #include "generated_resources.h" 25 #include "generated_resources.h"
26 26
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 int index; 264 int index;
265 NavigationController* controller = tab_contents_->controller(); 265 NavigationController* controller = tab_contents_->controller();
266 Browser* browser = Browser::GetBrowserForController(controller, &index); 266 Browser* browser = Browser::GetBrowserForController(controller, &index);
267 DCHECK(browser); 267 DCHECK(browser);
268 browser->ShowNativeUI(DownloadTabUI::GetURL()); 268 browser->ShowNativeUI(DownloadTabUI::GetURL());
269 } 269 }
270 270
271 void DownloadShelfView::ButtonPressed(ChromeViews::BaseButton* button) { 271 void DownloadShelfView::ButtonPressed(ChromeViews::BaseButton* button) {
272 shelf_animation_->Hide(); 272 shelf_animation_->Hide();
273 } 273 }
OLDNEW
« no previous file with comments | « chrome/browser/views/download_item_view.cc ('k') | chrome/browser/views/download_tab_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698