| 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 #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 29 matching lines...) Expand all Loading... |
| 40 } | 40 } |
| 41 | 41 |
| 42 bool BackgroundTheme::ShouldUseNativeFrame() const { | 42 bool BackgroundTheme::ShouldUseNativeFrame() const { |
| 43 return false; | 43 return false; |
| 44 } | 44 } |
| 45 | 45 |
| 46 bool BackgroundTheme::HasCustomImage(int id) const { | 46 bool BackgroundTheme::HasCustomImage(int id) const { |
| 47 return false; | 47 return false; |
| 48 } | 48 } |
| 49 | 49 |
| 50 RefCountedMemory* BackgroundTheme::GetRawData(int id) const { | 50 base::RefCountedMemory* BackgroundTheme::GetRawData(int id) const { |
| 51 return NULL; | 51 return NULL; |
| 52 } | 52 } |
| 53 | 53 |
| 54 NSImage* BackgroundTheme::GetNSImageNamed(int id, bool allow_default) const { | 54 NSImage* BackgroundTheme::GetNSImageNamed(int id, bool allow_default) const { |
| 55 return nil; | 55 return nil; |
| 56 } | 56 } |
| 57 | 57 |
| 58 NSColor* BackgroundTheme::GetNSImageColorNamed(int id, | 58 NSColor* BackgroundTheme::GetNSImageColorNamed(int id, |
| 59 bool allow_default) const { | 59 bool allow_default) const { |
| 60 return nil; | 60 return nil; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 78 return buttonGradient_.get(); | 78 return buttonGradient_.get(); |
| 79 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED: | 79 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED: |
| 80 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: | 80 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: |
| 81 return buttonPressedGradient_.get(); | 81 return buttonPressedGradient_.get(); |
| 82 default: | 82 default: |
| 83 return provider_->GetNSGradient(id); | 83 return provider_->GetNSGradient(id); |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 | 86 |
| 87 | 87 |
| OLD | NEW |