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

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

Issue 6849030: Add support for multi resolution icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comments Created 9 years, 8 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 #import "chrome/browser/ui/cocoa/download/download_shelf_view.h" 5 #import "chrome/browser/ui/cocoa/download/download_shelf_view.h"
6 6
7 #include "base/memory/scoped_nsobject.h" 7 #include "base/memory/scoped_nsobject.h"
8 #include "chrome/browser/themes/theme_service.h" 8 #include "chrome/browser/themes/theme_service.h"
9 #import "chrome/browser/ui/cocoa/themed_window.h" 9 #import "chrome/browser/ui/cocoa/themed_window.h"
10 #import "chrome/browser/ui/cocoa/view_id_util.h" 10 #import "chrome/browser/ui/cocoa/view_id_util.h"
11 #include "grit/theme_resources.h" 11 #include "grit/theme_resources.h"
12 #include "grit/theme_resources_standard.h"
12 13
13 @implementation DownloadShelfView 14 @implementation DownloadShelfView
14 15
15 - (NSColor*)strokeColor { 16 - (NSColor*)strokeColor {
16 BOOL isKey = [[self window] isKeyWindow]; 17 BOOL isKey = [[self window] isKeyWindow];
17 ui::ThemeProvider* themeProvider = [[self window] themeProvider]; 18 ui::ThemeProvider* themeProvider = [[self window] themeProvider];
18 return themeProvider ? themeProvider->GetNSColor( 19 return themeProvider ? themeProvider->GetNSColor(
19 isKey ? ThemeService::COLOR_TOOLBAR_STROKE : 20 isKey ? ThemeService::COLOR_TOOLBAR_STROKE :
20 ThemeService::COLOR_TOOLBAR_STROKE_INACTIVE, true) : 21 ThemeService::COLOR_TOOLBAR_STROKE_INACTIVE, true) :
21 [NSColor blackColor]; 22 [NSColor blackColor];
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // window around. 63 // window around.
63 - (BOOL)mouseDownCanMoveWindow { 64 - (BOOL)mouseDownCanMoveWindow {
64 return NO; 65 return NO;
65 } 66 }
66 67
67 - (ViewID)viewID { 68 - (ViewID)viewID {
68 return VIEW_ID_DOWNLOAD_SHELF; 69 return VIEW_ID_DOWNLOAD_SHELF;
69 } 70 }
70 71
71 @end 72 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_frame_view.mm ('k') | chrome/browser/ui/cocoa/hover_image_button_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698