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

Side by Side Diff: chrome/browser/ui/cocoa/download/download_show_all_button.mm

Issue 468233004: Cleanup: Another round of removing unneeded grit #includes in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac, undo ui_localizer.mm Created 6 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) 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 #import "chrome/browser/ui/cocoa/download/download_show_all_button.h" 5 #import "chrome/browser/ui/cocoa/download/download_show_all_button.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "chrome/browser/ui/cocoa/download/download_show_all_cell.h" 8 #import "chrome/browser/ui/cocoa/download/download_show_all_cell.h"
9 #import "chrome/browser/ui/cocoa/nsview_additions.h" 9 #import "chrome/browser/ui/cocoa/nsview_additions.h"
10 #import "chrome/browser/ui/cocoa/view_id_util.h" 10 #import "chrome/browser/ui/cocoa/view_id_util.h"
11 #include "grit/generated_resources.h"
12 #include "grit/theme_resources.h" 11 #include "grit/theme_resources.h"
13 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
14 #include "ui/gfx/image/image.h" 13 #include "ui/gfx/image/image.h"
15 14
16 @implementation DownloadShowAllButton 15 @implementation DownloadShowAllButton
17 16
18 - (void)awakeFromNib { 17 - (void)awakeFromNib {
19 DCHECK([[self cell] isKindOfClass:[DownloadShowAllCell class]]); 18 DCHECK([[self cell] isKindOfClass:[DownloadShowAllCell class]]);
20 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 19 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
21 NSImage* favicon = rb.GetNativeImageNamed(IDR_DOWNLOADS_FAVICON).ToNSImage(); 20 NSImage* favicon = rb.GetNativeImageNamed(IDR_DOWNLOADS_FAVICON).ToNSImage();
(...skipping 21 matching lines...) Expand all
43 return YES; 42 return YES;
44 } 43 }
45 44
46 - (void)drawRect:(NSRect)rect { 45 - (void)drawRect:(NSRect)rect {
47 NSView* downloadShelfView = [self ancestorWithViewID:VIEW_ID_DOWNLOAD_SHELF]; 46 NSView* downloadShelfView = [self ancestorWithViewID:VIEW_ID_DOWNLOAD_SHELF];
48 [self cr_drawUsingAncestor:downloadShelfView inRect:rect]; 47 [self cr_drawUsingAncestor:downloadShelfView inRect:rect];
49 [super drawRect:rect]; 48 [super drawRect:rect];
50 } 49 }
51 50
52 @end 51 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698