| OLD | NEW |
| 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 #include "chrome/browser/ui/cocoa/download/background_theme.h" | 5 #include "chrome/browser/ui/cocoa/download/background_theme.h" |
| 6 | 6 |
| 7 #import "chrome/browser/themes/theme_service.h" | 7 #import "chrome/browser/themes/theme_service.h" |
| 8 | 8 |
| 9 BackgroundTheme::BackgroundTheme(ui::ThemeProvider* provider) : | 9 BackgroundTheme::BackgroundTheme(ui::ThemeProvider* provider) : |
| 10 provider_(provider) { | 10 provider_(provider) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 bool BackgroundTheme::ShouldUseNativeFrame() const { | 46 bool BackgroundTheme::ShouldUseNativeFrame() const { |
| 47 return false; | 47 return false; |
| 48 } | 48 } |
| 49 | 49 |
| 50 bool BackgroundTheme::HasCustomImage(int id) const { | 50 bool BackgroundTheme::HasCustomImage(int id) const { |
| 51 return false; | 51 return false; |
| 52 } | 52 } |
| 53 | 53 |
| 54 base::RefCountedMemory* BackgroundTheme::GetRawData(int id) const { | 54 base::RefCountedMemory* BackgroundTheme::GetRawData( |
| 55 int id, |
| 56 ui::ScaleFactor scale_factor) const { |
| 55 return NULL; | 57 return NULL; |
| 56 } | 58 } |
| 57 | 59 |
| 58 NSImage* BackgroundTheme::GetNSImageNamed(int id, bool allow_default) const { | 60 NSImage* BackgroundTheme::GetNSImageNamed(int id, bool allow_default) const { |
| 59 return nil; | 61 return nil; |
| 60 } | 62 } |
| 61 | 63 |
| 62 NSColor* BackgroundTheme::GetNSImageColorNamed(int id, | 64 NSColor* BackgroundTheme::GetNSImageColorNamed(int id, |
| 63 bool allow_default) const { | 65 bool allow_default) const { |
| 64 return nil; | 66 return nil; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 82 return buttonGradient_.get(); | 84 return buttonGradient_.get(); |
| 83 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED: | 85 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED: |
| 84 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: | 86 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: |
| 85 return buttonPressedGradient_.get(); | 87 return buttonPressedGradient_.get(); |
| 86 default: | 88 default: |
| 87 return provider_->GetNSGradient(id); | 89 return provider_->GetNSGradient(id); |
| 88 } | 90 } |
| 89 } | 91 } |
| 90 | 92 |
| 91 | 93 |
| OLD | NEW |