| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |