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

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

Issue 3173043: Move theme files in chrome/browser/ into a themes/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/cocoa/download_shelf_view.h" 5 #import "chrome/browser/cocoa/download_shelf_view.h"
6 6
7 #include "base/scoped_nsobject.h" 7 #include "base/scoped_nsobject.h"
8 #include "chrome/browser/browser_theme_provider.h"
9 #import "chrome/browser/cocoa/themed_window.h" 8 #import "chrome/browser/cocoa/themed_window.h"
10 #import "chrome/browser/cocoa/view_id_util.h" 9 #import "chrome/browser/cocoa/view_id_util.h"
10 #include "chrome/browser/themes/browser_theme_provider.h"
11 #include "grit/theme_resources.h" 11 #include "grit/theme_resources.h"
12 12
13 @implementation DownloadShelfView 13 @implementation DownloadShelfView
14 14
15 - (NSColor*)strokeColor { 15 - (NSColor*)strokeColor {
16 BOOL isKey = [[self window] isKeyWindow]; 16 BOOL isKey = [[self window] isKeyWindow];
17 ThemeProvider* themeProvider = [[self window] themeProvider]; 17 ThemeProvider* themeProvider = [[self window] themeProvider];
18 return themeProvider ? themeProvider->GetNSColor( 18 return themeProvider ? themeProvider->GetNSColor(
19 isKey ? BrowserThemeProvider::COLOR_TOOLBAR_STROKE : 19 isKey ? BrowserThemeProvider::COLOR_TOOLBAR_STROKE :
20 BrowserThemeProvider::COLOR_TOOLBAR_STROKE_INACTIVE, true) : 20 BrowserThemeProvider::COLOR_TOOLBAR_STROKE_INACTIVE, true) :
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // window around. 62 // window around.
63 - (BOOL)mouseDownCanMoveWindow { 63 - (BOOL)mouseDownCanMoveWindow {
64 return NO; 64 return NO;
65 } 65 }
66 66
67 - (ViewID)viewID { 67 - (ViewID)viewID {
68 return VIEW_ID_DOWNLOAD_SHELF; 68 return VIEW_ID_DOWNLOAD_SHELF;
69 } 69 }
70 70
71 @end 71 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698