| 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_properties.h" | 7 #import "chrome/browser/themes/theme_properties.h" |
| 8 | 8 |
| 9 BackgroundTheme::BackgroundTheme(const ui::ThemeProvider* provider) | 9 BackgroundTheme::BackgroundTheme(const ui::ThemeProvider* provider) |
| 10 : provider_(provider) { | 10 : provider_(provider) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 } | 40 } |
| 41 | 41 |
| 42 gfx::ImageSkia* BackgroundTheme::GetImageSkiaNamed(int id) const { | 42 gfx::ImageSkia* BackgroundTheme::GetImageSkiaNamed(int id) const { |
| 43 return NULL; | 43 return NULL; |
| 44 } | 44 } |
| 45 | 45 |
| 46 SkColor BackgroundTheme::GetColor(int id) const { | 46 SkColor BackgroundTheme::GetColor(int id) const { |
| 47 return SkColor(); | 47 return SkColor(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 color_utils::HSL BackgroundTheme::GetTint(int id) const { |
| 51 return color_utils::HSL(); |
| 52 } |
| 53 |
| 50 int BackgroundTheme::GetDisplayProperty(int id) const { | 54 int BackgroundTheme::GetDisplayProperty(int id) const { |
| 51 return -1; | 55 return -1; |
| 52 } | 56 } |
| 53 | 57 |
| 54 bool BackgroundTheme::ShouldUseNativeFrame() const { | 58 bool BackgroundTheme::ShouldUseNativeFrame() const { |
| 55 return false; | 59 return false; |
| 56 } | 60 } |
| 57 | 61 |
| 58 bool BackgroundTheme::HasCustomImage(int id) const { | 62 bool BackgroundTheme::HasCustomImage(int id) const { |
| 59 return false; | 63 return false; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: | 97 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: |
| 94 return buttonPressedGradient_.get(); | 98 return buttonPressedGradient_.get(); |
| 95 default: | 99 default: |
| 96 return provider_->GetNSGradient(id); | 100 return provider_->GetNSGradient(id); |
| 97 } | 101 } |
| 98 } | 102 } |
| 99 | 103 |
| 100 bool BackgroundTheme::ShouldIncreaseContrast() const { | 104 bool BackgroundTheme::ShouldIncreaseContrast() const { |
| 101 return false; | 105 return false; |
| 102 } | 106 } |
| OLD | NEW |